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

gcn::ScrollArea Class Reference

#include <scrollarea.hpp>

Inheritance diagram for gcn::ScrollArea:

gcn::BasicContainer gcn::MouseListener gcn::Widget gcn::DeathListener

List of all members.

Detailed Description

A ScrollArea in which another Widget can be added. It the other Widget is bigger then the ScrollArea, the ScrollArea will only display the part of the Widget that fits the ScrollArea and make it possible to scroll to the other areas of the Widget.

NOTE: A TextBox or a ListBox looks really ugly unless they exist in a ScrollArea.

Definition at line 77 of file scrollarea.hpp.

Public Types


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 death (const Event &event)
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 Rectangle getChildrenArea ()
virtual WidgetgetContent ()
virtual const RectanglegetDimension () const
virtual int getDownButtonScrollAmount ()
FontgetFont () const
virtual const ColorgetForegroundColor () const
virtual int getHeight () const
virtual int getHorizontalMaxScroll ()
virtual int getHorizontalScrollAmount ()
virtual unsigned int getHorizontalScrollPolicy ()
virtual int getLeftButtonScrollAmount ()
virtual WidgetgetParent () const
virtual int getRightButtonScrollAmount ()
virtual int getScrollbarWidth ()
virtual int getUpButtonScrollAmount ()
virtual int getVerticalMaxScroll ()
virtual int getVerticalScrollAmount ()
virtual unsigned int getVerticalScrollPolicy ()
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 isEnabled () const
virtual bool isFocusable () const
virtual bool isFocused () const
virtual bool isTabInEnabled () const
virtual bool isTabOutEnabled () const
virtual bool isVisible () const
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 ()
 ScrollArea (Widget *content, unsigned int hPolicy, unsigned int vPolicy)
 ScrollArea (Widget *content)
 ScrollArea ()
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 setContent (Widget *widget)
virtual void setDimension (const Rectangle &dimension)
virtual void setDownButtonScrollAmount (int amount)
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 setHorizontalScrollAmount (int hScroll)
virtual void setHorizontalScrollPolicy (unsigned int hPolicy)
virtual void setInternalFocusHandler (FocusHandler *focusHandler)
virtual void setLeftButtonScrollAmount (int amount)
virtual void setPosition (int x, int y)
virtual void setRightButtonScrollAmount (int amount)
virtual void setScrollAmount (int hScroll, int vScroll)
virtual void setScrollbarWidth (int width)
virtual void setScrollPolicy (unsigned int hPolicy, unsigned int vPolicy)
virtual void setSize (int width, int height)
virtual void setTabInEnabled (bool enabled)
virtual void setTabOutEnabled (bool enabled)
virtual void setUpButtonScrollAmount (int amount)
virtual void setVerticalScrollAmount (int vScroll)
virtual void setVerticalScrollPolicy (unsigned int vPolicy)
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)
virtual ~ScrollArea ()

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 * > 
typedef std::list< Widget * > WidgetList
typedef WidgetList::iterator WidgetListIterator

Protected Member Functions

virtual void add (Widget *widget)
virtual void checkPolicies ()
virtual void clear ()
virtual void drawBackground (Graphics *graphics)
virtual void drawChildren (Graphics *graphics)
virtual void drawDownButton (Graphics *graphics)
virtual void drawHBar (Graphics *graphics)
virtual void drawHMarker (Graphics *graphics)
virtual void drawLeftButton (Graphics *graphics)
virtual void drawRightButton (Graphics *graphics)
virtual void drawUpButton (Graphics *graphics)
virtual void drawVBar (Graphics *graphics)
virtual void drawVMarker (Graphics *graphics)
void generateAction ()
virtual Rectangle getDownButtonDimension ()
virtual Rectangle getHorizontalBarDimension ()
virtual Rectangle getHorizontalMarkerDimension ()
virtual Rectangle getLeftButtonDimension ()
virtual Rectangle getRightButtonDimension ()
virtual Rectangle getUpButtonDimension ()
virtual Rectangle getVerticalBarDimension ()
virtual Rectangle getVerticalMarkerDimension ()
virtual void logicChildren ()
virtual void remove (Widget *widget)

Protected Attributes

std::string mActionEventId
ActionListenerList mActionListeners
Color mBackgroundColor
Color mBaseColor
unsigned int mBorderSize
DeathListenerList mDeathListeners
Rectangle mDimension
bool mDownButtonPressed
int mDownButtonScrollAmount
bool mEnabled
bool mFocusable
Color mForegroundColor
bool mHBarVisible
int mHorizontalMarkerDragOffset
unsigned int mHPolicy
int mHScroll
bool mIsHorizontalMarkerDragged
bool mIsVerticalMarkerDragged
KeyListenerList mKeyListeners
bool mLeftButtonPressed
int mLeftButtonScrollAmount
MouseListenerList mMouseListeners
bool mRightButtonPressed
int mRightButtonScrollAmount
int mScrollbarWidth
bool mTabIn
bool mTabOut
bool mUpButtonPressed
int mUpButtonScrollAmount
bool mVBarVisible
int mVerticalMarkerDragOffset
bool mVisible
unsigned int mVPolicy
int mVScroll
WidgetList mWidgets

Static Protected Attributes

static DefaultFont mDefaultFont
static FontmGlobalFont = NULL

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

Generated by  Doxygen 1.6.0   Back to index