nux-0.9.48
|
#include <Nux/StaticTextBox.h>
Public Member Functions | |
StaticTextBox (const TCHAR *Caption, NUX_FILE_LINE_PROTO) | |
~StaticTextBox () | |
virtual long | ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo) |
virtual void | Draw (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | DrawContent (GraphicsEngine &GfxContext, bool force_draw) |
virtual void | PostDraw (GraphicsEngine &GfxContext, bool force_draw) |
void | SetText (const TCHAR &Caption) |
void | SetText (const TCHAR *Caption) |
void | SetText (const tstring &Caption) |
void | SetText (const NString &Caption) |
const TCHAR * | GetText () const |
t_u32 | GetTextSize () const |
void | SetMinWidthMatchText (bool b) |
Change the widget minimum width whenever the text is set. | |
bool | GetMinWidthMatchText () const |
Return true if the widget with changes to match the text width. | |
void | SetTextColor (Color color) |
Color | GetTextColor () const |
void | SetTextBackgroundColor (const Color &color) |
Color | GetTextBackgroundColor () const |
void | SetTextAlignment (TextAlignment alignment) |
TextAlignment | GetTextAlignment () |
void | SetDrawBackground (bool b) |
void | SetBackground (AbstractPaintLayer *bkg) |
virtual void | SetFont (ObjectPtr< FontTexture > Font) |
virtual void | SetGeometry (const Geometry &geo) |
Set Geometry. | |
Protected Member Functions | |
void | AdjustMinWidthToMatchText () |
Protected Attributes | |
NString | m_Text |
Color | m_TextColor |
Color | m_BackgroundColor |
tstring | m_temporary_caption |
Validator * | m_validator |
TextAlignment | m_TextAlignment |
AbstractPaintLayer * | m_Background |
bool | m_bMinimumWidthMatchText |
bool | m_bDrawBackground |
bool | m_WriteAlpha |
If true, blend the characters alpha value with the destination and write the result to the destination buffer. |
nux::StaticTextBox::StaticTextBox | ( | const TCHAR * | Caption, |
NUX_FILE_LINE_PROTO | |||
) |
nux::StaticTextBox::~StaticTextBox | ( | ) |
void nux::StaticTextBox::AdjustMinWidthToMatchText | ( | ) | [protected] |
virtual void nux::StaticTextBox::Draw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Implements nux::View.
virtual void nux::StaticTextBox::DrawContent | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Reimplemented from nux::View.
bool nux::StaticTextBox::GetMinWidthMatchText | ( | ) | const |
Return true if the widget with changes to match the text width.
const TCHAR* nux::StaticTextBox::GetText | ( | ) | const |
TextAlignment nux::StaticTextBox::GetTextAlignment | ( | ) | [inline] |
References m_TextAlignment.
Color nux::StaticTextBox::GetTextBackgroundColor | ( | ) | const [inline] |
References m_BackgroundColor.
Color nux::StaticTextBox::GetTextColor | ( | ) | const [inline] |
References m_TextColor.
t_u32 nux::StaticTextBox::GetTextSize | ( | ) | const [inline] |
References nux::NString::Length(), and m_Text.
virtual void nux::StaticTextBox::PostDraw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Reimplemented from nux::View.
virtual long nux::StaticTextBox::ProcessEvent | ( | IEvent & | ievent, |
long | TraverseInfo, | ||
long | ProcessEventInfo | ||
) | [virtual] |
Implements nux::View.
void nux::StaticTextBox::SetBackground | ( | AbstractPaintLayer * | bkg | ) |
void nux::StaticTextBox::SetDrawBackground | ( | bool | b | ) | [inline] |
References m_bDrawBackground.
virtual void nux::StaticTextBox::SetFont | ( | ObjectPtr< FontTexture > | Font | ) | [virtual] |
Reimplemented from nux::View.
virtual void nux::StaticTextBox::SetGeometry | ( | const Geometry & | geo | ) | [inline, virtual] |
void nux::StaticTextBox::SetMinWidthMatchText | ( | bool | b | ) |
Change the widget minimum width whenever the text is set.
Change the widget minimum width whenever the text is set.
b | If true, the widget minimum width is set to match the size of the text |
void nux::StaticTextBox::SetText | ( | const TCHAR & | Caption | ) |
void nux::StaticTextBox::SetText | ( | const NString & | Caption | ) |
void nux::StaticTextBox::SetText | ( | const TCHAR * | Caption | ) |
void nux::StaticTextBox::SetText | ( | const tstring & | Caption | ) |
void nux::StaticTextBox::SetTextAlignment | ( | TextAlignment | alignment | ) | [inline] |
References m_TextAlignment.
void nux::StaticTextBox::SetTextBackgroundColor | ( | const Color & | color | ) | [inline] |
References m_BackgroundColor.
void nux::StaticTextBox::SetTextColor | ( | Color | color | ) | [inline] |
References m_TextColor.
AbstractPaintLayer* nux::StaticTextBox::m_Background [protected] |
Color nux::StaticTextBox::m_BackgroundColor [protected] |
Referenced by GetTextBackgroundColor(), and SetTextBackgroundColor().
bool nux::StaticTextBox::m_bDrawBackground [protected] |
Referenced by SetDrawBackground().
bool nux::StaticTextBox::m_bMinimumWidthMatchText [protected] |
tstring nux::StaticTextBox::m_temporary_caption [protected] |
NString nux::StaticTextBox::m_Text [protected] |
Referenced by GetTextSize().
TextAlignment nux::StaticTextBox::m_TextAlignment [protected] |
Referenced by GetTextAlignment(), and SetTextAlignment().
Color nux::StaticTextBox::m_TextColor [protected] |
Reimplemented from nux::View.
Referenced by GetTextColor(), and SetTextColor().
Validator* nux::StaticTextBox::m_validator [protected] |
bool nux::StaticTextBox::m_WriteAlpha [protected] |
If true, blend the characters alpha value with the destination and write the result to the destination buffer.