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

ufo::UMenu Class Reference

A menu item with a popup menu (used for popup menus). More...

#include <umenu.hpp>

Inheritance diagram for ufo::UMenu:

ufo::UMenuItem ufo::UButton ufo::UCompound ufo::UWidget ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UMenu (const std::string &text="", UIcon *icon=NULL)
 UMenu (UIcon *icon)
bool isTopLevelMenu () const
void addSeparator ()
bool isPopupMenuVisible () const
void setPopupMenuVisible (bool b)

Protected Member Functions

virtual void addImpl (UWidget *w, UObject *constraints, int index)
void invalidateSelf ()
std::ostream & paramString (std::ostream &os) const

Protected Attributes

UPopupMenum_popupMenu

Detailed Description

A menu item with a popup menu (used for popup menus).

Author:
Johannes Schmidt


Member Function Documentation

virtual void ufo::UMenu::addImpl UWidget w,
UObject constraints,
int  index
[protected, virtual]
 

adds a sub widget to the popup

Reimplemented from ufo::UWidget.

void ufo::UMenu::addSeparator  ) 
 

appends a separator at the end

void ufo::UMenu::invalidateSelf  )  [protected, virtual]
 

invalidate also the popup menu

Reimplemented from ufo::UWidget.

bool ufo::UMenu::isTopLevelMenu  )  const
 

Returns:
true, if the parent is a menu bar

std::ostream& ufo::UMenu::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::UCompound.


Member Data Documentation

UPopupMenu* ufo::UMenu::m_popupMenu [protected]
 

the popup menu that is popped up, when the menu button is pressed

Reimplemented from ufo::UWidget.


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