|
nux-0.9.46
|
#include <Nux/TextEntry.h>
Public Member Functions | |
| TextEntry (const TCHAR *text, NUX_FILE_LINE_PROTO) | |
| ~TextEntry () | |
| 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 | PreLayoutManagement () |
| long | PostLayoutManagement (long layoutResult) |
| 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 | MainDraw () |
| void | ProcessMouseEvent (int event_type, int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags) |
| void | ProcessKeyEvent (unsigned long eventType, unsigned long keysym, unsigned long state, const TCHAR *character, unsigned short keyCount) |
| void | FocusInx () |
| void | FocusOutx () |
| void | SetText (const char *text) |
| std::string | GetText () |
| void | SetTextColor (const Color &color) |
| Color | GetTextColor () const |
| void | SetFontFamily (const char *font) |
| void | SetFontSize (double font_size) |
| void | SetFontOptions (const cairo_font_options_t *options) |
| void | Select (int start, int end) |
| Select text between start and end. | |
| void | SelectAll () |
| Select all text. | |
| CairoGraphics::Alignment | GetAlign () const |
| void | SetAlign (CairoGraphics::Alignment align) |
Data Fields | |
| bool | _size_match_text |
| BaseTexture * | _texture2D |
| sigc::signal< void, TextEntry * > | sigTextChanged |
| Text changed signal. | |
| sigc::signal< void > | activated |
| sigc::signal< void, int > | cursor_moved |
Protected Member Functions | |
| virtual void | DoSetFocused (bool focused) |
Protected Attributes | |
| bool | _block_focus |
| nux::TextEntry::TextEntry | ( | const TCHAR * | text, |
| NUX_FILE_LINE_PROTO | |||
| ) |
| nux::TextEntry::~TextEntry | ( | ) |
| virtual void nux::TextEntry::DoSetFocused | ( | bool | focused | ) | [protected, virtual] |
Reimplemented from nux::View.
| virtual void nux::TextEntry::Draw | ( | GraphicsEngine & | GfxContext, |
| bool | force_draw | ||
| ) | [virtual] |
Implements nux::View.
| virtual void nux::TextEntry::DrawContent | ( | GraphicsEngine & | GfxContext, |
| bool | force_draw | ||
| ) | [virtual] |
Reimplemented from nux::View.
| void nux::TextEntry::FocusInx | ( | ) |
| void nux::TextEntry::FocusOutx | ( | ) |
| CairoGraphics::Alignment nux::TextEntry::GetAlign | ( | ) | const |
| std::string nux::TextEntry::GetText | ( | ) |
| Color nux::TextEntry::GetTextColor | ( | ) | const |
| void nux::TextEntry::MainDraw | ( | ) |
| virtual void nux::TextEntry::PostDraw | ( | GraphicsEngine & | GfxContext, |
| bool | force_draw | ||
| ) | [virtual] |
Reimplemented from nux::View.
| long nux::TextEntry::PostLayoutManagement | ( | long | layoutResult | ) | [virtual] |
Reimplemented from nux::View.
| void nux::TextEntry::PreLayoutManagement | ( | ) | [virtual] |
Reimplemented from nux::View.
| virtual long nux::TextEntry::ProcessEvent | ( | IEvent & | ievent, |
| long | TraverseInfo, | ||
| long | ProcessEventInfo | ||
| ) | [virtual] |
Implements nux::View.
| void nux::TextEntry::ProcessKeyEvent | ( | unsigned long | eventType, |
| unsigned long | keysym, | ||
| unsigned long | state, | ||
| const TCHAR * | character, | ||
| unsigned short | keyCount | ||
| ) |
| void nux::TextEntry::ProcessMouseEvent | ( | int | event_type, |
| int | x, | ||
| int | y, | ||
| int | dx, | ||
| int | dy, | ||
| unsigned long | button_flags, | ||
| unsigned long | key_flags | ||
| ) |
| void nux::TextEntry::RecvEndKeyFocus | ( | ) |
| void nux::TextEntry::RecvKeyEvent | ( | GraphicsEngine & | GfxContext, |
| unsigned long | eventType, | ||
| unsigned long | keysym, | ||
| unsigned long | state, | ||
| const TCHAR * | character, | ||
| unsigned short | keyCount | ||
| ) |
| void nux::TextEntry::RecvMouseDoubleClick | ( | int | x, |
| int | y, | ||
| unsigned long | button_flags, | ||
| unsigned long | key_flags | ||
| ) |
| void nux::TextEntry::RecvMouseDown | ( | int | x, |
| int | y, | ||
| unsigned long | button_flags, | ||
| unsigned long | key_flags | ||
| ) |
| void nux::TextEntry::RecvMouseDrag | ( | int | x, |
| int | y, | ||
| int | dx, | ||
| int | dy, | ||
| unsigned long | button_flags, | ||
| unsigned long | key_flags | ||
| ) |
| void nux::TextEntry::RecvMouseUp | ( | int | x, |
| int | y, | ||
| unsigned long | button_flags, | ||
| unsigned long | key_flags | ||
| ) |
| void nux::TextEntry::RecvStartKeyFocus | ( | ) |
| void nux::TextEntry::Select | ( | int | start, |
| int | end | ||
| ) |
Select text between start and end.
| void nux::TextEntry::SelectAll | ( | ) |
Select all text.
| void nux::TextEntry::SetAlign | ( | CairoGraphics::Alignment | align | ) |
| void nux::TextEntry::SetFontFamily | ( | const char * | font | ) |
| void nux::TextEntry::SetFontOptions | ( | const cairo_font_options_t * | options | ) |
| void nux::TextEntry::SetFontSize | ( | double | font_size | ) |
| void nux::TextEntry::SetText | ( | const char * | text | ) |
bool nux::TextEntry::_block_focus [protected] |
| sigc::signal<void> nux::TextEntry::activated |
| sigc::signal<void, int> nux::TextEntry::cursor_moved |
| sigc::signal<void, TextEntry*> nux::TextEntry::sigTextChanged |
Text changed signal.
This signal is emitted when the text has changed.