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

ufo::UPopupMenu Class Reference

A popup used for popup menus. More...

#include <upopupmenu.hpp>

Inheritance diagram for ufo::UPopupMenu:

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

Public Types

typedef USignal1< UPopupMenu * > MenuSignal
typedef USignal2< UPopupMenu *,
UMenuItem * > 
MenuItemSignal

Public Member Functions

 UPopupMenu (UWidget *invoker)
virtual void setVisible (bool v)
void addSeparator ()
void setPopupLocation (const UPoint &pos)
UPoint getPopupLocation () const
virtual void setInvoker (UWidget *invoker)
virtual UWidgetgetInvoker () const
MenuSignal & sigMenuAboutToOpen ()
MenuSignal & sigMenuAboutToClose ()
MenuItemSignal & sigMenuItemHighlight ()

Protected Member Functions

void popupCloseSlot (UPopup *popup)

Detailed Description

A popup used for popup menus.

Author:
Johannes Schmidt


Member Function Documentation

void ufo::UPopupMenu::addSeparator  ) 
 

appends a separator at the end

void ufo::UPopupMenu::popupCloseSlot UPopup popup  )  [protected]
 

Closes this popup menu. FIXME: Should this be within the UI class?

virtual void ufo::UPopupMenu::setInvoker UWidget invoker  )  [virtual]
 

Sets the invoker widget which opens this popupmenu

void ufo::UPopupMenu::setPopupLocation const UPoint pos  )  [inline]
 

Sets the popup location relative to invoker widget. The popup location is always in coordinates of the invoker widget.

virtual void ufo::UPopupMenu::setVisible bool  v  )  [virtual]
 

use show, at least the first time

See also:
show

Reimplemented from ufo::UWidget.

UPopupMenu::MenuSignal & ufo::UPopupMenu::sigMenuAboutToClose  )  [inline]
 

This popup menu is about to close

UPopupMenu::MenuSignal & ufo::UPopupMenu::sigMenuAboutToOpen  )  [inline]
 

This popup menu is about to be opened

UPopupMenu::MenuItemSignal & ufo::UPopupMenu::sigMenuItemHighlight  )  [inline]
 

A menu item is selected


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