|
vdk 2.4.0
|
This class provides an unified wrapper for almost all kind of GtkButton. More...
#include <vdkcustombutton.h>
This class provides an unified wrapper for almost all kind of GtkButton.
| VDKCustomButton::VDKCustomButton | ( | VDKForm * | owner, |
| const char * | label, | ||
| unsigned int | type = VDK_CBUTTON_UNTOGGLED | VDK_CBUTTON_NORMAL |
||
| ) |
Constructor, makes a labeled button
| owner | |
| label | |
| type |
VDKCustomButton *button = new VDKCustomButton(this,"_A button");
| VDKCustomButton::VDKCustomButton | ( | VDKForm * | owner, |
| const char * | pixfile, | ||
| const char * | label, | ||
| unsigned int | type = VDK_CBUTTON_UNTOGGLED | VDK_CBUTTON_NORMAL, |
||
| GtkPositionType | position = GTK_POS_RIGHT |
||
| ) |
Constructor, makes a pixmapped button.
| pixfile | |
| label | |
| type | |
| position,refers | to label position into button box |
| VDKCustomButton::VDKCustomButton | ( | VDKForm * | owner, |
| const char ** | pixdata, | ||
| const char * | label, | ||
| unsigned int | type = VDK_CBUTTON_UNTOGGLED | VDK_CBUTTON_NORMAL, |
||
| GtkPositionType | position = GTK_POS_RIGHT |
||
| ) |
Constructor, same as above but using pixdata instead a pix file.
| void VDKCustomButton::SetComboMenu | ( | VDKMenu * | menu | ) |
Sets a menu into combo button.
Meaningless if button isn't a combo button
| virtual void VDKCustomButton::SetFont | ( | VDKFont * | f | ) | [inline, virtual] |
Sets object font
Reimplemented from VDKObject.
| virtual void VDKCustomButton::SetForeground | ( | VDKRgb | color, |
| GtkStateType | state = GTK_STATE_NORMAL |
||
| ) | [inline, virtual] |
| VDKReadOnlyValueProp<VDKCustomButton, VDKBox*> VDKCustomButton::ButtonBox |
| VDKReadWriteValueProp<VDKCustomButton, const char*> VDKCustomButton::Caption |
Permits to change button caption
| VDKReadWriteValueProp<VDKCustomButton, bool> VDKCustomButton::CaptionWrap |
Permits to change button caption wrap
| VDKReadOnlyValueProp<VDKCustomButton, VDKLabel*> VDKCustomButton::Label |
| VDKReadOnlyValueProp<VDKCustomButton, VDKImage*> VDKCustomButton::Pixmap |
<read-only> Permits to access embedded VDKImage
1.7.6.1