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 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: