Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PG_ColorSelector::PG_ColorBox Class Reference

Inheritance diagram for PG_ColorSelector::PG_ColorBox:

Inheritance graph
[legend]
Collaboration diagram for PG_ColorSelector::PG_ColorBox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PG_ColorBox (PG_ColorSelector *parent, const PG_Rect &r)
PG_ColorSelectorGetParent ()
 Get the parentwidget of a widget.
PG_Color GetBaseColor ()

Protected Member Functions

void eventBlit (SDL_Surface *srf, const PG_Rect &src, const PG_Rect &dst)
 overridable eventhandler to blit the widget contents to the screen
bool eventMouseMotion (const SDL_MouseMotionEvent *motion)
 Overridable Eventhandler for a SDL_MouseMotionEvent message.
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 Overridable Eventhandler for a SDL_MouseButtonEvent message.
bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)
 Overridable Eventhandler for a SDL_MouseButtonEvent message.

Constructor & Destructor Documentation

PG_ColorSelector::PG_ColorBox::PG_ColorBox PG_ColorSelector parent,
const PG_Rect r
 


Member Function Documentation

void PG_ColorSelector::PG_ColorBox::eventBlit SDL_Surface *  srf,
const PG_Rect src,
const PG_Rect dst
[protected, virtual]
 

overridable eventhandler to blit the widget contents to the screen

Parameters:
surface pointer to SDL_Surface to be blitted
src source rectangle (client coordinates)
dst destination rectangle (screen coordinates) Override this eventhandler to perform custom blitting behaviour (without drawing onto the widget surface).

Reimplemented from PG_ThemeWidget.

bool PG_ColorSelector::PG_ColorBox::eventMouseButtonDown const SDL_MouseButtonEvent *  button  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_MouseButtonEvent message.

This handler is called when a mouse button is pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

bool PG_ColorSelector::PG_ColorBox::eventMouseButtonUp const SDL_MouseButtonEvent *  button  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_MouseButtonEvent message.

This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

bool PG_ColorSelector::PG_ColorBox::eventMouseMotion const SDL_MouseMotionEvent *  motion  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_MouseMotionEvent message.

This handler is called when mouse movement is detected. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
motion SDL_MouseMotionEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

PG_Color PG_ColorSelector::PG_ColorBox::GetBaseColor  ) 
 

PG_ColorSelector* PG_ColorSelector::PG_ColorBox::GetParent  )  [inline]
 

Get the parentwidget of a widget.

Returns:
a pointer to the parentwidget or NULL if there is no parentwidget

Reimplemented from PG_Widget.


Generated on Tue Jun 24 02:25:32 2008 for ParaGUI by  doxygen 1.4.2