Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MFXMenuButtonTooltip Class Reference

#include <MFXMenuButtonTooltip.h>

Inheritance diagram for MFXMenuButtonTooltip:
[legend]
Collaboration diagram for MFXMenuButtonTooltip:
[legend]

Public Member Functions

 MFXMenuButtonTooltip (FXComposite *p, MFXStaticToolTip *staticToolTip, const std::string &text, FXIcon *ic, FXPopup *pup, FXObject *optionalTarget, FXuint opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
 fox declaration
 ~MFXMenuButtonTooltip ()
 destructor (Called automatically)
FOX callbacks

called when mouse enter in MFXMenuButtonTooltip

long onEnter (FXObject *, FXSelector, void *)
long onLeave (FXObject *, FXSelector, void *)
 called when mouse leaves in MFXMenuButtonTooltip
long onMotion (FXObject *, FXSelector, void *)
 called when mouse motion in MFXMenuButtonTooltip
long onLeftBtnPress (FXObject *, FXSelector, void *)
 called when left mouse button is press
long onKeyPress (FXObject *, FXSelector, void *)
 called when key is press
long onCmdPost (FXObject *, FXSelector, void *)
 called when button is press

Protected Attributes

FXObject * myOptionalTarget = nullptr
 optional target
MFXStaticToolTipmyStaticToolTip = nullptr
 FOX needs this.

Private Member Functions

 MFXMenuButtonTooltip (const MFXMenuButtonTooltip &)=delete
 Invalidated copy constructor.
MFXMenuButtonTooltipoperator= (const MFXMenuButtonTooltip &)=delete
 Invalidated assignment operator.

Detailed Description

Definition at line 37 of file MFXMenuButtonTooltip.h.

Constructor & Destructor Documentation

◆ MFXMenuButtonTooltip() [1/2]

MFXMenuButtonTooltip::MFXMenuButtonTooltip ( FXComposite * p,
MFXStaticToolTip * staticToolTip,
const std::string & text,
FXIcon * ic,
FXPopup * pup,
FXObject * optionalTarget,
FXuint opts = JUSTIFY_NORMAL | ICON_BEFORE_TEXT | MENUBUTTON_DOWN,
FXint x = 0,
FXint y = 0,
FXint w = 0,
FXint h = 0,
FXint pl = DEFAULT_PAD,
FXint pr = DEFAULT_PAD,
FXint pt = DEFAULT_PAD,
FXint pb = DEFAULT_PAD )

fox declaration

constructor (Exactly like the FXMenuButton constructor)

Definition at line 47 of file MFXMenuButtonTooltip.cpp.

References MFXMenuButtonTooltip(), myOptionalTarget, and myStaticToolTip.

Referenced by MFXMenuButtonTooltip(), MFXMenuButtonTooltip(), and operator=().

Here is the caller graph for this function:

◆ ~MFXMenuButtonTooltip()

MFXMenuButtonTooltip::~MFXMenuButtonTooltip ( )

destructor (Called automatically)

Definition at line 56 of file MFXMenuButtonTooltip.cpp.

◆ MFXMenuButtonTooltip() [2/2]

MFXMenuButtonTooltip::MFXMenuButtonTooltip ( const MFXMenuButtonTooltip & )
privatedelete

Invalidated copy constructor.

References MFXMenuButtonTooltip().

Member Function Documentation

◆ onCmdPost()

long MFXMenuButtonTooltip::onCmdPost ( FXObject * sender,
FXSelector sel,
void * ptr )

called when button is press

Definition at line 105 of file MFXMenuButtonTooltip.cpp.

References MID_MBTTIP_SELECTED, and myOptionalTarget.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onEnter()

long MFXMenuButtonTooltip::onEnter ( FXObject * sender,
FXSelector sel,
void * ptr )

Definition at line 60 of file MFXMenuButtonTooltip.cpp.

References myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onKeyPress()

long MFXMenuButtonTooltip::onKeyPress ( FXObject * sender,
FXSelector sel,
void * ptr )

called when key is press

Definition at line 94 of file MFXMenuButtonTooltip.cpp.

References MID_MBTTIP_FOCUS, and myOptionalTarget.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeave()

long MFXMenuButtonTooltip::onLeave ( FXObject * sender,
FXSelector sel,
void * ptr )

called when mouse leaves in MFXMenuButtonTooltip

Definition at line 68 of file MFXMenuButtonTooltip.cpp.

References myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeftBtnPress()

long MFXMenuButtonTooltip::onLeftBtnPress ( FXObject * sender,
FXSelector sel,
void * ptr )

called when left mouse button is press

Definition at line 84 of file MFXMenuButtonTooltip.cpp.

References MID_MBTTIP_FOCUS, and myOptionalTarget.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMotion()

long MFXMenuButtonTooltip::onMotion ( FXObject * sender,
FXSelector sel,
void * ptr )

called when mouse motion in MFXMenuButtonTooltip

Definition at line 76 of file MFXMenuButtonTooltip.cpp.

References myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

MFXMenuButtonTooltip & MFXMenuButtonTooltip::operator= ( const MFXMenuButtonTooltip & )
privatedelete

Invalidated assignment operator.

References MFXMenuButtonTooltip().

Field Documentation

◆ myOptionalTarget

FXObject* MFXMenuButtonTooltip::myOptionalTarget = nullptr
protected

optional target

Definition at line 82 of file MFXMenuButtonTooltip.h.

Referenced by MFXMenuButtonTooltip(), onCmdPost(), onKeyPress(), and onLeftBtnPress().

◆ myStaticToolTip

MFXStaticToolTip* MFXMenuButtonTooltip::myStaticToolTip = nullptr
protected

FOX needs this.

static tooltip

Definition at line 79 of file MFXMenuButtonTooltip.h.

Referenced by MFXMenuButtonTooltip(), onEnter(), onLeave(), and onMotion().


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