Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXMenuTitle Class Reference

A menu title is a child of a menu bar which is responsible for popping up a pulldown menu. More...

#include <FXMenuTitle.h>

Inheritance diagram for FX::FXMenuTitle:

FX::FXMenuCaption FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXMenuTitle (FXComposite *p, const FXString &text, FXIcon *ic=NULL, FXPopup *pup=NULL, FXuint opts=0)
virtual void create ()
virtual void detach ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual FXbool canFocus () const
virtual void setFocus ()
virtual void killFocus ()
void setMenu (FXPopup *menu)
FXPopupgetMenu () const
virtual FXbool contains (FXint parentx, FXint parenty) const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXMenuTitle ()

Detailed Description

A menu title is a child of a menu bar which is responsible for popping up a pulldown menu.


Constructor & Destructor Documentation

FX::FXMenuTitle::FXMenuTitle FXComposite p,
const FXString text,
FXIcon ic = NULL,
FXPopup pup = NULL,
FXuint  opts = 0
 

Constructor.

virtual FX::FXMenuTitle::~FXMenuTitle  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void FX::FXMenuTitle::create  )  [virtual]
 

Create server-side resources.

Reimplemented from FX::FXMenuCaption.

virtual void FX::FXMenuTitle::detach  )  [virtual]
 

Detach server-side resources.

Reimplemented from FX::FXMenuCaption.

virtual FXint FX::FXMenuTitle::getDefaultWidth  )  [virtual]
 

Return default width.

Reimplemented from FX::FXMenuCaption.

virtual FXint FX::FXMenuTitle::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXMenuCaption.

virtual FXbool FX::FXMenuTitle::canFocus  )  const [virtual]
 

Yes it can receive the focus.

Reimplemented from FX::FXWindow.

virtual void FX::FXMenuTitle::setFocus  )  [virtual]
 

Move the focus to this window.

Reimplemented from FX::FXWindow.

virtual void FX::FXMenuTitle::killFocus  )  [virtual]
 

Remove the focus from this window.

Reimplemented from FX::FXWindow.

void FX::FXMenuTitle::setMenu FXPopup menu  ) 
 

Set popup menu to pop up.

FXPopup* FX::FXMenuTitle::getMenu  )  const [inline]
 

Return popup menu.

virtual FXbool FX::FXMenuTitle::contains FXint  parentx,
FXint  parenty
const [virtual]
 

True if this menu or is popup logically contains the mouse.

Reimplemented from FX::FXWindow.

virtual void FX::FXMenuTitle::save FXStream store  )  const [virtual]
 

Save menu to a stream.

Reimplemented from FX::FXMenuCaption.

virtual void FX::FXMenuTitle::load FXStream store  )  [virtual]
 

Load menu from a stream.

Reimplemented from FX::FXMenuCaption.

Copyright © 1997-2005 Jeroen van der Zijp