Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MFXTextFieldTooltip Class Reference

#include <MFXTextFieldTooltip.h>

Inheritance diagram for MFXTextFieldTooltip:
[legend]
Collaboration diagram for MFXTextFieldTooltip:
[legend]

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

MFXStaticToolTipmyStaticToolTip = 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.
 
MFXTextFieldTooltipoperator= (const MFXTextFieldTooltip &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 29 of file MFXTextFieldTooltip.h.

Constructor & Destructor Documentation

◆ MFXTextFieldTooltip() [1/2]

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::~MFXTextFieldTooltip ( )

destructor (Called automatically)

Definition at line 42 of file MFXTextFieldTooltip.cpp.

◆ MFXTextFieldTooltip() [2/2]

MFXTextFieldTooltip::MFXTextFieldTooltip ( const MFXTextFieldTooltip )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ onEnter()

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().

Here is the caller graph for this function:

◆ onLeave()

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().

Here is the caller graph for this function:

◆ onMotion()

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().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ setToolTipText()

void MFXTextFieldTooltip::setToolTipText ( const FXString &  toolTip)

set toolTip

Definition at line 46 of file MFXTextFieldTooltip.cpp.

References myToolTipText.

Field Documentation

◆ myStaticToolTip

MFXStaticToolTip* MFXTextFieldTooltip::myStaticToolTip = nullptr
protected

FOX needs this.

static tooltip

Definition at line 63 of file MFXTextFieldTooltip.h.

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

◆ myToolTipText

FXString MFXTextFieldTooltip::myToolTipText
protected

toolTip text (if set, tooltip will be always show)

Definition at line 66 of file MFXTextFieldTooltip.h.

Referenced by onEnter(), and setToolTipText().


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