Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

sptkGadget Class Reference

#include <sptkgadget.h>

Inheritance diagram for sptkGadget:

sptkObject sptkButtonGadget sptkCheckBoxGadget sptkImageGadget sptkKeyBoxGadget sptkPane sptkSelectGadget sptkBevelPane sptkLinkPane sptkListPane sptkRootPane sptkTablePane sptkTabPane sptkTextPane List of all members.

Public Member Functions

virtual void draw ()
void setPane (sptkGadget *pane)
sptkGadget * getPane ()
void setName (std::string name)
std::string getName ()
void setHandler (sptkEventHandler *handler)
sptkEventHandlergetHandler ()
void setClickable (bool clickable)
bool getClickable ()
void setMiniview (bool miniview)
bool getMiniview ()

Protected Attributes

std::string name
sptkEventHandlerhandler
sptkGadget * pane
bool clickable

Detailed Description

Author:
Sven Broenstrup


Member Function Documentation

virtual void sptkGadget::draw   [virtual]
 

Draw function of the Gadget.

Reimplemented in sptkPane.

bool sptkGadget::getClickable  
 

Get weather the Gadget is clickable.

Returns:
Weather the Gadget is clickable
TRUE for clickable
FALSE for not clickable

sptkEventHandler* sptkGadget::getHandler  
 

WARNING: For internal use only!

std::string sptkGadget::getName  
 

Get the name of the Gadget

Returns:
The unique string of the Gadget

sptkGadget* sptkGadget::getPane  
 

Get the Pane from the Gadget where it belongs to.

Returns:
The Pane the Gadget is linked to.

void sptkGadget::setClickable bool    clickable
 

Set weather the Gadget is clickable.

Parameters:
clickable Weather the Gadget is clickable
TRUE for clickable
FALSE for not clickable

void sptkGadget::setHandler sptkEventHandler   handler
 

WARNING: For internal use only!

void sptkGadget::setName std::string    name
 

Set the name of the Gadget This is important for the Handler

Parameters:
name Unique string for handling the Button-Events

void sptkGadget::setPane sptkGadget *    pane
 

Link the Gadget to a Pane.

Parameters:
pane The Pane the Gadget is linked to.


Member Data Documentation

bool sptkGadget::clickable [protected]
 

Weather the Gadget is clickable or not

sptkEventHandler* sptkGadget::handler [protected]
 

Eventhandler of the Gadget

std::string sptkGadget::name [protected]
 

Name of the Gadget

sptkGadget* sptkGadget::pane [protected]
 

Pane the Gadget is linked to


The documentation for this class was generated from the following file:
Powered by SPOM