Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXButtonTooltip.h>
Public Member Functions | |
MFXButtonTooltip (FXComposite *p, MFXStaticToolTip *staticToolTip, const std::string &text, FXIcon *ic=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=BUTTON_NORMAL, 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 | |
~MFXButtonTooltip () | |
destructor (Called automatically) | |
FOX callbacks | |
called when mouse enter in MFXButtonTooltip | |
long | onEnter (FXObject *, FXSelector, void *) |
long | onLeave (FXObject *, FXSelector, void *) |
called when mouse leaves in MFXButtonTooltip | |
long | onMotion (FXObject *, FXSelector, void *) |
called when mouse motion in MFXButtonTooltip | |
Protected Attributes | |
MFXStaticToolTip * | myStaticToolTip = nullptr |
FOX needs this. | |
Private Member Functions | |
MFXButtonTooltip (const MFXButtonTooltip &)=delete | |
Invalidated copy constructor. | |
MFXButtonTooltip & | operator= (const MFXButtonTooltip &)=delete |
Invalidated assignment operator. | |
Definition at line 31 of file MFXButtonTooltip.h.
MFXButtonTooltip::MFXButtonTooltip | ( | FXComposite * | p, |
MFXStaticToolTip * | staticToolTip, | ||
const std::string & | text, | ||
FXIcon * | ic = NULL , |
||
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = BUTTON_NORMAL , |
||
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 FXButton constructor)
Definition at line 35 of file MFXButtonTooltip.cpp.
MFXButtonTooltip::~MFXButtonTooltip | ( | ) |
destructor (Called automatically)
Definition at line 45 of file MFXButtonTooltip.cpp.
|
privatedelete |
Invalidated copy constructor.
long MFXButtonTooltip::onEnter | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 49 of file MFXButtonTooltip.cpp.
References myStaticToolTip, and MFXStaticToolTip::showStaticToolTip().
Referenced by FXDEFMAP().
long MFXButtonTooltip::onLeave | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when mouse leaves in MFXButtonTooltip
Definition at line 57 of file MFXButtonTooltip.cpp.
References MFXStaticToolTip::hideStaticToolTip(), and myStaticToolTip.
Referenced by FXDEFMAP().
long MFXButtonTooltip::onMotion | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when mouse motion in MFXButtonTooltip
Definition at line 65 of file MFXButtonTooltip.cpp.
References myStaticToolTip, and MFXStaticToolTip::onUpdate().
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
protected |
FOX needs this.
static tooltip
Definition at line 63 of file MFXButtonTooltip.h.
Referenced by onEnter(), onLeave(), and onMotion().