|
Public Types |
enum | InputMode { IM_NUMBERS,
IM_STANDARD
} |
enum | HorizontalAlignment { HA_LEFT,
HA_CENTER,
HA_RIGHT
} |
enum | VerticalAlignment { VA_TOP,
VA_CENTER,
VA_BOTTOM
} |
Public Member Functions |
| EditBox (int x, int y, int width, int height, Widget *parent, const String &text="", int backColor=0, Font *font=0, bool manageNavigation=true, bool multiLine=false, int maxLength=64, InputMode inputMode=IM_STANDARD) |
void | setCursorColor (int color) |
int | getCursorColor () const |
void | setManageNavigation (bool b=true) |
bool | isManagingNavigation () |
void | setMaxLength (int maxLength) |
int | getMaxLength () |
void | setSelected (bool selected=true) |
void | activate () |
void | deactivate () |
bool | isActive () const |
void | keyPressEvent (int keyCode, int nativeCode) |
void | keyReleaseEvent (int keyCode, int nativeCode) |
void | characterChanged (char c) |
void | characterDeployed (char c) |
bool | moveCursorHorizontal (int steps, bool fireListeners=true) |
bool | deleteCurrentCharacter () |
bool | deletePreviousCharacter () |
void | clearText () |
virtual void | setCaption (const String &caption) |
void | setText (const String &text) |
const String & | getText () const |
void | setInputMode (InputMode inputMode) |
InputMode | getInputMode () const |
void | setEnabled (bool enabled=true) |
void | addEditBoxListener (EditBoxListener *ebl) |
void | setCaseToggle (bool caseToggle=true) |
void | setPasswordMode (bool enabled=true) |
void | setQwerty (bool enabled=true) |
bool | getQwerty () const |
void | setMultiLine (bool b=true) |
bool | isMultiLine () |
void | setHorizontalAlignment (HorizontalAlignment alignment) |
void | setVerticalAlignment (VerticalAlignment alignment) |
void | setFont (Font *font) |
void | setAutoSizeX (bool f=true) |
void | setAutoSizeY (bool f=true) |
const String & | getCaption () const |
Font * | getFont () const |
HorizontalAlignment | getHorizontalAlignment () const |
VerticalAlignment | getVerticalAlignment () const |
bool | getAutoSizeX () const |
bool | getAutoSizeY () const |
void | setPaddingLeft (int l) |
void | setPaddingTop (int t) |
void | setPaddingRight (int r) |
void | setPaddingBottom (int b) |
virtual void | setParameter (const String &name, const String &value) |
void | update () |
virtual void | add (Widget *w) |
void | setParent (Widget *w) |
Widget * | getParent () |
Vector< Widget * > & | getChildren () |
const Vector< Widget * > & | getChildren () const |
virtual void | draw (bool forceDraw=false) |
void | requestRepaint () |
virtual bool | isTransparent () const |
virtual void | setSkin (WidgetSkin *widgetSkin) |
void | setDrawBackground (bool b=true) |
void | setBackgroundColor (int col) |
Widget * | widgetAt (const Point &p) |
Widget * | widgetAt (int x, int y) |
virtual void | setPosition (int x, int y) |
const Point & | getPosition () const |
const Point & | getPaddedPosition () const |
virtual void | setWidth (int width) |
int | getWidth () const |
virtual void | setHeight (int height) |
int | getHeight () const |
virtual const Rect & | getBounds () |
virtual bool | contains (const Point &p) |
virtual bool | contains (int x, int y) |
bool | isSelected () const |
bool | isEnabled () const |
virtual void | trigger () |
void | addWidgetListener (WidgetListener *wl) |
void | removeWidgetListener (WidgetListener *wl) |
Vector< WidgetListener * > & | getWidgetListeners () |
void | setInputManager (InputManager *inputManager) |
int | getPaddingLeft () const |
int | getPaddingTop () const |
int | getPaddingRight () const |
int | getPaddingBottom () const |
const Rect & | getPaddedBounds () const |
Protected Member Functions |
void | getTextStart (int *x, int *y) |
void | resize (int width, int height) |
void | calcStrSize () |
void | drawBackground () |
void | updateAbsolutePosition () |
void | updateAbsolutePositionChildren (int x, int y) |
void | updatePaddedBounds () |
bool | isDirty () const |
void | setDirty (bool d=true) |
Protected Attributes |
bool | mustCalcStrSize |
String | caption |
String | cuttedCaption |
Font * | font |
bool | autoSizeX |
bool | autoSizeY |
bool | multiLine |
HorizontalAlignment | horizontalAlignment |
VerticalAlignment | verticalAlignment |
MAExtent | strSize |
int | strWidth |
int | strHeight |
Vector< Widget * > | children |
Widget * | parent |
Rect | bounds |
int | relX |
int | relY |
bool | dirty |
WidgetSkin * | skin |
int | backColor |
bool | shouldDrawBackground |
bool | selected |
bool | enabled |
Vector< WidgetListener * > | widgetListeners |
InputManager * | mInputManager |
Rect | paddedBounds |
int | paddingLeft |
int | paddingTop |
int | paddingBottom |
int | paddingRight |