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

#include <MFXCheckableButton.h>

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

Public Member Functions

bool amChecked () const
 check if this MFXCheckableButton is checked
 MFXCheckableButton (bool amChecked, 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
void setChecked (bool val, const bool inform=false)
 check or uncheck this MFXCheckableButton
 ~MFXCheckableButton ()
 destructor (Called automatically)
FOX callbacks

called when this MFXCheckableButton is painted

long onPaint (FXObject *, FXSelector, void *)
long onUpdate (FXObject *, FXSelector, void *)
 called when this MFXCheckableButton is updated
long onEnter (FXObject *, FXSelector, void *)
 called when mouse enter in MFXCheckableButton
long onLeave (FXObject *, FXSelector, void *)
 called when mouse leaves in MFXCheckableButton
long onMotion (FXObject *, FXSelector, void *)
 called when mouse motion in MFXCheckableButton

Protected Member Functions

void buildColors ()
 build color of this MFXCheckableButton
void setColors ()
 set colors of this MFXCheckableButton

Protected Attributes

bool myAmChecked
 FOX need this.
bool myAmInitialised
 check if this MFXCheckableButton is initialised
FXColor myBackColor
 colors of this MFXCheckableButton
FXColor myDarkColor
FXColor myHiliteColor
FXColor myShadowColor
MFXStaticToolTipmyStaticToolTip = nullptr
 static tool tip

Private Member Functions

 MFXCheckableButton (const MFXCheckableButton &)=delete
 Invalidated copy constructor.
MFXCheckableButtonoperator= (const MFXCheckableButton &)=delete
 Invalidated assignment operator.

Detailed Description

Definition at line 37 of file MFXCheckableButton.h.

Constructor & Destructor Documentation

◆ MFXCheckableButton() [1/2]

MFXCheckableButton::MFXCheckableButton ( bool amChecked,
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 (Very similar to the FXButton constructor)

Definition at line 43 of file MFXCheckableButton.cpp.

References amChecked(), MFXCheckableButton(), myAmChecked, myAmInitialised, and myStaticToolTip.

Referenced by MFXCheckableButton(), MFXCheckableButton(), and operator=().

Here is the caller graph for this function:

◆ ~MFXCheckableButton()

MFXCheckableButton::~MFXCheckableButton ( )

destructor (Called automatically)

Definition at line 54 of file MFXCheckableButton.cpp.

◆ MFXCheckableButton() [2/2]

MFXCheckableButton::MFXCheckableButton ( const MFXCheckableButton & )
privatedelete

Invalidated copy constructor.

References MFXCheckableButton().

Member Function Documentation

◆ amChecked()

bool MFXCheckableButton::amChecked ( ) const

check if this MFXCheckableButton is checked

Definition at line 58 of file MFXCheckableButton.cpp.

References myAmChecked.

Referenced by MFXCheckableButton(), and GUISUMOViewParent::onCmdMakeSnapshot().

Here is the caller graph for this function:

◆ buildColors()

void MFXCheckableButton::buildColors ( )
protected

build color of this MFXCheckableButton

Definition at line 121 of file MFXCheckableButton.cpp.

References myAmInitialised, myBackColor, myDarkColor, myHiliteColor, and myShadowColor.

Referenced by onPaint(), and onUpdate().

Here is the caller graph for this function:

◆ onEnter()

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

called when mouse enter in MFXCheckableButton

Definition at line 97 of file MFXCheckableButton.cpp.

References myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onLeave()

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

called when mouse leaves in MFXCheckableButton

Definition at line 105 of file MFXCheckableButton.cpp.

References myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onMotion()

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

called when mouse motion in MFXCheckableButton

Definition at line 113 of file MFXCheckableButton.cpp.

References myStaticToolTip.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

long MFXCheckableButton::onPaint ( FXObject * sender,
FXSelector sel,
void * ptr )

Definition at line 77 of file MFXCheckableButton.cpp.

References buildColors(), myAmInitialised, and setColors().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdate()

long MFXCheckableButton::onUpdate ( FXObject * sender,
FXSelector sel,
void * ptr )

called when this MFXCheckableButton is updated

Definition at line 87 of file MFXCheckableButton.cpp.

References buildColors(), myAmInitialised, and setColors().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

References MFXCheckableButton().

◆ setChecked()

void MFXCheckableButton::setChecked ( bool val,
const bool inform = false )

check or uncheck this MFXCheckableButton

Definition at line 64 of file MFXCheckableButton.cpp.

References myAmChecked.

Referenced by GUISUMOViewParent::onCmdMakeSnapshot().

Here is the caller graph for this function:

◆ setColors()

void MFXCheckableButton::setColors ( )
protected

set colors of this MFXCheckableButton

Definition at line 131 of file MFXCheckableButton.cpp.

References myAmChecked, myBackColor, myDarkColor, myHiliteColor, and myShadowColor.

Referenced by onPaint(), and onUpdate().

Here is the caller graph for this function:

Field Documentation

◆ myAmChecked

bool MFXCheckableButton::myAmChecked
protected

FOX need this.

flag to indicate if this MFXCheckableButton is checked

Definition at line 81 of file MFXCheckableButton.h.

Referenced by amChecked(), MFXCheckableButton(), setChecked(), and setColors().

◆ myAmInitialised

bool MFXCheckableButton::myAmInitialised
protected

check if this MFXCheckableButton is initialised

Definition at line 90 of file MFXCheckableButton.h.

Referenced by buildColors(), MFXCheckableButton(), onPaint(), and onUpdate().

◆ myBackColor

FXColor MFXCheckableButton::myBackColor
protected

colors of this MFXCheckableButton

Definition at line 84 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myDarkColor

FXColor MFXCheckableButton::myDarkColor
protected

Definition at line 85 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myHiliteColor

FXColor MFXCheckableButton::myHiliteColor
protected

Definition at line 86 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myShadowColor

FXColor MFXCheckableButton::myShadowColor
protected

Definition at line 87 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

◆ myStaticToolTip

MFXStaticToolTip* MFXCheckableButton::myStaticToolTip = nullptr
protected

static tool tip

Definition at line 93 of file MFXCheckableButton.h.

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


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