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

PG_ListBoxBaseItem Class Reference

Inheritance diagram for PG_ListBoxBaseItem:

Inheritance graph
[legend]
Collaboration diagram for PG_ListBoxBaseItem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PG_ListBoxBaseItem (PG_Widget *parent, Uint16 height, void *userdata=NULL)
 ~PG_ListBoxBaseItem ()
void SetUserData (void *userdata)
void * GetUserData ()
bool IsSelected ()
void Select (bool select=true)
PG_ListBoxGetParent ()
 Get the parentwidget of a widget.


Protected Member Functions

void eventSizeWidget (Uint16 w, Uint16 h)
 Callback for the SizeWidget event.

void eventMouseEnter ()
 eventhandler for mouse movements.

void eventMouseLeave ()
 eventhandler for mouse movements.

bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)
 Overridable Eventhandler for a SDL_MouseButtonEvent message.

void eventHide ()
 overridable eventhandler called whenever the widget gets hidden.


Protected Attributes

void * my_userdata
bool my_selected
bool my_hover

Constructor & Destructor Documentation

PG_ListBoxBaseItem::PG_ListBoxBaseItem PG_Widget parent,
Uint16  height,
void *  userdata = NULL
 

PG_ListBoxBaseItem::~PG_ListBoxBaseItem  ) 
 


Member Function Documentation

void PG_ListBoxBaseItem::eventHide  )  [protected, virtual]
 

overridable eventhandler called whenever the widget gets hidden.

Reimplemented from PG_Widget.

bool PG_ListBoxBaseItem::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.

void PG_ListBoxBaseItem::eventMouseEnter  )  [protected, virtual]
 

eventhandler for mouse movements.

This overrideable handler is called everytime the mouse cursor is entering the widget area.

Reimplemented from PG_Widget.

void PG_ListBoxBaseItem::eventMouseLeave  )  [protected, virtual]
 

eventhandler for mouse movements.

This overrideable handler is called everytime the mouse cursor is leaving the widget area.

Reimplemented from PG_Widget.

void PG_ListBoxBaseItem::eventSizeWidget Uint16  w,
Uint16  h
[protected, virtual]
 

Callback for the SizeWidget event.

Parameters:
w new width
h new height This virtual function can be used to implement custom behavior for SizeWidget events.

Reimplemented from PG_Widget.

Reimplemented in PG_ListBoxItem.

PG_ListBox* PG_ListBoxBaseItem::GetParent  ) 
 

Get the parentwidget of a widget.

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

Reimplemented from PG_Widget.

void* PG_ListBoxBaseItem::GetUserData  ) 
 

bool PG_ListBoxBaseItem::IsSelected  ) 
 

void PG_ListBoxBaseItem::Select bool  select = true  ) 
 

void PG_ListBoxBaseItem::SetUserData void *  userdata  ) 
 


Member Data Documentation

bool PG_ListBoxBaseItem::my_hover [protected]
 

bool PG_ListBoxBaseItem::my_selected [protected]
 

void* PG_ListBoxBaseItem::my_userdata [protected]
 



The ParaGUI Project - Alexander Pipelka