Back to index

unity  6.0.0
Public Types | Public Member Functions | Private Attributes
unity::ui::UnityWindowStyle Class Reference

#include <UnityWindowStyle.h>

List of all members.

Public Types

typedef std::shared_ptr
< UnityWindowStyle
Ptr
typedef nux::ObjectPtr
< nux::BaseTexture > 
BaseTexturePtr

Public Member Functions

 UnityWindowStyle ()
 ~UnityWindowStyle ()
nux::BaseTexture * GetBackgroundTop () const
nux::BaseTexture * GetBackgroundLeft () const
nux::BaseTexture * GetBackgroundCorner () const
int GetBorderSize () const
int GetInternalOffset () const

Private Attributes

BaseTexturePtr background_top_
BaseTexturePtr background_left_
BaseTexturePtr background_corner_

Detailed Description

Definition at line 29 of file UnityWindowStyle.h.


Member Typedef Documentation

typedef nux::ObjectPtr<nux::BaseTexture> unity::ui::UnityWindowStyle::BaseTexturePtr

Definition at line 33 of file UnityWindowStyle.h.

Definition at line 32 of file UnityWindowStyle.h.


Constructor & Destructor Documentation

Definition at line 26 of file UnityWindowStyle.cpp.

{
  background_top_.Adopt(nux::CreateTexture2DFromFile(PKGDATADIR"/switcher_top.png", -1, true));
  background_left_.Adopt(nux::CreateTexture2DFromFile(PKGDATADIR"/switcher_left.png", -1, true));
  background_corner_.Adopt(nux::CreateTexture2DFromFile(PKGDATADIR"/switcher_corner.png", -1, true));
}

Definition at line 33 of file UnityWindowStyle.cpp.

{
  // nothing to do
}

Member Function Documentation

Definition at line 58 of file UnityWindowStyle.cpp.

{
  return background_corner_.GetPointer();
}
nux::BaseTexture * unity::ui::UnityWindowStyle::GetBackgroundLeft ( ) const

Definition at line 53 of file UnityWindowStyle.cpp.

{
  return background_left_.GetPointer();
}
nux::BaseTexture * unity::ui::UnityWindowStyle::GetBackgroundTop ( ) const

Definition at line 48 of file UnityWindowStyle.cpp.

{
  return background_top_.GetPointer();
}

Definition at line 38 of file UnityWindowStyle.cpp.

{
  return 30; // as measured from textures
}

Definition at line 43 of file UnityWindowStyle.cpp.

{
  return 20;
}

Member Data Documentation

Definition at line 47 of file UnityWindowStyle.h.

Definition at line 46 of file UnityWindowStyle.h.

Definition at line 45 of file UnityWindowStyle.h.


The documentation for this class was generated from the following files: