GuiMenuBar Class Reference

A container class for GuiMenuItems, to show menus. More...

#include <guimenu.h>

Inheritance diagram for GuiMenuBar:

Inheritance graph
[legend]
Collaboration diagram for GuiMenuBar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

DECLSPEC GuiMenuBar (const SDL_Rect &r, GuiElement *parent, const char *name, bool horizontal=true)
virtual const char * getClassName ()
DECLSPEC void hideSubmenus ()
 Hides all it's submenus.
DECLSPEC void showAt (const SDL_Rect &r)
DECLSPEC void setCallback (const FunctionData &fd)

Protected Member Functions

virtual DECLSPEC void onSelect (GuiMenuItem *selected)

Friends

class GuiMenuItem

Detailed Description

A container class for GuiMenuItems, to show menus.

Test:
This class has never been tested yet and is expected not to work (correctly).


Member Function Documentation

virtual const char* GuiMenuBar::getClassName (  )  [inline, virtual]

This function should be overriden in every sub-class of BasicObject!

Returns:
the name of the class.

Reimplemented from GuiElement.

void GuiMenuBar::showAt ( const SDL_Rect &  r  ) 

Shows the bar next to the specified rect.

Parameters:
r the rect

DECLSPEC void GuiMenuBar::setCallback ( const FunctionData &  fd  )  [inline]

Sets the function to be called when an item is selected/clicked on. The sender (1st param) of the callback will be the clicked item (not this menu-bar).

Parameters:
fd the function data

void GuiMenuBar::onSelect ( GuiMenuItem selected  )  [protected, virtual]

Called when an item has been selected/clicked. But not if the item openes a submenu.


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:22 2007 for netrinjo by  doxygen 1.5.1