ubit::UButton Class Reference

Button widget. More...

#include <ubuttons.hpp>

Inheritance diagram for ubit::UButton:

ubit::UBox ubit::UGroup ubit::UControl ubit::UBrick ubit::UObject ubit::UCheckbox ubit::UFlatbutton ubit::ULinkbutton ubit::URadiobutton ubit::UTabbutton List of all members.

Public Member Functions

 UButton (const UArgs &=UArgs::none)
 creates a button.

Static Public Member Functions

static UStylecreateStyle ()
 < important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).

Detailed Description

Button widget.

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Mon Jan 29 00:20:45 2007 for Ubit by  doxygen 1.4.7