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

PG_ListBoxItem Class Reference

Inheritance diagram for PG_ListBoxItem:

Inheritance graph
[legend]
Collaboration diagram for PG_ListBoxItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

Examples:

paratest.cpp.


Public Member Functions

 PG_ListBoxItem (PG_Widget *parent, int height, const char *text=NULL, SDL_Surface *icon=NULL, void *userdata=NULL, const char *style="ListBox")
 ~PG_ListBoxItem ()
void LoadThemeStyle (const char *widgettype, const char *objectname)
 Load a style from the theme definition.


Protected Member Functions

void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 overridable eventhandler to blit the widget contents to the screen

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


Constructor & Destructor Documentation

PG_ListBoxItem::PG_ListBoxItem PG_Widget parent,
int  height,
const char *  text = NULL,
SDL_Surface *  icon = NULL,
void *  userdata = NULL,
const char *  style = "ListBox"
 

PG_ListBoxItem::~PG_ListBoxItem  ) 
 


Member Function Documentation

void PG_ListBoxItem::eventBlit SDL_Surface *  surface,
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_Label.

Reimplemented in PG_ColumnItem.

void PG_ListBoxItem::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_ListBoxBaseItem.

void PG_ListBoxItem::LoadThemeStyle const char *  widgettype,
const char *  objectname
[virtual]
 

Load a style from the theme definition.

Parameters:
widgettype name of the widgettype
objectname name of the object
Loads the defined style of a given widgettype and objectname.

Reimplemented from PG_Label.



The ParaGUI Project - Alexander Pipelka