Eclipse SUMO - Simulation of Urban MObility
MFXCheckButtonTooltip Class Reference

#include <MFXCheckButtonTooltip.h>

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

Public Member Functions

 MFXCheckButtonTooltip (FXComposite *p, MFXStaticToolTip *staticToolTip, const FXString &text, 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 More...
 
void setToolTipText (const FXString &toolTip)
 set toolTip More...
 
 ~MFXCheckButtonTooltip ()
 destructor (Called automatically) More...
 
FOX callbacks

called when mouse enter in MFXCheckButtonTooltip

long onEnter (FXObject *, FXSelector, void *)
 
long onLeave (FXObject *, FXSelector, void *)
 called when mouse leaves in MFXCheckButtonTooltip More...
 
long onMotion (FXObject *, FXSelector, void *)
 called when mouse motion in MFXCheckButtonTooltip More...
 

Protected Attributes

MFXStaticToolTipmyStaticToolTip = nullptr
 FOX needs this. More...
 
FXString myToolTipText
 toolTip text (if set, tooltip will be always show) More...
 

Private Member Functions

 MFXCheckButtonTooltip (const MFXCheckButtonTooltip &)=delete
 Invalidated copy constructor. More...
 
MFXCheckButtonTooltipoperator= (const MFXCheckButtonTooltip &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Definition at line 29 of file MFXCheckButtonTooltip.h.

Constructor & Destructor Documentation

◆ MFXCheckButtonTooltip() [1/2]

MFXCheckButtonTooltip::MFXCheckButtonTooltip ( FXComposite *  p,
MFXStaticToolTip staticToolTip,
const FXString &  text,
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 FXCheckButton constructor)

Definition at line 35 of file MFXCheckButtonTooltip.cpp.

◆ ~MFXCheckButtonTooltip()

MFXCheckButtonTooltip::~MFXCheckButtonTooltip ( )

destructor (Called automatically)

Definition at line 42 of file MFXCheckButtonTooltip.cpp.

◆ MFXCheckButtonTooltip() [2/2]

MFXCheckButtonTooltip::MFXCheckButtonTooltip ( const MFXCheckButtonTooltip )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ onEnter()

long MFXCheckButtonTooltip::onEnter ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

Definition at line 52 of file MFXCheckButtonTooltip.cpp.

References myStaticToolTip, myToolTipText, and MFXStaticToolTip::showStaticToolTip().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeave()

long MFXCheckButtonTooltip::onLeave ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

called when mouse leaves in MFXCheckButtonTooltip

Definition at line 66 of file MFXCheckButtonTooltip.cpp.

References MFXStaticToolTip::hideStaticToolTip(), and myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMotion()

long MFXCheckButtonTooltip::onMotion ( FXObject *  sender,
FXSelector  sel,
void *  ptr 
)

called when mouse motion in MFXCheckButtonTooltip

Definition at line 75 of file MFXCheckButtonTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::onUpdate().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ setToolTipText()

void MFXCheckButtonTooltip::setToolTipText ( const FXString &  toolTip)

set toolTip

Definition at line 46 of file MFXCheckButtonTooltip.cpp.

References myToolTipText.

Referenced by GNEOptionsDialog::GNEOptionsDialog().

Here is the caller graph for this function:

Field Documentation

◆ myStaticToolTip

MFXStaticToolTip* MFXCheckButtonTooltip::myStaticToolTip = nullptr
protected

FOX needs this.

static tooltip

Definition at line 63 of file MFXCheckButtonTooltip.h.

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

◆ myToolTipText

FXString MFXCheckButtonTooltip::myToolTipText
protected

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

Definition at line 66 of file MFXCheckButtonTooltip.h.

Referenced by onEnter(), and setToolTipText().


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