Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIMenuBar Class Reference

MenuBar widget. More...

#include <nsIMenuBar.h>

Inheritance diagram for nsIMenuBar:
Inheritance graph
[legend]
Collaboration diagram for nsIMenuBar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD Create (nsIWidget *aParent)=0
 Creates the MenuBar.
NS_IMETHOD GetParent (nsIWidget *&aParent)=0
 Get the MenuBar's Parent.
NS_IMETHOD SetParent (nsIWidget *aParent)=0
 Set the MenuBar's Parent.
NS_IMETHOD AddMenu (nsIMenu *aMenu)=0
 Adds the Menu.
NS_IMETHOD GetMenuCount (PRUint32 &aCount)=0
 Returns the number of menus.
NS_IMETHOD GetMenuAt (const PRUint32 aCount, nsIMenu *&aMenu)=0
 Returns a Menu Item at a specified Index.
NS_IMETHOD InsertMenuAt (const PRUint32 aCount, nsIMenu *&aMenu)=0
 Inserts a Menu at a specified Index.
NS_IMETHOD RemoveMenu (const PRUint32 aCount)=0
 Removes an Menu from a specified Index.
NS_IMETHOD RemoveAll ()=0
 Removes all the Menus.
NS_IMETHOD GetNativeData (void *&aData)=0
 Gets Native MenuHandle.
NS_IMETHOD SetNativeData (void *aData)=0
 Sets Native MenuHandle.
NS_IMETHOD Paint ()=0
 Draw the menubar.

Detailed Description

MenuBar widget.

Definition at line 55 of file nsIMenuBar.h.


Member Function Documentation

NS_IMETHOD nsIMenuBar::AddMenu ( nsIMenu aMenu) [pure virtual]

Adds the Menu.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::Create ( nsIWidget aParent) [pure virtual]

Creates the MenuBar.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::GetMenuAt ( const PRUint32  aCount,
nsIMenu *&  aMenu 
) [pure virtual]

Returns a Menu Item at a specified Index.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::GetMenuCount ( PRUint32 aCount) [pure virtual]

Returns the number of menus.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::GetNativeData ( void *&  aData) [pure virtual]

Gets Native MenuHandle.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::GetParent ( nsIWidget *&  aParent) [pure virtual]

Get the MenuBar's Parent.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::InsertMenuAt ( const PRUint32  aCount,
nsIMenu *&  aMenu 
) [pure virtual]

Inserts a Menu at a specified Index.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::Paint ( ) [pure virtual]

Draw the menubar.

 

Implemented in nsMenuBarX, and nsMenuBarX.

Here is the caller graph for this function:

NS_IMETHOD nsIMenuBar::RemoveAll ( ) [pure virtual]

Removes all the Menus.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::RemoveMenu ( const PRUint32  aCount) [pure virtual]

Removes an Menu from a specified Index.

 

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::SetNativeData ( void aData) [pure virtual]

Sets Native MenuHandle.

Temporary hack for mac until nsMenuBar does it's own construction

Implemented in nsMenuBarX, and nsMenuBarX.

NS_IMETHOD nsIMenuBar::SetParent ( nsIWidget aParent) [pure virtual]

Set the MenuBar's Parent.

 

Implemented in nsMenuBarX, and nsMenuBarX.


The documentation for this class was generated from the following file: