ManaPlus
|
#include <textfield.h>
Public Member Functions | |
TextField (const Widget2 *const widget, const std::string &text, const LoseFocusOnTab loseFocusOnTab, ActionListener *const listener, const std::string &eventId, const bool sendAlwaysEvents) | |
~TextField () | |
void | draw (Graphics *const graphics) |
void | safeDraw (Graphics *const graphics) |
void | updateAlpha () |
void | drawFrame (Graphics *const graphics) |
void | safeDrawFrame (Graphics *const graphics) |
void | setNumeric (const bool numeric) |
void | setRange (const int min, const int max) |
void | keyPressed (KeyEvent &event) |
void | setMinimum (const int min) |
void | setMaximum (const int max) |
int | getValue () const |
void | setSendAlwaysEvents (const bool b) |
void | adjustSize () |
void | adjustHeight () |
void | setCaretPosition (unsigned int position) |
void | mousePressed (MouseEvent &event) |
void | handlePaste () |
void | handleCopy () const |
void | focusGained (const Event &event) |
void | focusLost (const Event &event) |
void | moveCaretBack () |
void | moveCaretForward () |
void | moveCaretWordBack () |
void | moveCaretWordForward () |
void | caretDelete () |
void | caretDeleteToStart () |
void | caretDeleteWord () |
void | setAllowSpecialActions (const bool b) |
std::string | getTextBeforeCaret () const |
void | setText (const std::string &text) |
const std::string & | getText () const |
unsigned int | getCaretPosition () const |
void | mouseDragged (MouseEvent &event) |
void | widgetHidden (const Event &event) |
void | setParent (Widget *widget) |
void | setWindow (Widget *const widget) |
void | signalEvent () |
Public Member Functions inherited from Widget | |
Widget (const Widget2 *const widget) | |
~Widget () | |
void | setFrameSize (const unsigned int frameSize) |
unsigned int | getFrameSize () const |
virtual void | logic () |
Widget * | getParent () const |
void | setWidth (const int width) |
int | getWidth () const |
void | setHeight (const int height) |
int | getHeight () const |
void | setSize (const int width, const int height) |
void | setX (const int x) |
int | getX () const |
void | setY (const int y) |
int | getY () const |
void | setPosition (const int x, const int y) |
void | setDimension (const Rect &dimension) |
const Rect & | getDimension () const |
void | setFocusable (const bool focusable) |
bool | isFocusable () const |
virtual bool | isFocused () const |
void | setEnabled (const bool enabled) |
bool | isEnabled () const |
void | setVisible (Visible visible) |
bool | isVisible () const |
void | setBaseColor (const Color &color) |
const Color & | getBaseColor () const |
void | setForegroundColor (const Color &color) |
const Color & | getForegroundColor () const |
void | setBackgroundColor (const Color &color) |
const Color & | getBackgroundColor () const |
virtual void | requestFocus () |
virtual void | requestMoveToTop () |
virtual void | requestMoveToBottom () |
virtual void | setFocusHandler (FocusHandler *const focusHandler) |
FocusHandler * | getFocusHandler () |
void | addActionListener (ActionListener *const actionListener) |
void | removeActionListener (ActionListener *const actionListener) |
void | addDeathListener (WidgetDeathListener *const deathListener) |
void | removeDeathListener (WidgetDeathListener *const deathListener) |
void | addMouseListener (MouseListener *const mouseListener) |
void | removeMouseListener (MouseListener *const mouseListener) |
void | addKeyListener (KeyListener *const keyListener) |
void | removeKeyListener (KeyListener *const keyListener) |
void | addFocusListener (FocusListener *const focusListener) |
void | removeFocusListener (FocusListener *const focusListener) |
void | addWidgetListener (WidgetListener *const widgetListener) |
void | removeWidgetListener (WidgetListener *const widgetListener) |
void | setActionEventId (const std::string &actionEventId) |
const std::string & | getActionEventId () const |
virtual void | getAbsolutePosition (int &x, int &y) const |
Font * | getFont () const |
void | setFont (Font *const font) |
bool | isTabInEnabled () const |
void | setTabInEnabled (const bool enabled) |
bool | isTabOutEnabled () const |
void | setTabOutEnabled (const bool enabled) |
void | requestModalFocus () |
virtual void | requestModalMouseInputFocus () |
virtual void | releaseModalFocus () |
virtual void | releaseModalMouseInputFocus () |
virtual bool | isModalFocused () const |
virtual bool | isModalMouseInputFocused () const |
virtual Widget * | getWidgetAt (int x, int y) |
const std::list< MouseListener * > & | getMouseListeners () const A_CONST |
const std::list< KeyListener * > & | getKeyListeners () const A_CONST |
const std::list< FocusListener * > & | getFocusListeners () const A_CONST |
virtual Rect | getChildrenArea () |
virtual FocusHandler * | getInternalFocusHandler () |
void | setInternalFocusHandler (FocusHandler *const internalFocusHandler) |
virtual void | moveToTop (Widget *widget) |
virtual void | moveToBottom (Widget *widget) |
virtual void | focusNext () |
virtual void | focusPrevious () |
virtual void | showWidgetPart (Widget *const widget, const Rect &area) |
void | setId (const std::string &id) |
const std::string & | getId () const |
virtual void | showPart (const Rect &rectangle) |
bool | isAllowLogic () const |
void | setMouseConsume (const bool b) |
bool | isMouseConsume () const |
void | setRedraw (const bool b) |
virtual bool | isSelectable () const |
void | setSelectable (const bool selectable) |
void | windowResized () |
virtual void | postInit () |
Public Member Functions inherited from Widget2 | |
virtual | ~Widget2 () |
const Color & | getThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE |
const Color & | getThemeCharColor (const signed char c, bool &valid) const A_INLINE |
virtual void | setWidget2 (const Widget2 *const widget) |
void | setPalette (int palette) |
void | checkPalette () |
void | setForegroundColor2 (const Color &color) |
Widget * | getWindow () const |
Public Member Functions inherited from FocusListener | |
virtual | ~FocusListener () |
Public Member Functions inherited from KeyListener | |
virtual | ~KeyListener () |
virtual void | keyReleased (KeyEvent &event) |
Public Member Functions inherited from MouseListener | |
virtual | ~MouseListener () |
virtual void | mouseEntered (MouseEvent &event) |
virtual void | mouseExited (MouseEvent &event) |
virtual void | mouseReleased (MouseEvent &event) |
virtual void | mouseClicked (MouseEvent &event) |
virtual void | mouseWheelMovedUp (MouseEvent &event) |
virtual void | mouseWheelMovedDown (MouseEvent &event) |
virtual void | mouseMoved (MouseEvent &event) |
Public Member Functions inherited from WidgetListener | |
virtual | ~WidgetListener () |
virtual void | widgetResized (const Event &event) |
virtual void | widgetMoved (const Event &event) |
virtual void | widgetShown (const Event &event) |
Protected Member Functions | |
void | drawCaret (Graphics *graphics, int x) |
void | fixScroll () |
void | fontChanged () |
bool | handleNormalKeys (const InputActionT action, bool &consumed) |
void | handleCtrlKeys (const InputActionT action, bool &consumed) |
Protected Member Functions inherited from Widget | |
void | distributeActionEvent () |
void | distributeResizedEvent () |
void | distributeMovedEvent () |
void | distributeHiddenEvent () |
void | distributeShownEvent () |
Protected Member Functions inherited from Widget2 | |
Widget2 (const Widget2 *const widget) | |
Protected Member Functions inherited from FocusListener | |
FocusListener () | |
Protected Member Functions inherited from KeyListener | |
KeyListener () | |
Protected Member Functions inherited from MouseListener | |
MouseListener () | |
Protected Member Functions inherited from WidgetListener | |
WidgetListener () | |
Static Protected Attributes | |
static Skin * | mSkin |
static int | instances = 0 |
static float | mAlpha = 1.0 |
static ImageRect | skin |
Static Protected Attributes inherited from Widget | |
static Font * | mGlobalFont = 0 |
Additional Inherited Members | |
Static Public Member Functions inherited from Widget | |
static void | setGlobalFont (Font *const font) |
static Font * | getGloablFont () |
static void | cleanGlobalFont () |
static bool | widgetExists (const Widget *const widget) |
static void | distributeWindowResizeEvent () |
static Widget * | callPostInit (Widget *const widget) |
Data Fields inherited from Widget | |
Visible | mVisible |
Protected Types inherited from Widget | |
typedef std::list< MouseListener * > | MouseListenerList |
typedef MouseListenerList::iterator | MouseListenerIterator |
typedef std::list< KeyListener * > | KeyListenerList |
typedef KeyListenerList::iterator | KeyListenerIterator |
typedef std::list< ActionListener * > | ActionListenerList |
typedef ActionListenerList::iterator | ActionListenerIterator |
typedef std::list< WidgetDeathListener * > | WidgetDeathListenerList |
typedef WidgetDeathListenerList::iterator | WidgetDeathListenerIterator |
typedef std::list< FocusListener * > | FocusListenerList |
typedef FocusListenerList::iterator | FocusListenerIterator |
typedef std::list< WidgetListener * > | WidgetListenerList |
typedef WidgetListenerList::iterator | WidgetListenerIterator |
A text field.
Definition at line 88 of file textfield.h.
TextField::TextField | ( | const Widget2 *const | widget, |
const std::string & | text, | ||
const LoseFocusOnTab | loseFocusOnTab, | ||
ActionListener *const | listener, | ||
const std::string & | eventId, | ||
const bool | sendAlwaysEvents | ||
) |
Constructor, initializes the text field with the given string.
Definition at line 109 of file textfield.cpp.
References Widget::addActionListener(), Widget::addFocusListener(), Widget::addKeyListener(), Widget::addMouseListener(), adjustSize(), Skin::getOption(), Skin::getPadding(), Widget2::getThemeColor(), instances, anonymous_namespace{itemlinkhandler.cpp}::listener, Theme::loadSkinRect(), Widget::mAllowLogic, Widget::mForegroundColor, Widget2::mForegroundColor2, Widget::mFrameSize, mPadding, mSkin, Widget::setActionEventId(), Widget::setFocusable(), Widget::setFrameSize(), skin, and theme.
TextField::~TextField | ( | ) |
Definition at line 174 of file textfield.cpp.
References TextChunk::deleteImage(), gui, instances, mSkin, mTextChunk, Widget2::mWindow, Gui::removeDragged(), Widget::removeWidgetListener(), skin, theme, Theme::unload(), and Theme::unloadRect().
void TextField::adjustHeight | ( | ) |
Definition at line 724 of file textfield.cpp.
References Widget::getFont(), Widget::getHeight(), mPadding, and Widget::setHeight().
Referenced by adjustSize().
void TextField::adjustSize | ( | ) |
Definition at line 716 of file textfield.cpp.
References adjustHeight(), fixScroll(), Widget::getFont(), Widget::getWidth(), mPadding, mText, and Widget::setWidth().
Referenced by LoginDialog::LoginDialog(), and TextField().
void TextField::caretDelete | ( | ) |
Definition at line 616 of file textfield.cpp.
References CAST_U32, mCaretPosition, mText, and mTextChanged.
Referenced by handleCtrlKeys().
void TextField::caretDeleteToStart | ( | ) |
Definition at line 641 of file textfield.cpp.
References mCaretPosition, mText, and mTextChanged.
Referenced by handleCtrlKeys().
void TextField::caretDeleteWord | ( | ) |
Definition at line 690 of file textfield.cpp.
References deleteCharLeft(), isWordSeparator(), mCaretPosition, mText, and mTextChanged.
Referenced by handleCtrlKeys().
|
virtual |
Draws the text field.
Implements Widget.
Definition at line 210 of file textfield.cpp.
References BLOCK_END, BLOCK_START, TextChunk::color, TextChunk::color2, TextChunk::deleteImage(), drawCaret(), Graphics::drawImage(), Font::generate(), Widget::getFont(), Font::getWidth(), TextChunk::img, Widget::isFocused(), mCaretPosition, Widget::mForegroundColor, Widget2::mForegroundColor2, mPadding, mText, mTextChanged, mTextChunk, mXScroll, TextChunk::text, TextChunk::textFont, and updateAlpha().
Referenced by PasswordField::draw(), and safeDraw().
|
protected |
Definition at line 707 of file textfield.cpp.
References Graphics::drawLine(), Graphics::getTopClip(), Rect::height, mCaretColor, mPadding, Graphics::setColor(), and x.
Referenced by draw().
|
virtual |
Draws the background and border.
Reimplemented from Widget.
Definition at line 245 of file textfield.cpp.
References BLOCK_END, BLOCK_START, Graphics::drawImageRect(), Rect::height, Widget::mDimension, Widget::mFrameSize, skin, and Rect::width.
|
protected |
Definition at line 729 of file textfield.cpp.
References Widget::getFont(), Font::getWidth(), Widget::isFocused(), mCaretPosition, Widget::mDimension, mPadding, mText, mXScroll, and Rect::width.
Referenced by adjustSize(), fontChanged(), handleNormalKeys(), keyPressed(), mousePressed(), and setCaretPosition().
|
virtual |
Called when a widget gains focus.
event | Discribes the event. |
Reimplemented from FocusListener.
Definition at line 791 of file textfield.cpp.
References InputManager::executeAction(), inputManager, WindowManager::isKeyboardVisible(), and InputAction::SHOW_KEYBOARD.
|
virtual |
Called when a widget loses focus.
event | Discribes the event. |
Reimplemented from FocusListener.
Definition at line 799 of file textfield.cpp.
Referenced by ChatInput::focusLost().
|
protectedvirtual |
Called when the font has changed. If the change is global, this function will only be called if the widget doesn't have a font already set.
Reimplemented from Widget.
Definition at line 763 of file textfield.cpp.
References fixScroll().
|
inline |
Gets the caret position. As there is only one line of text in a text field the position is the caret's x coordinate.
Definition at line 234 of file textfield.h.
References mCaretPosition.
Referenced by ChatWindow::addInputText(), ChatWindow::autoComplete(), and handlePaste().
|
inline |
Gets the text of the text field.
Definition at line 224 of file textfield.h.
References mText.
Referenced by SetupItemTextField::action(), SetupItemIntTextField::action(), BuyDialog::action(), ChangeEmailDialog::action(), ChangePasswordDialog::action(), ChatWindow::action(), EditServerDialog::action(), InventoryWindow::action(), NpcDialog::action(), RegisterDialog::action(), TradeWindow::action(), ChatWindow::addCurrentToHistory(), ChatWindow::addInputText(), ChatWindow::autoComplete(), LoginDialog::canSubmit(), RegisterDialog::canSubmit(), MailEditWindow::focusLost(), SetupItemTextField::fromWidget(), SetupItemIntTextField::fromWidget(), EditDialog::getMsg(), PincodeDialog::getMsg(), CharCreateDialog::getName(), TextDialog::getText(), IntTextField::getValue(), handleCopy(), handlePaste(), IntTextField::keyPressed(), ChatWindow::keyPressed(), LoginDialog::LoginDialog(), LoginDialog::postInit(), RegisterDialog::postInit(), LoginDialog::prepareUpdate(), TextCommandEditor::save(), MailEditWindow::sendMail(), and PincodeDialog::updateButtons().
|
inline |
Definition at line 207 of file textfield.h.
References mCaretPosition, and mText.
Referenced by ChatWindow::keyPressed().
int TextField::getValue | ( | ) | const |
Return the value for a numeric field
Definition at line 286 of file textfield.cpp.
References mMaximum, mMinimum, mNumeric, and mText.
Referenced by Setup_Colors::Setup_Colors().
void TextField::handleCopy | ( | ) | const |
Definition at line 701 of file textfield.cpp.
References getText(), and sendBuffer().
Referenced by handleCtrlKeys(), and PopupMenu::handleLink().
|
protected |
Definition at line 496 of file textfield.cpp.
References caretDelete(), caretDeleteToStart(), caretDeleteWord(), CAST_S32, cur_time, deleteCharLeft(), InputAction::GUI_B, InputAction::GUI_C, InputAction::GUI_D, InputAction::GUI_E, InputAction::GUI_F, InputAction::GUI_H, InputAction::GUI_K, InputAction::GUI_LEFT, InputAction::GUI_RIGHT, InputAction::GUI_U, InputAction::GUI_V, InputAction::GUI_W, handleCopy(), handlePaste(), mAllowSpecialActions, mCaretPosition, mLastEventPaste, moveCaretBack(), moveCaretForward(), moveCaretWordBack(), moveCaretWordForward(), mText, mTextChanged, and PRAGMA45().
Referenced by keyPressed().
|
protected |
Definition at line 409 of file textfield.cpp.
References CAST_U32, deleteCharLeft(), Widget::distributeActionEvent(), fixScroll(), InputAction::GUI_BACKSPACE, InputAction::GUI_DELETE, InputAction::GUI_END, InputAction::GUI_HOME, InputAction::GUI_LEFT, InputAction::GUI_RIGHT, InputAction::GUI_SELECT2, InputAction::GUI_TAB, LoseFocusOnTab_true, mCaretPosition, mLoseFocusOnTab, mText, mTextChanged, and PRAGMA45().
Referenced by keyPressed().
void TextField::handlePaste | ( | ) |
Definition at line 629 of file textfield.cpp.
References CAST_SIZE, CAST_U32, getCaretPosition(), getText(), retrieveBuffer(), setCaretPosition(), and setText().
Referenced by handleCtrlKeys(), and PopupMenu::handleLink().
|
virtual |
Processes one keypress.
Reimplemented from KeyListener.
Definition at line 301 of file textfield.cpp.
References CAST_8, CAST_S32, CAST_U32, Widget::distributeActionEvent(), fixScroll(), InputAction::GUI_CTRL, handleCtrlKeys(), handleNormalKeys(), inputManager, InputManager::isActionActive(), mCaretPosition, mLastEventPaste, mMaximum, mNumeric, mSendAlwaysEvents, mText, mTextChanged, and KeyValue::TEXTINPUT.
Referenced by IntTextField::keyPressed().
|
virtual |
Called when the mouse has moved and the mouse has previously been pressed on the widget.
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 812 of file textfield.cpp.
|
virtual |
Called when a mouse button has been pressed on the widget area.
NOTE: A mouse press is NOT equal to a mouse click. Use mouseClickMessage to check for mouse clicks.
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 768 of file textfield.cpp.
References InputManager::executeAction(), fixScroll(), MouseEvent::getButton(), Widget::getFont(), Font::getStringIndexAt(), MouseEvent::getX(), inputManager, WindowManager::isKeyboardVisible(), MouseButton::LEFT, mCaretPosition, mText, mXScroll, popupMenu, MouseButton::RIGHT, InputAction::SHOW_KEYBOARD, and PopupMenu::showTextFieldPopup().
void TextField::moveCaretBack | ( | ) |
Definition at line 595 of file textfield.cpp.
References mCaretPosition, and mText.
Referenced by handleCtrlKeys().
void TextField::moveCaretForward | ( | ) |
Definition at line 605 of file textfield.cpp.
References CAST_U32, mCaretPosition, and mText.
Referenced by handleCtrlKeys().
void TextField::moveCaretWordBack | ( | ) |
Definition at line 651 of file textfield.cpp.
References isWordSeparator(), mCaretPosition, and mText.
Referenced by handleCtrlKeys().
void TextField::moveCaretWordForward | ( | ) |
Definition at line 670 of file textfield.cpp.
References CAST_U32, isWordSeparator(), mCaretPosition, and mText.
Referenced by handleCtrlKeys().
|
virtual |
|
virtual |
Reimplemented from Widget.
Definition at line 257 of file textfield.cpp.
References BLOCK_END, BLOCK_START, Graphics::drawImageRect(), Rect::height, Widget::mDimension, Widget::mFrameSize, skin, and Rect::width.
|
inline |
Definition at line 204 of file textfield.h.
References mAllowSpecialActions.
Referenced by ChatWindow::ChatWindow().
void TextField::setCaretPosition | ( | unsigned int | position | ) |
Definition at line 752 of file textfield.cpp.
References CAST_S32, CAST_U32, fixScroll(), mCaretPosition, and mText.
Referenced by ChatWindow::addInputText(), ChatWindow::autoComplete(), handlePaste(), ChatWindow::keyPressed(), RegisterDialog::postInit(), and IntTextField::setValue().
|
inline |
Set the maximum value for a range
Definition at line 158 of file textfield.h.
References mMaximum.
Referenced by CharCreateDialog::CharCreateDialog().
|
inline |
void TextField::setNumeric | ( | const bool | numeric | ) |
Determine whether the field should be numeric or not
Definition at line 269 of file textfield.cpp.
References mNumeric, mText, and setText().
Referenced by EditServerDialog::EditServerDialog(), and Setup_Colors::Setup_Colors().
|
virtual |
Sets the parent of the widget. A parent must be a BasicContainer.
WARNING: This function is used internally and should not be called or overloaded unless you know what you are doing.
parent | The parent of the widget. |
Reimplemented from Widget.
Definition at line 823 of file textfield.cpp.
References Widget::addWidgetListener(), Widget2::mWindow, and Widget::setParent().
|
inline |
Set the range on the field if it is numeric
Definition at line 137 of file textfield.h.
References mMaximum, and mMinimum.
Referenced by EditServerDialog::EditServerDialog(), Setup_Colors::Setup_Colors(), and Setup_Colors::valueChanged().
|
inline |
Definition at line 166 of file textfield.h.
References mSendAlwaysEvents.
Referenced by BuyDialog::init().
void TextField::setText | ( | const std::string & | text | ) |
Sets the text of the text field.
text | The text of the text field. |
Definition at line 803 of file textfield.cpp.
References CAST_U32, mCaretPosition, mText, and mTextChanged.
Referenced by Pincode::action(), SetupItemTextField::action(), Setup_Colors::action(), ChatWindow::action(), NpcDialog::action(), RegisterDialog::action(), TradeWindow::action(), ChatWindow::addInputText(), ChatWindow::autoComplete(), EditDialog::EditDialog(), EditServerDialog::EditServerDialog(), handlePaste(), TradeWindow::initTrade(), IntTextField::keyPressed(), ChatWindow::keyPressed(), LoginDialog::LoginDialog(), LoginDialog::postInit(), TradeWindow::reset(), Setup_Colors::setEntry(), MailEditWindow::setMessage(), setNumeric(), MailEditWindow::setSubject(), TextDialog::setText(), MailEditWindow::setTo(), IntTextField::setValue(), TextCommandEditor::TextCommandEditor(), NpcDialog::textRequest(), SetupItemTextField::toWidget(), and SetupItemIntTextField::toWidget().
|
virtual |
Reimplemented from Widget2.
Definition at line 830 of file textfield.cpp.
References Widget2::mWindow, Widget::removeWidgetListener(), and Widget2::setWindow().
void TextField::signalEvent | ( | ) |
Definition at line 843 of file textfield.cpp.
References Widget::distributeActionEvent().
Referenced by Pincode::action().
void TextField::updateAlpha | ( | ) |
Update the alpha value to the graphic components.
Definition at line 194 of file textfield.cpp.
References Theme::getMinimumOpacity(), ImageRect::grid, Settings::guiAlpha, mAlpha, settings, skin, and theme.
Referenced by draw().
|
virtual |
Invoked when a widget is hidden, i.e it's set to be not visible.
event | Describes the event. |
Reimplemented from WidgetListener.
Definition at line 817 of file textfield.cpp.
References TextChunk::deleteImage(), mTextChanged, and mTextChunk.
|
staticprotected |
Definition at line 280 of file textfield.h.
Referenced by TextField(), and ~TextField().
|
protected |
Definition at line 289 of file textfield.h.
Referenced by handleCtrlKeys(), and setAllowSpecialActions().
|
staticprotected |
Definition at line 281 of file textfield.h.
Referenced by updateAlpha().
|
protected |
Definition at line 279 of file textfield.h.
Referenced by drawCaret().
|
protected |
Holds the caret position.
Definition at line 270 of file textfield.h.
Referenced by caretDelete(), caretDeleteToStart(), caretDeleteWord(), draw(), fixScroll(), getCaretPosition(), getTextBeforeCaret(), handleCtrlKeys(), handleNormalKeys(), keyPressed(), mousePressed(), moveCaretBack(), moveCaretForward(), moveCaretWordBack(), moveCaretWordForward(), setCaretPosition(), and setText().
|
protected |
Definition at line 285 of file textfield.h.
Referenced by handleCtrlKeys(), and keyPressed().
|
protected |
Definition at line 288 of file textfield.h.
Referenced by handleNormalKeys().
|
protected |
Definition at line 284 of file textfield.h.
Referenced by getValue(), keyPressed(), setMaximum(), and setRange().
|
protected |
Definition at line 283 of file textfield.h.
Referenced by getValue(), setMinimum(), and setRange().
|
protected |
Definition at line 287 of file textfield.h.
Referenced by getValue(), keyPressed(), and setNumeric().
|
protected |
Definition at line 286 of file textfield.h.
Referenced by adjustHeight(), adjustSize(), draw(), drawCaret(), fixScroll(), and TextField().
|
protected |
Definition at line 290 of file textfield.h.
Referenced by IntTextField::keyPressed(), keyPressed(), and setSendAlwaysEvents().
|
staticprotected |
Definition at line 258 of file textfield.h.
Referenced by TextField(), and ~TextField().
|
protected |
Holds the text of the text box.
Definition at line 263 of file textfield.h.
Referenced by adjustSize(), caretDelete(), caretDeleteToStart(), caretDeleteWord(), PasswordField::draw(), draw(), fixScroll(), getText(), getTextBeforeCaret(), getValue(), handleCtrlKeys(), handleNormalKeys(), keyPressed(), mousePressed(), moveCaretBack(), moveCaretForward(), moveCaretWordBack(), moveCaretWordForward(), setCaretPosition(), setNumeric(), and setText().
|
protected |
Definition at line 291 of file textfield.h.
Referenced by caretDelete(), caretDeleteToStart(), caretDeleteWord(), draw(), handleCtrlKeys(), handleNormalKeys(), keyPressed(), setText(), and widgetHidden().
|
protected |
Definition at line 265 of file textfield.h.
Referenced by draw(), widgetHidden(), and ~TextField().
|
protected |
Holds the amount scrolled in x. If a user types more characters than the text field can display, due to the text field being to small, the text needs to scroll in order to show the last type character.
Definition at line 277 of file textfield.h.
Referenced by draw(), fixScroll(), and mousePressed().
|
staticprotected |
Definition at line 282 of file textfield.h.
Referenced by drawFrame(), safeDrawFrame(), TextField(), updateAlpha(), and ~TextField().