ui::Icon Class Reference

Inheritance diagram for ui::Icon:

Inheritance graph
[legend]
List of all members.

Detailed Description

Icon interface. By implementing this interface your object qualifies as an Icon and can be used in Labels and Buttons. Besides icons, this can also be used to use images on buttons.


Public Member Functions

virtual void paint (Component *c, Graphics &g, int x, int y)=0
virtual int getIconHeight () const=0
virtual int getIconWidth () const=0


Member Function Documentation

virtual void ui::Icon::paint Component c,
Graphics g,
int  x,
int  y
[pure virtual]
 

Paint the icon.

Parameters:
c Component the Icon is painted on.
g Graphics instance, used for drawing.
x X location of the icon.
y Y location of the icon.

virtual int ui::Icon::getIconHeight  )  const [pure virtual]
 

Returns the preferred height for this Icon. This height is then used in calculating the icon's parent size.

virtual int ui::Icon::getIconWidth  )  const [pure virtual]
 

Returns the preferred width for this Icon. This width is then used in calculating the icon's parent size.


Generated on Mon Jun 20 19:41:44 2005 for UI by doxygen 1.3.1 using KingsTools