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

#include <MFXButtonTooltip.h>

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

Public Member Functions

 MFXButtonTooltip (FXComposite *p, MFXStaticToolTip *staticToolTip, const std::string &text, FXIcon *ic=NULL, 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
 
 ~MFXButtonTooltip ()
 destructor (Called automatically)
 
FOX callbacks

called when mouse enter in MFXButtonTooltip

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

Protected Attributes

MFXStaticToolTipmyStaticToolTip = nullptr
 FOX needs this.
 

Private Member Functions

 MFXButtonTooltip (const MFXButtonTooltip &)=delete
 Invalidated copy constructor.
 
MFXButtonTooltipoperator= (const MFXButtonTooltip &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 31 of file MFXButtonTooltip.h.

Constructor & Destructor Documentation

◆ MFXButtonTooltip() [1/2]

MFXButtonTooltip::MFXButtonTooltip ( FXComposite *  p,
MFXStaticToolTip staticToolTip,
const std::string &  text,
FXIcon *  ic = NULL,
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 FXButton constructor)

Definition at line 35 of file MFXButtonTooltip.cpp.

◆ ~MFXButtonTooltip()

MFXButtonTooltip::~MFXButtonTooltip ( )

destructor (Called automatically)

Definition at line 45 of file MFXButtonTooltip.cpp.

◆ MFXButtonTooltip() [2/2]

MFXButtonTooltip::MFXButtonTooltip ( const MFXButtonTooltip )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ onEnter()

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

Definition at line 49 of file MFXButtonTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::showStaticToolTip().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeave()

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

called when mouse leaves in MFXButtonTooltip

Definition at line 57 of file MFXButtonTooltip.cpp.

References MFXStaticToolTip::hideStaticToolTip(), and myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMotion()

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

called when mouse motion in MFXButtonTooltip

Definition at line 65 of file MFXButtonTooltip.cpp.

References myStaticToolTip, and MFXStaticToolTip::onUpdate().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

Field Documentation

◆ myStaticToolTip

MFXStaticToolTip* MFXButtonTooltip::myStaticToolTip = nullptr
protected

FOX needs this.

static tooltip

Definition at line 63 of file MFXButtonTooltip.h.

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


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