Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXMenuButtonTooltip.h>
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 | |
MFXStaticToolTip * | myStaticToolTip = nullptr |
FOX needs this. | |
Private Member Functions | |
MFXMenuButtonTooltip (const MFXMenuButtonTooltip &)=delete | |
Invalidated copy constructor. | |
MFXMenuButtonTooltip & | operator= (const MFXMenuButtonTooltip &)=delete |
Invalidated assignment operator. | |
Definition at line 31 of file MFXMenuButtonTooltip.h.
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 | ( | ) |
destructor (Called automatically)
Definition at line 48 of file MFXMenuButtonTooltip.cpp.
|
privatedelete |
Invalidated copy constructor.
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().
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().
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().
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().
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().
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().
|
privatedelete |
Invalidated assignment operator.
|
protected |
optional target
Definition at line 76 of file MFXMenuButtonTooltip.h.
Referenced by onCmdPost(), onKeyPress(), and onLeftBtnPress().
|
protected |
FOX needs this.
static tooltip
Definition at line 73 of file MFXMenuButtonTooltip.h.
Referenced by onEnter(), onLeave(), and onMotion().