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

#include <MFXToggleButtonTooltip.h>

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

Public Member Functions

 MFXToggleButtonTooltip (FXComposite *p, MFXStaticToolTip *staticToolTip, const std::string &text1, const std::string &text2, FXIcon *ic1, FXIcon *ic2, 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
 
 ~MFXToggleButtonTooltip ()
 destructor (Called automatically)
 
FOX callbacks

called when mouse enter in MFXToggleButtonTooltip

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

Protected Attributes

MFXStaticToolTipmyStaticToolTip = nullptr
 FOX needs this.
 

Private Member Functions

 MFXToggleButtonTooltip (const MFXToggleButtonTooltip &)=delete
 Invalidated copy constructor.
 
MFXToggleButtonTooltipoperator= (const MFXToggleButtonTooltip &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 31 of file MFXToggleButtonTooltip.h.

Constructor & Destructor Documentation

◆ MFXToggleButtonTooltip() [1/2]

MFXToggleButtonTooltip::MFXToggleButtonTooltip ( FXComposite *  p,
MFXStaticToolTip staticToolTip,
const std::string &  text1,
const std::string &  text2,
FXIcon *  ic1,
FXIcon *  ic2,
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 FXToggleButton constructor)

Definition at line 35 of file MFXToggleButtonTooltip.cpp.

◆ ~MFXToggleButtonTooltip()

MFXToggleButtonTooltip::~MFXToggleButtonTooltip ( )

destructor (Called automatically)

Definition at line 43 of file MFXToggleButtonTooltip.cpp.

◆ MFXToggleButtonTooltip() [2/2]

MFXToggleButtonTooltip::MFXToggleButtonTooltip ( const MFXToggleButtonTooltip )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ onEnter()

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

Definition at line 47 of file MFXToggleButtonTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::showStaticToolTip().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeave()

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

called when mouse leaves in MFXToggleButtonTooltip

Definition at line 55 of file MFXToggleButtonTooltip.cpp.

References MFXStaticToolTip::hideStaticToolTip(), and myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMotion()

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

called when mouse motion in MFXToggleButtonTooltip

Definition at line 63 of file MFXToggleButtonTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::onUpdate().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

Field Documentation

◆ myStaticToolTip

MFXStaticToolTip* MFXToggleButtonTooltip::myStaticToolTip = nullptr
protected

FOX needs this.

static tooltip

Definition at line 63 of file MFXToggleButtonTooltip.h.

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


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