Eclipse SUMO - Simulation of Urban MObility
MFXLabelTooltip Class Reference

#include <MFXLabelTooltip.h>

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

Public Member Functions

 MFXLabelTooltip (FXComposite *p, MFXStaticToolTip *staticToolTip, const FXString &text, FXIcon *ic, 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 More...
 
 ~MFXLabelTooltip ()
 destructor (Called automatically) More...
 
FOX callbacks

called when paint

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

Protected Attributes

MFXStaticToolTipmyStaticToolTip = nullptr
 FOX needs this. More...
 

Private Member Functions

 MFXLabelTooltip (const MFXLabelTooltip &)=delete
 Invalidated copy constructor. More...
 
MFXLabelTooltipoperator= (const MFXLabelTooltip &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Definition at line 29 of file MFXLabelTooltip.h.

Constructor & Destructor Documentation

◆ MFXLabelTooltip() [1/2]

MFXLabelTooltip::MFXLabelTooltip ( FXComposite *  p,
MFXStaticToolTip staticToolTip,
const FXString &  text,
FXIcon *  ic,
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 36 of file MFXLabelTooltip.cpp.

◆ ~MFXLabelTooltip()

MFXLabelTooltip::~MFXLabelTooltip ( )

destructor (Called automatically)

Definition at line 45 of file MFXLabelTooltip.cpp.

◆ MFXLabelTooltip() [2/2]

MFXLabelTooltip::MFXLabelTooltip ( const MFXLabelTooltip )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ onEnter()

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

called when mouse enter in MFXLabelTooltip

Definition at line 79 of file MFXLabelTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::showStaticToolTip().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeave()

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

called when mouse leaves in MFXLabelTooltip

Definition at line 87 of file MFXLabelTooltip.cpp.

References MFXStaticToolTip::hideStaticToolTip(), and myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMotion()

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

called when mouse motion in MFXLabelTooltip

Definition at line 95 of file MFXLabelTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::onUpdate().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long MFXLabelTooltip::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)

Definition at line 49 of file MFXLabelTooltip.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

Field Documentation

◆ myStaticToolTip

MFXStaticToolTip* MFXLabelTooltip::myStaticToolTip = nullptr
protected

FOX needs this.

static tooltip

Definition at line 63 of file MFXLabelTooltip.h.

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


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