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

ufo::UStringItem Class Reference

#include <uitem.hpp>

Inheritance diagram for ufo::UStringItem:

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

Public Member Functions

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

Protected Member Functions

virtual std::ostream & paramString (std::ostream &os) const

Detailed Description

A common representation of a string (+ icon).
Author:
Johannes Schmidt


Member Function Documentation

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

Returns the desired item size.

Implements ufo::UItem.

virtual std::string ufo::UStringItem::itemToString  )  const [virtual]
 

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

Implements ufo::UItem.

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

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

Implements ufo::UItem.

virtual std::ostream& ufo::UStringItem::paramString std::ostream &  os  )  const [protected, virtual]
 

Prints some useful internal data to the ostream os. This method is meant only for debugging purposes.

Reimplemented from ufo::UObject.


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