#include <ubuttons.hpp>
Inheritance diagram for ubit::UButton:

Public Member Functions | |
| UButton (const UArgs &=UArgs::none) | |
| creates a button. | |
Static Public Member Functions | |
| static UStyle * | createStyle () |
| < important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!). | |
Default Properties:
Tool Tips:
Callback functions and methods:
Callback conditions:
Implicit callbacks for openening Menus and Dialogs:
See also:
Exemple:
void helpCB(const char* s) {...} // non member function
struct Demo {
void saveFile() {...} // member function (instance method)
....
};
Demo* d = new Demo;
UBox& b = ubutton(UPix::diskette + " Save..."
+ utip("Saves the current file")
+ UOn::enter / ucall("Saves the file", helpCB)
+ UOn::action / ucall(d, &Demo::saveFile)
);
See class UCall for further explanations and other examples.
| UStyle * ubit::UButton::createStyle | ( | ) | [static] |
< important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).
this macro defines the UClass that corresponds to this class and:
Reimplemented from ubit::UBox.
Reimplemented in ubit::UTabbutton, ubit::UFlatbutton, ubit::ULinkbutton, ubit::URadiobutton, and ubit::UCheckbox.
1.4.7