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

ufo::UXBMIcon Class Reference

This icon uses an x bitmap and paints it via glBitmap. More...

#include <uxbmicon.hpp>

Inheritance diagram for ufo::UXBMIcon:

ufo::UIcon ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UXBMIcon (const uint8_t *src, int width, int height)
virtual void paintIcon (UGraphics *g, const URectangle &rect, const UStyleHints *hints, uint32_t widgetState=0)
virtual UDimension getIconSize () const

Detailed Description

This icon uses an x bitmap and paints it via glBitmap.

WARNING: This class is deprecated and should not be used.

Author:
Johannes Schmidt


Member Function Documentation

virtual UDimension ufo::UXBMIcon::getIconSize  )  const [virtual]
 

Returns:
The actual icon size

Implements ufo::UIcon.

virtual void ufo::UXBMIcon::paintIcon UGraphics g,
const URectangle rect,
const UStyleHints hints,
uint32_t  widgetState = 0
[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

Implements ufo::UIcon.


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