Logo Search packages:      
Sourcecode: qonk version File versions  Download package

gcn::TextBox Class Reference

#include <textbox.hpp>

Inheritance diagram for gcn::TextBox:

gcn::Widget gcn::MouseListener gcn::KeyListener

List of all members.

Detailed Description

A TextBox in which you can write and/or display a lines of text.

NOTE: A plain TextBox is really uggly and looks much better inside a ScrollArea.

Definition at line 77 of file textbox.hpp.

Public Member Functions

virtual FocusHandler_getFocusHandler ()
virtual FocusHandler_getInternalFocusHandler ()
virtual const std::list
< KeyListener * > & 
_getKeyListeners ()
virtual const std::list
< MouseListener * > & 
_getMouseListeners ()
virtual void _setFocusHandler (FocusHandler *focusHandler)
virtual void _setParent (Widget *parent)
virtual void addActionListener (ActionListener *actionListener)
virtual void addDeathListener (DeathListener *deathListener)
virtual void addKeyListener (KeyListener *keyListener)
virtual void addMouseListener (MouseListener *mouseListener)
virtual void addRow (const std::string row)
virtual void draw (Graphics *graphics)
virtual void drawBorder (Graphics *graphics)
virtual void focusGained ()
virtual void focusLost ()
virtual void focusNext ()
virtual void focusPrevious ()
virtual void fontChanged ()
virtual void getAbsolutePosition (int &x, int &y) const
virtual const std::string & getActionEventId () const
virtual const ColorgetBackgroundColor () const
virtual const ColorgetBaseColor () const
virtual unsigned int getBorderSize () const
virtual unsigned int getCaretColumn () const
virtual unsigned int getCaretPosition () const
virtual unsigned int getCaretRow () const
virtual Rectangle getChildrenArea ()
virtual const RectanglegetDimension () const
FontgetFont () const
virtual const ColorgetForegroundColor () const
virtual int getHeight () const
virtual unsigned int getNumberOfRows () const
virtual WidgetgetParent () const
virtual std::string getText () const
virtual const std::string & getTextRow (int row) const
virtual WidgetgetWidgetAt (int x, int y)
virtual int getWidth () const
virtual int getX () const
virtual int getY () const
virtual bool hasModalFocus () const
virtual bool hasModalMouseInputFocus () const
virtual bool isEditable () const
virtual bool isEnabled () const
virtual bool isFocusable () const
virtual bool isFocused () const
virtual bool isOpaque ()
virtual bool isTabInEnabled () const
virtual bool isTabOutEnabled () const
virtual bool isVisible () const
virtual void keyPressed (KeyEvent &keyEvent)
virtual void keyReleased (KeyEvent &keyEvent)
virtual void logic ()
virtual void mouseClicked (MouseEvent &mouseEvent)
virtual void mouseDragged (MouseEvent &mouseEvent)
virtual void mouseEntered (MouseEvent &mouseEvent)
virtual void mouseExited (MouseEvent &mouseEvent)
virtual void mouseMoved (MouseEvent &mouseEvent)
virtual void mousePressed (MouseEvent &mouseEvent)
virtual void mouseReleased (MouseEvent &mouseEvent)
virtual void mouseWheelMovedDown (MouseEvent &mouseEvent)
virtual void mouseWheelMovedUp (MouseEvent &mouseEvent)
virtual void moveToBottom (Widget *widget)
virtual void moveToTop (Widget *widget)
virtual void releaseModalFocus ()
virtual void releaseModalMouseInputFocus ()
virtual void removeActionListener (ActionListener *actionListener)
virtual void removeDeathListener (DeathListener *deathListener)
virtual void removeKeyListener (KeyListener *keyListener)
virtual void removeMouseListener (MouseListener *mouseListener)
virtual void requestFocus ()
virtual void requestModalFocus ()
virtual void requestModalMouseInputFocus ()
virtual void requestMoveToBottom ()
virtual void requestMoveToTop ()
virtual void scrollToCaret ()
virtual void setActionEventId (const std::string &actionEventId)
virtual void setBackgroundColor (const Color &color)
virtual void setBaseColor (const Color &color)
virtual void setBorderSize (unsigned int borderSize)
virtual void setCaretColumn (int column)
virtual void setCaretPosition (unsigned int position)
virtual void setCaretRow (int row)
virtual void setCaretRowColumn (int row, int column)
virtual void setDimension (const Rectangle &dimension)
virtual void setEditable (bool editable)
virtual void setEnabled (bool enabled)
virtual void setFocusable (bool focusable)
virtual void setFont (Font *font)
virtual void setForegroundColor (const Color &color)
virtual void setHeight (int height)
virtual void setInternalFocusHandler (FocusHandler *focusHandler)
virtual void setOpaque (bool opaque)
virtual void setPosition (int x, int y)
virtual void setSize (int width, int height)
virtual void setTabInEnabled (bool enabled)
virtual void setTabOutEnabled (bool enabled)
virtual void setText (const std::string &text)
virtual void setTextRow (int row, const std::string &text)
virtual void setVisible (bool visible)
virtual void setWidth (int width)
virtual void setX (int x)
virtual void setY (int y)
virtual void showWidgetPart (Widget *widget, Rectangle area)
 TextBox (const std::string &text)
 TextBox ()

Static Public Member Functions

static void setGlobalFont (Font *font)
static bool widgetExists (const Widget *widget)

Protected Types

typedef std::list
< ActionListener * > 
typedef DeathListenerList::iterator DeathListenerIterator
typedef std::list
< DeathListener * > 
typedef KeyListenerList::iterator KeyListenerIterator
typedef std::list< KeyListener * > KeyListenerList
typedef MouseListenerList::iterator MouseListenerIterator
typedef std::list
< MouseListener * > 

Protected Member Functions

virtual void adjustSize ()
virtual void drawCaret (Graphics *graphics, int x, int y)
void generateAction ()

Protected Attributes

std::string mActionEventId
ActionListenerList mActionListeners
Color mBackgroundColor
Color mBaseColor
unsigned int mBorderSize
int mCaretColumn
int mCaretRow
DeathListenerList mDeathListeners
Rectangle mDimension
bool mEditable
bool mEnabled
bool mFocusable
Color mForegroundColor
KeyListenerList mKeyListeners
MouseListenerList mMouseListeners
bool mOpaque
bool mTabIn
bool mTabOut
std::vector< std::string > mTextRows
bool mVisible

Static Protected Attributes

static DefaultFont mDefaultFont
static FontmGlobalFont = NULL
static std::list< Widget * > mWidgets

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index