Eclipse SUMO - Simulation of Urban MObility
|
#include <MFXTextFieldTooltip.h>
Public Member Functions | |
MFXTextFieldTooltip (FXComposite *p, MFXStaticToolTip *staticToolTip, FXint ncols, FXObject *tgt, FXSelector sel, FXuint opts=TEXTFIELD_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 | |
void | setToolTipText (const FXString &toolTip) |
set toolTip | |
~MFXTextFieldTooltip () | |
destructor (Called automatically) | |
FOX callbacks | |
called when mouse enter in MFXTextFieldTooltip | |
long | onEnter (FXObject *, FXSelector, void *) |
long | onLeave (FXObject *, FXSelector, void *) |
called when mouse leaves in MFXTextFieldTooltip | |
long | onMotion (FXObject *, FXSelector, void *) |
called when mouse motion in MFXTextFieldTooltip | |
Protected Attributes | |
MFXStaticToolTip * | myStaticToolTip = nullptr |
FOX needs this. | |
FXString | myToolTipText |
toolTip text (if set, tooltip will be always show) | |
Private Member Functions | |
MFXTextFieldTooltip (const MFXTextFieldTooltip &)=delete | |
Invalidated copy constructor. | |
MFXTextFieldTooltip & | operator= (const MFXTextFieldTooltip &)=delete |
Invalidated assignment operator. | |
Definition at line 29 of file MFXTextFieldTooltip.h.
MFXTextFieldTooltip::MFXTextFieldTooltip | ( | FXComposite * | p, |
MFXStaticToolTip * | staticToolTip, | ||
FXint | ncols, | ||
FXObject * | tgt, | ||
FXSelector | sel, | ||
FXuint | opts = TEXTFIELD_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 FXTextField constructor)
Definition at line 35 of file MFXTextFieldTooltip.cpp.
MFXTextFieldTooltip::~MFXTextFieldTooltip | ( | ) |
destructor (Called automatically)
Definition at line 42 of file MFXTextFieldTooltip.cpp.
|
privatedelete |
Invalidated copy constructor.
long MFXTextFieldTooltip::onEnter | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 52 of file MFXTextFieldTooltip.cpp.
References myStaticToolTip, myToolTipText, and MFXStaticToolTip::showStaticToolTip().
Referenced by FXDEFMAP().
long MFXTextFieldTooltip::onLeave | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when mouse leaves in MFXTextFieldTooltip
Definition at line 73 of file MFXTextFieldTooltip.cpp.
References MFXStaticToolTip::hideStaticToolTip(), and myStaticToolTip.
Referenced by FXDEFMAP().
long MFXTextFieldTooltip::onMotion | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
called when mouse motion in MFXTextFieldTooltip
Definition at line 82 of file MFXTextFieldTooltip.cpp.
References myStaticToolTip, and MFXStaticToolTip::onUpdate().
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
void MFXTextFieldTooltip::setToolTipText | ( | const FXString & | toolTip | ) |
|
protected |
FOX needs this.
static tooltip
Definition at line 63 of file MFXTextFieldTooltip.h.
Referenced by onEnter(), onLeave(), and onMotion().
|
protected |
toolTip text (if set, tooltip will be always show)
Definition at line 66 of file MFXTextFieldTooltip.h.
Referenced by onEnter(), and setToolTipText().