Eclipse SUMO - Simulation of Urban MObility
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 More...
 
 ~MFXMenuButtonTooltip ()
 destructor (Called automatically) More...
 
FOX callbacks

called when mouse enter in MFXMenuButtonTooltip

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

Protected Attributes

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

Private Member Functions

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

Detailed Description

Definition at line 31 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 39 of file MFXMenuButtonTooltip.cpp.

◆ ~MFXMenuButtonTooltip()

MFXMenuButtonTooltip::~MFXMenuButtonTooltip ( )

destructor (Called automatically)

Definition at line 48 of file MFXMenuButtonTooltip.cpp.

◆ MFXMenuButtonTooltip() [2/2]

MFXMenuButtonTooltip::MFXMenuButtonTooltip ( const MFXMenuButtonTooltip )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ onCmdPost()

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

called when button is press

Definition at line 97 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 52 of file MFXMenuButtonTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::showStaticToolTip().

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 86 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 60 of file MFXMenuButtonTooltip.cpp.

References MFXStaticToolTip::hideStaticToolTip(), and 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 76 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 68 of file MFXMenuButtonTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::onUpdate().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

Field Documentation

◆ myOptionalTarget

FXObject* MFXMenuButtonTooltip::myOptionalTarget = nullptr
protected

optional target

Definition at line 76 of file MFXMenuButtonTooltip.h.

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

◆ myStaticToolTip

MFXStaticToolTip* MFXMenuButtonTooltip::myStaticToolTip = nullptr
protected

FOX needs this.

static tooltip

Definition at line 73 of file MFXMenuButtonTooltip.h.

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


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