![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXToggleButton.h>
Inheritance diagram for FXToggleButton:
Public Methods | |
FXToggleButton (FXComposite *p, const FXString &text1, const FXString &text2, FXIcon *icon1=NULL, FXIcon *icon2=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=TOGGLEBUTTON_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) | |
Construct toggle button with two text labels, and two icons, one for each state. | |
virtual void | create () |
Create server-side resources. | |
virtual void | detach () |
Detach server-side resources. | |
virtual FXbool | canFocus () const |
Returns true because a toggle button can receive focus. | |
virtual FXint | getDefaultWidth () |
Get default width. | |
virtual FXint | getDefaultHeight () |
Get default height. | |
void | setAltText (const FXString &text) |
Change alternate text shown when toggled. | |
void | setAltIcon (FXIcon *ic) |
Change alternate icon shown when toggled. | |
FXIcon * | getAltIcon () const |
Return alternate icon. | |
void | setState (FXbool s=TRUE) |
Change toggled state. | |
FXbool | getState () const |
return toggled state | |
void | setAltHelpText (const FXString &text) |
Change alternate help text shown when toggled. | |
void | setAltTipText (const FXString &text) |
Change alternate tip text shown when toggled. | |
void | setToggleStyle (FXuint style) |
Set the toggle button style flags. | |
FXuint | getToggleStyle () const |
Get the toggle button style flags. | |
virtual void | save (FXStream &store) const |
Save toggle button to a stream. | |
virtual void | load (FXStream &store) |
Load toggle button from a stream. | |
virtual | ~FXToggleButton () |
Destructor. | |
Public Attributes | |
FXString | getAltText () const |
Return alternate text. | |
FXString | getAltHelpText () const |
Return alternate help text. | |
FXString | getAltTipText () const |
Return alternate tip text. |