- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UIcon Class Reference

Abstract class for label and button icons. More...

#include <uicon.hpp>

Inheritance diagram for ufo::UIcon:

ufo::UObject ufo::UCollectable ufo::UImageIcon ufo::UXBMIcon List of all members.

Public Member Functions

virtual void paintIcon (UGraphics *g, const URectangle &rect, const UStyleHints *hints, uint32_t widgetState=0)=0
void paintIcon (UGraphics *g, int x, int y, const UStyleHints *hints, uint32_t widgetState=0)
virtual UDimension getIconSize () const =0

Detailed Description

Abstract class for label and button icons.

Author:
Johannes Schmidt


Member Function Documentation

virtual UDimension ufo::UIcon::getIconSize  )  const [pure virtual]
 

Returns:
The actual icon size

Implemented in ufo::UImageIcon, and ufo::UXBMIcon.

void ufo::UIcon::paintIcon UGraphics g,
int  x,
int  y,
const UStyleHints hints,
uint32_t  widgetState = 0
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

virtual void ufo::UIcon::paintIcon UGraphics g,
const URectangle rect,
const UStyleHints hints,
uint32_t  widgetState = 0
[pure virtual]
 

Paints this icon on the given graphics object. If the size of the rectangle is empty or invalid, the actual icon size is used. Furthermore, the icon may ignore given sizes.

Parameters:
g The graphics object
rect The rectangle
hints Style hints which may be used to paint the icon
widgetState state flags

Implemented in ufo::UImageIcon, and ufo::UXBMIcon.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt