_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
gcn::Widget Class Referenceabstract

#include <widget.h>

Inheritance diagram for gcn::Widget:
gcn::BasicContainer gcn::Button gcn::CheckBox gcn::Icon gcn::Label gcn::ListBox gcn::RadioButton gcn::Slider gcn::TextBox gcn::TextField MultiLineLabel StatBoxWidget

Public Member Functions

 Widget ()
 
virtual ~Widget ()
 
virtual void draw (Graphics *graphics)=0
 
virtual void drawBorder (Graphics *)
 
virtual void logic ()
 
virtual BasicContainergetParent () const
 
virtual void setWidth (int width)
 
virtual int getWidth () const
 
virtual void setHeight (int height)
 
virtual int getHeight () const
 
virtual void setSize (int width, int height)
 
virtual void setX (int x)
 
virtual int getX () const
 
virtual void setY (int y)
 
virtual int getY () const
 
virtual void setPosition (int x, int y)
 
virtual void setDimension (const Rectangle &dimension)
 
virtual void setBorderSize (unsigned int borderSize)
 
virtual unsigned int getBorderSize () const
 
virtual const RectanglegetDimension () const
 
virtual void setFocusable (bool focusable)
 
virtual bool isFocusable () const
 
virtual bool hasFocus () const
 
virtual void setEnabled (bool enabled)
 
virtual bool isEnabled () const
 
virtual void lostFocus ()
 
virtual void gotFocus ()
 
virtual bool hasMouse () const
 
virtual void setVisible (bool visible)
 
virtual bool isVisible () const
 
virtual void setBaseColor (const Color &color)
 
virtual const ColorgetBaseColor () const
 
virtual void setForegroundColor (const Color &color)
 
virtual const ColorgetForegroundColor () const
 
virtual void setBackgroundColor (const Color &color)
 
virtual const ColorgetBackgroundColor () const
 
virtual void setDisabledColor (const Color &color)
 
virtual const ColorgetDisabledColor () const
 
virtual void _mouseInputMessage (const MouseInput &mouseInput)
 
virtual bool _keyInputMessage (const KeyInput &keyInput)
 
virtual void hotKeyPress ()
 
virtual void hotKeyRelease ()
 
virtual void _mouseInMessage ()
 
virtual void _mouseOutMessage ()
 
virtual void requestFocus ()
 
virtual void requestMoveToTop ()
 
virtual void requestMoveToBottom ()
 
virtual void _setFocusHandler (FocusHandler *focusHandler)
 
virtual FocusHandler_getFocusHandler ()
 
virtual void addActionListener (ActionListener *actionListener)
 
virtual void removeActionListener (ActionListener *actionListener)
 
virtual void addMouseListener (MouseListener *mouseListener)
 
virtual void removeMouseListener (MouseListener *mouseListener)
 
virtual void addKeyListener (KeyListener *keyListener)
 
virtual void removeKeyListener (KeyListener *keyListener)
 
virtual void setEventId (const std::string &eventId)
 
virtual const std::string & getEventId () const
 
virtual void getAbsolutePosition (int &x, int &y) const
 
virtual void _setParent (BasicContainer *parent)
 
FontgetFont () const
 
virtual void setFont (Font *font)
 
virtual void fontChanged ()
 
virtual int getHotKey () const
 
virtual void setHotKey (const int key)
 
virtual void setHotKey (const char *key)
 
virtual bool isTabInEnabled () const
 
virtual void setTabInEnabled (bool enabled)
 
virtual bool isTabOutEnabled () const
 
virtual void setTabOutEnabled (bool enabled)
 
virtual bool isDragged () const
 
virtual void requestModalFocus ()
 
virtual void releaseModalFocus ()
 
virtual bool hasModalFocus () const
 
virtual void setDirty (bool dirty)
 
virtual bool getDirty () const
 

Static Public Member Functions

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

Protected Types

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
 

Protected Member Functions

void generateAction ()
 

Protected Attributes

MouseListenerList mMouseListeners
 
KeyListenerList mKeyListeners
 
ActionListenerList mActionListeners
 
Color mForegroundColor
 
Color mBackgroundColor
 
Color mBaseColor
 
Color mDisabledColor
 
FocusHandlermFocusHandler
 
BasicContainermParent
 
Rectangle mDimension
 
unsigned int mBorderSize
 
std::string mEventId
 
int mClickTimeStamp
 
int mClickCount
 
int mClickButton
 
bool mHasMouse
 
bool mFocusable
 
bool mVisible
 
bool mTabIn
 
bool mTabOut
 
bool mEnabled
 
FontmCurrentFont
 
int mHotKey
 
bool mDirty
 

Static Protected Attributes

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

Friends

class BasicContainer
 

Detailed Description

Widget base class. Contains basic widget functions every widget should have. Widgets should inherit from this class and implements it's functions.

NOTE: Functions begining with underscore "_" should not be overloaded unless you know what you are doing.

Member Typedef Documentation

◆ ActionListenerIterator

typedef ActionListenerList::iterator gcn::Widget::ActionListenerIterator
protected

◆ ActionListenerList

typedef std::list<ActionListener*> gcn::Widget::ActionListenerList
protected

◆ KeyListenerIterator

typedef KeyListenerList::iterator gcn::Widget::KeyListenerIterator
protected

◆ KeyListenerList

typedef std::list<KeyListener*> gcn::Widget::KeyListenerList
protected

◆ MouseListenerIterator

typedef MouseListenerList::iterator gcn::Widget::MouseListenerIterator
protected

◆ MouseListenerList

typedef std::list<MouseListener*> gcn::Widget::MouseListenerList
protected

Constructor & Destructor Documentation

◆ Widget()

gcn::Widget::Widget ( )

Constructor. Resets member variables. Noteable, a widget is not focusable as default, therefore, Widgets that are supposed to be focusable should overide this default in their own constructor.

◆ ~Widget()

gcn::Widget::~Widget ( )
virtual

Default destructor.

Member Function Documentation

◆ _getFocusHandler()

FocusHandler * gcn::Widget::_getFocusHandler ( )
virtual

Gets the FocusHandler used.

WARNING: This function is used internally and should not be called or overloaded unless you know what you are doing.

Returns
the FocusHandler used.

◆ _keyInputMessage()

bool gcn::Widget::_keyInputMessage ( const KeyInput keyInput)
virtual

Called when a Widget recieves a KeyInput.

WARNING: This function is used internally to handle all key messages. Don't call or overload it unless you know what you are doing.

Parameters
keyInputthe KeyInput message.

Reimplemented in gcn::DropDown.

◆ _mouseInMessage()

void gcn::Widget::_mouseInMessage ( )
virtual

Called when the mouse enters the Widget area.

WARNING: This function is used internally to handle mouse in messages. Don't call or overload this function unless you know what you are doing.

◆ _mouseInputMessage()

void gcn::Widget::_mouseInputMessage ( const MouseInput mouseInput)
virtual

Called when a Widget recieves a MouseInput.

WARNING: This function is used internally to handle all mouse messages. Don't call or overload it unless you know what you are doing.

Parameters
mouseInputthe MouseInput message.

Reimplemented in gcn::ScrollArea, gcn::Window, gcn::DropDown, gcn::Container, and ImageDropDownWidget.

◆ _mouseOutMessage()

void gcn::Widget::_mouseOutMessage ( )
virtual

Called when the mouse leaves the Widget area.

WARNING: This function is used internally be to handle mouse out messages. Don't call or overload this function unless you know what you are doing.

Reimplemented in gcn::ScrollArea, gcn::Window, and gcn::Container.

◆ _setFocusHandler()

void gcn::Widget::_setFocusHandler ( FocusHandler focusHandler)
virtual

Sets the FocusHandler to be used.

WARNING: This function is used internally and should not be called or overloaded unless you know what you are doing.

Parameters
focusHandlerthe FocusHandler to use.

Reimplemented in gcn::ScrollArea, gcn::Window, and gcn::Container.

◆ _setParent()

void gcn::Widget::_setParent ( BasicContainer parent)
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.

Parameters
parentthe parent BasicContainer..

◆ addActionListener()

void gcn::Widget::addActionListener ( ActionListener actionListener)
virtual

Adds an ActionListener to the Widget. When an action is triggered by the Widget, the action function in all the Widget's ActionListeners will be called.

Parameters
actionListenerthe ActionListener to add.

Reimplemented in ImageListBoxWidget, and ListBoxWidget.

◆ addKeyListener()

void gcn::Widget::addKeyListener ( KeyListener keyListener)
virtual

Adds a KeyListener to the Widget. When a key message is recieved, it will be sent to the Widget's KeyListeners.

Parameters
keyListenerthe KeyListener to add.

◆ addMouseListener()

void gcn::Widget::addMouseListener ( MouseListener mouseListener)
virtual

Adds a MouseListener to the Widget. When a mouse message is recieved, it will be sent to the Widget's MouseListeners.

Parameters
mouseListenerthe MouseListener to add.

◆ draw()

virtual void gcn::Widget::draw ( Graphics graphics)
pure virtual

Draws the Widget. It is called by the parent widget when it is time for the Widget to draw itself. The graphics object is set up so that all drawing is relative to the Widget, i.e coordinate (0,0) is the top-left corner of the Widget. It is not possible to draw outside of a Widgets dimension.

Parameters
graphicsa Graphics object to draw with.

Implemented in gcn::ScrollArea, gcn::Window, gcn::TextBox, gcn::DropDown, gcn::RadioButton, gcn::TextField, gcn::Container, gcn::CheckBox, gcn::Button, gcn::ListBox, gcn::Label, gcn::Icon, MenuScreen, StatBoxWidget, ImageDropDownWidget, ImageListBoxWidget, ImageListBox, ImageTextField, MultiLineLabel, gcn::Slider, ImageSlider, ImageCheckBox, ImageRadioButton, and ImageButton.

◆ drawBorder()

virtual void gcn::Widget::drawBorder ( Graphics )
inlinevirtual

Draws a the Widget border. A border is drawn around a Widget. The width and height of the border is therefore the Widgets height+2*bordersize. Think of a painting that has a certain size, the border surrounds the painting.

Parameters
graphicsa Graphics object to draw with.

Reimplemented in gcn::ScrollArea, gcn::Window, gcn::TextBox, gcn::DropDown, gcn::RadioButton, gcn::TextField, gcn::Container, gcn::CheckBox, gcn::Button, gcn::ListBox, gcn::Label, gcn::Icon, ImageDropDownWidget, ImageListBoxWidget, ImageListBox, ImageTextField, MultiLineLabel, and gcn::Slider.

◆ fontChanged()

virtual void gcn::Widget::fontChanged ( )
inlinevirtual

Called when the font has changed. If the change is global, this function will only be called if the Widget don't have a font already set.

Reimplemented in gcn::TextBox, and gcn::TextField.

◆ generateAction()

void gcn::Widget::generateAction ( )
protected

Generates an action to the Widget's ActionListeners.

◆ getAbsolutePosition()

void gcn::Widget::getAbsolutePosition ( int &  x,
int &  y 
) const
virtual

Gets the absolute position on the screen for the Widget.

Parameters
xabsolute x coordinate will be stored in this parameter.
yabsolute y coordinate will be stored in this parameter.

◆ getBackgroundColor()

const Color & gcn::Widget::getBackgroundColor ( ) const
virtual

Gets the background color.

Returns
the background Color.

◆ getBaseColor()

const Color & gcn::Widget::getBaseColor ( ) const
virtual

Gets the base color.

Returns
the foreground Color.

◆ getBorderSize()

unsigned int gcn::Widget::getBorderSize ( ) const
virtual

Gets the size of the border, or the width if you so like. The size is the number of pixels that the border extends outside the Widget. Border size = 0 means no border.

Returns
the size of the border.
See also
drawBorder

◆ getDimension()

const Rectangle & gcn::Widget::getDimension ( ) const
virtual

Gets the dimension of the Widget. It is relative to it's parent.

Returns
the widget dimension.

◆ getDirty()

bool gcn::Widget::getDirty ( ) const
virtual

◆ getDisabledColor()

const Color & gcn::Widget::getDisabledColor ( ) const
virtual

Gets the disabled color.

Returns
the disabled Color.

◆ getEventId()

const std::string & gcn::Widget::getEventId ( ) const
virtual

Gets the event identifier.

Returns
the event identifier.

◆ getFont()

Font * gcn::Widget::getFont ( ) const

Gets the font used. If no font has been set, the global font will be returned instead. If no global font has been set, the default font will be returend. ugly default.

Returns
the used Font.

◆ getForegroundColor()

const Color & gcn::Widget::getForegroundColor ( ) const
virtual

Gets the foreground color.

Returns
the foreground Color.

◆ getHeight()

int gcn::Widget::getHeight ( ) const
virtual

Gets the height of the Widget in pixels.

Returns
the Widget height in pixels.

◆ getHotKey()

virtual int gcn::Widget::getHotKey ( ) const
inlinevirtual

Get the hot key

◆ getParent()

BasicContainer * gcn::Widget::getParent ( ) const
virtual

Gets the Widget parent container.

Returns
the Widget parent container. Returns NULL if the Widget has no parent.

◆ getWidth()

int gcn::Widget::getWidth ( ) const
virtual

Gets the width of the Widget in pixels.

Returns
the Widget with in pixels.

◆ getX()

int gcn::Widget::getX ( ) const
virtual

Gets the Widget x coordinate. It is relative to it's parent.

Returns
the Widget x coordinate.

◆ getY()

int gcn::Widget::getY ( ) const
virtual

Gets the Widget y coordinate. It is relative to it's parent.

Returns
the Widget y coordinate.

◆ gotFocus()

virtual void gcn::Widget::gotFocus ( )
inlinevirtual

Called if the Widget recieves focus.

◆ hasFocus()

bool gcn::Widget::hasFocus ( ) const
virtual

Checks if the Widget has focus.

Returns
true if the widget currently has focus.

◆ hasModalFocus()

bool gcn::Widget::hasModalFocus ( ) const
virtual

Checks if the Widget or it's parent has modal focus.

◆ hasMouse()

bool gcn::Widget::hasMouse ( ) const
virtual

Checks if the Widget has the mouse.

Returns
true if the Widget has the mouse.

◆ hotKeyPress()

virtual void gcn::Widget::hotKeyPress ( )
inlinevirtual

Called when a Widget's hot key is pressed

Reimplemented in gcn::Button.

◆ hotKeyRelease()

virtual void gcn::Widget::hotKeyRelease ( )
inlinevirtual

Called when a Widget's hot key is released

Reimplemented in gcn::Button.

◆ isDragged()

bool gcn::Widget::isDragged ( ) const
virtual

Checks if the Widget is dragged. Dragged means that the mouse button has been pressed down over the Widget and the mouse has been moved.

Returns
true if the widget is dragged.

◆ isEnabled()

bool gcn::Widget::isEnabled ( ) const
virtual

Checks if a Widget is disabled or not.

Returns
true if the Widget should be enabled.

◆ isFocusable()

bool gcn::Widget::isFocusable ( ) const
virtual

Checks whether the Widget is focusable.

Returns
true if the widget is focusable.

◆ isTabInEnabled()

bool gcn::Widget::isTabInEnabled ( ) const
virtual

Check if tab in is enabled. Tab in means that you can set focus to this Widget by pressing the tab button. If tab in is disabled then the FocusHandler will skip this widget and focus the next in its focus order.

Returns
true if tab in is enabled.

◆ isTabOutEnabled()

bool gcn::Widget::isTabOutEnabled ( ) const
virtual

Checks if tab out is enabled. Tab out means that you can lose focus to this Widget by pressing the tab button. If tab out is disabled then the FocusHandler ignores tabbing and focus will stay with this Widget.

Returns
true if tab out is enabled.

◆ isVisible()

bool gcn::Widget::isVisible ( ) const
virtual

Checks if the Widget is visible.

Returns
true if the Widget is visible.

◆ logic()

virtual void gcn::Widget::logic ( )
inlinevirtual

Called for all Widgets in the gui each time Gui::logic is called. You can do logic stuff here like playing an animation.

See also
Gui

Reimplemented in MenuScreen, ImageListBox, gcn::ScrollArea, gcn::Window, gcn::DropDown, gcn::Container, and gcn::ListBox.

◆ lostFocus()

virtual void gcn::Widget::lostFocus ( )
inlinevirtual

Called if the Widget loses focus.

Reimplemented in gcn::Slider, gcn::DropDown, and gcn::Button.

◆ releaseModalFocus()

void gcn::Widget::releaseModalFocus ( )
virtual

Releases modal focus. Modal focus will only be released if the Widget has the modal focus.

◆ removeActionListener()

void gcn::Widget::removeActionListener ( ActionListener actionListener)
virtual

Removes an added ActionListener from the Widget.

Parameters
actionListenerthe ActionListener to remove.

◆ removeKeyListener()

void gcn::Widget::removeKeyListener ( KeyListener keyListener)
virtual

Removes an added KeyListener from the Widget.

Parameters
keyListenerthe KeyListener to remove.

◆ removeMouseListener()

void gcn::Widget::removeMouseListener ( MouseListener mouseListener)
virtual

Removes an added MouseListener from the Widget.

Parameters
mouseListenerthe MouseListener to remove.

◆ requestFocus()

void gcn::Widget::requestFocus ( )
virtual

Requests focus for the Widget. A Widget will only recieve focus if it is focusable.

◆ requestModalFocus()

void gcn::Widget::requestModalFocus ( )
virtual

Requests modal focus. When a widget has modal focus, only that Widget and it's children may recieve input. If some other Widget already has modal focus, an exception will be thrown.

Exceptions
Exceptionif another Widget already has modal focus.

◆ requestMoveToBottom()

void gcn::Widget::requestMoveToBottom ( )
virtual

Requests a move to the bottom in the parent Widget.

◆ requestMoveToTop()

void gcn::Widget::requestMoveToTop ( )
virtual

Requests a move to the top in the parent Widget.

◆ setBackgroundColor()

void gcn::Widget::setBackgroundColor ( const Color color)
virtual

Sets the background color.

Parameters
colorthe background Color.

Reimplemented in ImageListBoxWidget, ListBoxWidget, and gcn::DropDown.

◆ setBaseColor()

void gcn::Widget::setBaseColor ( const Color color)
virtual

Sets the base color. The base color is the background color for many Widgets like the Button and Contianer Widgets.

Parameters
colorthe baseground Color.

Reimplemented in gcn::DropDown, and gcn::Icon.

◆ setBorderSize()

void gcn::Widget::setBorderSize ( unsigned int  borderSize)
virtual

Sets the size of the border, or the width if you so like. The size is the number of pixels that the border extends outside the Widget. Border size = 0 means no border.

Parameters
borderSizethe size of the border.
See also
drawBorder

◆ setDimension()

void gcn::Widget::setDimension ( const Rectangle dimension)
virtual

Sets the dimension of the Widget. It is relative to it's parent.

Parameters
dimensionthe Widget dimension.

◆ setDirty()

void gcn::Widget::setDirty ( bool  dirty)
virtual

Reimplemented in gcn::Window, and gcn::Container.

◆ setDisabledColor()

void gcn::Widget::setDisabledColor ( const Color color)
virtual

Sets the disabled color.

Parameters
colorthe disabled Color.

◆ setEnabled()

void gcn::Widget::setEnabled ( bool  enabled)
virtual

Sets the Widget to be disabled or enabled. A disabled Widget will never recieve mouse or key input.

Parameters
enabledtrue if Widget is enabled.

◆ setEventId()

void gcn::Widget::setEventId ( const std::string &  eventId)
virtual

Sets the event identifier of the Widget. The event identifier is used to be able to identify which Widget generated an action when an action has occured.

NOTE: An event identifier should not be used to identify a certain Widget but rather a certain event in your application. Several Widgets can have the same event identifer.

Parameters
eventIdthe event identifier.

◆ setFocusable()

void gcn::Widget::setFocusable ( bool  focusable)
virtual

Sets a Widgets focusability.

Parameters
focusabletrue if the Widget should be focusable.

◆ setFont()

void gcn::Widget::setFont ( Font font)
virtual

Sets the font. If font is NULL, the global font will be used.

Parameters
fontthe Font.

Reimplemented in ImageDropDownWidget, ImageListBoxWidget, ListBoxWidget, and gcn::DropDown.

◆ setForegroundColor()

void gcn::Widget::setForegroundColor ( const Color color)
virtual

Sets the foreground color.

Parameters
colorthe foreground Color.

Reimplemented in gcn::DropDown.

◆ setGlobalFont()

void gcn::Widget::setGlobalFont ( Font font)
static

Sets the global font to be used by default for all Widgets.

Parameters
fontthe global Font.

◆ setHeight()

void gcn::Widget::setHeight ( int  height)
virtual

Sets the height of the Widget in pixels.

Parameters
heightthe Widget height in pixels.

◆ setHotKey() [1/2]

void gcn::Widget::setHotKey ( const char *  key)
virtual

◆ setHotKey() [2/2]

void gcn::Widget::setHotKey ( const int  key)
virtual

Set the hot key

◆ setPosition()

void gcn::Widget::setPosition ( int  x,
int  y 
)
virtual

Sets the Widget position. It is relative to it's parent.

Parameters
xthe Widget x coordinate.
ythe Widgets y coordinate.

◆ setSize()

void gcn::Widget::setSize ( int  width,
int  height 
)
virtual

Sets the size of the Widget.

Parameters
widththe width.
heightthe height.

Reimplemented in ImageDropDownWidget, and DropDownWidget.

◆ setTabInEnabled()

void gcn::Widget::setTabInEnabled ( bool  enabled)
virtual

Sets tab in enabled. Tab in means that you can set focus to this Widget by pressing the tab button. If tab in is disabled then the FocusHandler will skip this widget and focus the next in its focus order.

Parameters
enabledtrue if tab in should be enabled.

◆ setTabOutEnabled()

void gcn::Widget::setTabOutEnabled ( bool  enabled)
virtual

Sets tab out enabled. Tab out means that you can lose focus to this Widget by pressing the tab button. If tab out is disabled then the FocusHandler ignores tabbing and focus will stay with this Widget.

Parameters
enabledtrue if tab out should be enabled.

◆ setVisible()

void gcn::Widget::setVisible ( bool  visible)
virtual

Sets the Widget to be visible.

Parameters
visibletrue if the Widget should be visiable.

◆ setWidth()

void gcn::Widget::setWidth ( int  width)
virtual

Sets the width of the Widget in pixels.

Parameters
widththe Widget width in pixels.

◆ setX()

void gcn::Widget::setX ( int  x)
virtual

Set the Widget x coordinate. It is relateive to it's parent.

Parameters
xthe Widget x coordinate.

◆ setY()

void gcn::Widget::setY ( int  y)
virtual

Set the Widget y coordinate. It is relative to it's parent.

Parameters
ythe Widget y coordinate.

◆ widgetExists()

bool gcn::Widget::widgetExists ( const Widget widget)
static

Checks whether a Widget exists or not, that is if it still exists an instance of the object.

Parameters
widgetthe Widget to check.

Friends And Related Function Documentation

◆ BasicContainer

friend class BasicContainer
friend

Member Data Documentation

◆ mActionListeners

ActionListenerList gcn::Widget::mActionListeners
protected

◆ mBackgroundColor

Color gcn::Widget::mBackgroundColor
protected

◆ mBaseColor

Color gcn::Widget::mBaseColor
protected

◆ mBorderSize

unsigned int gcn::Widget::mBorderSize
protected

◆ mClickButton

int gcn::Widget::mClickButton
protected

◆ mClickCount

int gcn::Widget::mClickCount
protected

◆ mClickTimeStamp

int gcn::Widget::mClickTimeStamp
protected

◆ mCurrentFont

Font* gcn::Widget::mCurrentFont
protected

◆ mDefaultFont

DefaultFont gcn::Widget::mDefaultFont
staticprotected

◆ mDimension

Rectangle gcn::Widget::mDimension
protected

◆ mDirty

bool gcn::Widget::mDirty
protected

◆ mDisabledColor

Color gcn::Widget::mDisabledColor
protected

◆ mEnabled

bool gcn::Widget::mEnabled
protected

◆ mEventId

std::string gcn::Widget::mEventId
protected

◆ mFocusable

bool gcn::Widget::mFocusable
protected

◆ mFocusHandler

FocusHandler* gcn::Widget::mFocusHandler
protected

◆ mForegroundColor

Color gcn::Widget::mForegroundColor
protected

◆ mGlobalFont

Font * gcn::Widget::mGlobalFont = NULL
staticprotected

◆ mHasMouse

bool gcn::Widget::mHasMouse
protected

◆ mHotKey

int gcn::Widget::mHotKey
protected

◆ mKeyListeners

KeyListenerList gcn::Widget::mKeyListeners
protected

◆ mMouseListeners

MouseListenerList gcn::Widget::mMouseListeners
protected

◆ mParent

BasicContainer* gcn::Widget::mParent
protected

◆ mTabIn

bool gcn::Widget::mTabIn
protected

◆ mTabOut

bool gcn::Widget::mTabOut
protected

◆ mVisible

bool gcn::Widget::mVisible
protected

◆ mWidgets

std::list< Widget * > gcn::Widget::mWidgets
staticprotected

The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.