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

ufo::UItem Class Reference

This is an abstract base class for items. More...

#include <uitem.hpp>

Inheritance diagram for ufo::UItem:

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

Public Member Functions

virtual void paintItem (UGraphics *g, const URectangle &rect, const UStyleHints *hints, uint32_t state, const UWidget *parent=NULL)=0
virtual UDimension getItemSize (const UDimension &maxSize, const UStyleHints *hints, const UWidget *parent=NULL) const =0
virtual std::string itemToString () const =0
virtual void install (UWidget *parent)=0
virtual void uninstall (UWidget *parent)=0

Detailed Description

This is an abstract base class for items.

This includes list box items, combo box items, tab items, ...

Author:
Johannes Schmidt


Member Function Documentation

virtual UDimension ufo::UItem::getItemSize const UDimension maxSize,
const UStyleHints hints,
const UWidget parent = NULL
const [pure virtual]
 

Returns the desired item size.

Implemented in ufo::UStringItem.

virtual std::string ufo::UItem::itemToString  )  const [pure virtual]
 

A string representation of the current value. Most items show up only a string.

Implemented in ufo::UStringItem.

virtual void ufo::UItem::paintItem UGraphics g,
const URectangle rect,
const UStyleHints hints,
uint32_t  state,
const UWidget parent = NULL
[pure virtual]
 

Paints the item at the specified position with the specified values.

Implemented in ufo::UStringItem.


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