nux-0.9.48
|
#include <Nux/EditTextBox.h>
Public Member Functions | |
EditTextBox (const TCHAR *Caption, NUX_FILE_LINE_PROTO) | |
~EditTextBox () | |
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 | SetDoubleValue (double d) |
void | SetIntegerValue (int i) |
virtual NString | GetCleanText () const |
Return a caption string striping out the prefix and the suffix. | |
void | SetTextBackgroundColor (const Color &color) |
Color | GetTextBackgroundColor () const |
void | SetSelectedTextColor (Color color) |
void | SetSelectedTextBackgroundColor (Color color) |
void | SetTextBlinkColor (Color color) |
void | SetCursorColor (Color color) |
Color | GetSelectedTextColor () const |
Color | GetSelectedTextBackgroundColor () const |
Color | GetTextBlinkColor () const |
Color | GetCursorColor () const |
void | SetKeyEntryType (BaseKeyboardHandler::eKeyEntryType keytype) |
BaseKeyboardHandler::eKeyEntryType | GetKeyEntryType () |
void | RecvMouseDoubleClick (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseUp (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseDown (int x, int y, unsigned long button_flags, unsigned long key_flags) |
void | RecvMouseDrag (int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
void | RecvKeyEvent (GraphicsEngine &GfxContext, unsigned long eventType, unsigned long keysym, unsigned long state, const TCHAR *character, unsigned short keyCount) |
void | RecvStartKeyFocus () |
void | RecvEndKeyFocus () |
void | SetPrefix (const tstring &p) |
void | SetPrefix (const TCHAR *p) |
void | SetPrefix (const TCHAR &p) |
void | SetPrefix (const NString &p) |
NString | GetPrefix () const |
void | SetSuffix (const tstring &s) |
void | SetSuffix (const TCHAR *s) |
void | SetSuffix (const TCHAR &s) |
void | SetSuffix (const NString &s) |
NString | Getsuffix () const |
void | SetValidator (const Validator *validator) |
bool | IsTextSelected () |
bool | IsEmpty () |
Data Fields | |
sigc::signal< void, EditTextBox *, unsigned int > | sigCharacter |
sigc::signal< void, EditTextBox * > | sigEditChange |
sigc::signal< void, EditTextBox *, const NString & > | sigValidateKeyboardEntry |
sigc::signal< void, EditTextBox * > | sigValidateEntry |
sigc::signal< void, EditTextBox * > | sigSetText |
sigc::signal< void, EditTextBox * > | sigEscapeKeyboardFocus |
sigc::signal< void, EditTextBox * > | sigStartKeyboardFocus |
sigc::signal< void, EditTextBox * > | sigEndKeyboardFocus |
Friends | |
class | RGBValuator |
nux::EditTextBox::EditTextBox | ( | const TCHAR * | Caption, |
NUX_FILE_LINE_PROTO | |||
) |
nux::EditTextBox::~EditTextBox | ( | ) |
virtual void nux::EditTextBox::Draw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Implements nux::View.
virtual void nux::EditTextBox::DrawContent | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Reimplemented from nux::View.
virtual NString nux::EditTextBox::GetCleanText | ( | ) | const [virtual] |
Return a caption string striping out the prefix and the suffix.
Color nux::EditTextBox::GetCursorColor | ( | ) | const [inline] |
BaseKeyboardHandler::eKeyEntryType nux::EditTextBox::GetKeyEntryType | ( | ) | [inline] |
References nux::BaseKeyboardHandler::GetKeyEntryType().
NString nux::EditTextBox::GetPrefix | ( | ) | const [inline] |
Color nux::EditTextBox::GetSelectedTextBackgroundColor | ( | ) | const [inline] |
Color nux::EditTextBox::GetSelectedTextColor | ( | ) | const [inline] |
NString nux::EditTextBox::Getsuffix | ( | ) | const [inline] |
const TCHAR* nux::EditTextBox::GetText | ( | ) | const |
Color nux::EditTextBox::GetTextBackgroundColor | ( | ) | const |
Referenced by nux::RangeValueInteger::GetBackgroundColor().
Color nux::EditTextBox::GetTextBlinkColor | ( | ) | const [inline] |
t_u32 nux::EditTextBox::GetTextSize | ( | ) | const [inline] |
References nux::NString::Length().
bool nux::EditTextBox::IsEmpty | ( | ) |
bool nux::EditTextBox::IsTextSelected | ( | ) | [inline] |
References nux::BaseKeyboardHandler::IsTextSelected().
virtual void nux::EditTextBox::PostDraw | ( | GraphicsEngine & | GfxContext, |
bool | force_draw | ||
) | [virtual] |
Reimplemented from nux::View.
virtual long nux::EditTextBox::ProcessEvent | ( | IEvent & | ievent, |
long | TraverseInfo, | ||
long | ProcessEventInfo | ||
) | [virtual] |
Implements nux::View.
void nux::EditTextBox::RecvEndKeyFocus | ( | ) |
void nux::EditTextBox::RecvKeyEvent | ( | GraphicsEngine & | GfxContext, |
unsigned long | eventType, | ||
unsigned long | keysym, | ||
unsigned long | state, | ||
const TCHAR * | character, | ||
unsigned short | keyCount | ||
) |
void nux::EditTextBox::RecvMouseDoubleClick | ( | int | x, |
int | y, | ||
unsigned long | button_flags, | ||
unsigned long | key_flags | ||
) |
void nux::EditTextBox::RecvMouseDown | ( | int | x, |
int | y, | ||
unsigned long | button_flags, | ||
unsigned long | key_flags | ||
) |
void nux::EditTextBox::RecvMouseDrag | ( | int | x, |
int | y, | ||
int | dx, | ||
int | dy, | ||
unsigned long | button_flags, | ||
unsigned long | key_flags | ||
) |
void nux::EditTextBox::RecvMouseUp | ( | int | x, |
int | y, | ||
unsigned long | button_flags, | ||
unsigned long | key_flags | ||
) |
void nux::EditTextBox::RecvStartKeyFocus | ( | ) |
void nux::EditTextBox::SetCursorColor | ( | Color | color | ) | [inline] |
void nux::EditTextBox::SetDoubleValue | ( | double | d | ) |
void nux::EditTextBox::SetIntegerValue | ( | int | i | ) |
void nux::EditTextBox::SetKeyEntryType | ( | BaseKeyboardHandler::eKeyEntryType | keytype | ) | [inline] |
References nux::BaseKeyboardHandler::SetKeyEntryType().
void nux::EditTextBox::SetPrefix | ( | const tstring & | p | ) | [inline] |
void nux::EditTextBox::SetPrefix | ( | const TCHAR * | p | ) | [inline] |
void nux::EditTextBox::SetPrefix | ( | const NString & | p | ) | [inline] |
void nux::EditTextBox::SetPrefix | ( | const TCHAR & | p | ) | [inline] |
void nux::EditTextBox::SetSelectedTextBackgroundColor | ( | Color | color | ) | [inline] |
void nux::EditTextBox::SetSelectedTextColor | ( | Color | color | ) | [inline] |
void nux::EditTextBox::SetSuffix | ( | const TCHAR * | s | ) | [inline] |
void nux::EditTextBox::SetSuffix | ( | const tstring & | s | ) | [inline] |
void nux::EditTextBox::SetSuffix | ( | const NString & | s | ) | [inline] |
void nux::EditTextBox::SetSuffix | ( | const TCHAR & | s | ) | [inline] |
void nux::EditTextBox::SetText | ( | const NString & | Caption | ) |
void nux::EditTextBox::SetText | ( | const tstring & | Caption | ) |
void nux::EditTextBox::SetText | ( | const TCHAR & | Caption | ) |
void nux::EditTextBox::SetText | ( | const TCHAR * | Caption | ) |
void nux::EditTextBox::SetTextBackgroundColor | ( | const Color & | color | ) |
Referenced by nux::RangeValueInteger::SetBackgroundColor().
void nux::EditTextBox::SetTextBlinkColor | ( | Color | color | ) | [inline] |
void nux::EditTextBox::SetValidator | ( | const Validator * | validator | ) |
friend class RGBValuator [friend] |
sigc::signal< void, EditTextBox *, unsigned int > nux::EditTextBox::sigCharacter |
sigc::signal< void, EditTextBox * > nux::EditTextBox::sigEditChange |
sigc::signal< void, EditTextBox * > nux::EditTextBox::sigEndKeyboardFocus |
sigc::signal< void, EditTextBox * > nux::EditTextBox::sigEscapeKeyboardFocus |
sigc::signal< void, EditTextBox * > nux::EditTextBox::sigSetText |
sigc::signal< void, EditTextBox * > nux::EditTextBox::sigStartKeyboardFocus |
sigc::signal< void, EditTextBox * > nux::EditTextBox::sigValidateEntry |
sigc::signal< void, EditTextBox *, const NString &> nux::EditTextBox::sigValidateKeyboardEntry |