SUMO - Simulation of Urban MObility
MFXCheckableButton Class Reference

#include <MFXCheckableButton.h>

Inheritance diagram for MFXCheckableButton:
Inheritance graph
Collaboration diagram for MFXCheckableButton:
Collaboration graph

Public Member Functions

bool amChecked () const
 
 MFXCheckableButton (bool amChecked, FXComposite *p, const FXString &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)
 
long onPaint (FXObject *, FXSelector, void *)
 
long onUpdate (FXObject *, FXSelector, void *)
 
void setChecked (bool val)
 
 ~MFXCheckableButton ()
 

Protected Member Functions

 MFXCheckableButton ()
 

Private Member Functions

void buildColors ()
 
void setColors ()
 

Private Attributes

bool myAmChecked
 
bool myAmInitialised
 
FXColor myBackColor
 
FXColor myDarkColor
 
FXColor myHiliteColor
 
FXColor myShadowColor
 

Detailed Description

Definition at line 35 of file MFXCheckableButton.h.

Constructor & Destructor Documentation

§ MFXCheckableButton() [1/2]

MFXCheckableButton::MFXCheckableButton ( bool  amChecked,
FXComposite *  p,
const FXString &  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 
)

Definition at line 47 of file MFXCheckableButton.cpp.

§ ~MFXCheckableButton()

MFXCheckableButton::~MFXCheckableButton ( )

Definition at line 59 of file MFXCheckableButton.cpp.

§ MFXCheckableButton() [2/2]

MFXCheckableButton::MFXCheckableButton ( )
inlineprotected

Definition at line 61 of file MFXCheckableButton.h.

Member Function Documentation

§ amChecked()

bool MFXCheckableButton::amChecked ( ) const

§ buildColors()

void MFXCheckableButton::buildColors ( )
private

Definition at line 96 of file MFXCheckableButton.cpp.

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

Referenced by onPaint(), and onUpdate().

§ onPaint()

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

Definition at line 75 of file MFXCheckableButton.cpp.

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

§ onUpdate()

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

Definition at line 85 of file MFXCheckableButton.cpp.

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

§ setChecked()

§ setColors()

void MFXCheckableButton::setColors ( )
private

Definition at line 106 of file MFXCheckableButton.cpp.

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

Referenced by onPaint(), and onUpdate().

Field Documentation

§ myAmChecked

bool MFXCheckableButton::myAmChecked
private

Definition at line 55 of file MFXCheckableButton.h.

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

§ myAmInitialised

bool MFXCheckableButton::myAmInitialised
private

Definition at line 58 of file MFXCheckableButton.h.

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

§ myBackColor

FXColor MFXCheckableButton::myBackColor
private

Definition at line 56 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

§ myDarkColor

FXColor MFXCheckableButton::myDarkColor
private

Definition at line 56 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

§ myHiliteColor

FXColor MFXCheckableButton::myHiliteColor
private

Definition at line 56 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().

§ myShadowColor

FXColor MFXCheckableButton::myShadowColor
private

Definition at line 56 of file MFXCheckableButton.h.

Referenced by buildColors(), and setColors().


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