4 #include <lib/gui/elabel.h>
5 #include <lib/gdi/grc.h>
8 * \brief A widget which acts like a button.
10 class eButton
: public eLabel
13 eLabel
* tmpDescr
; // used for LCD with description
16 gColor focusB
, focusF
, normalB
, normalF
;
18 int eventHandler(const eWidgetEvent
&event
);
22 int setProperty(const eString
&prop
, const eString
&val
);
24 * \brief Constructs a button.
26 * \param descr is for use with lcd
28 eButton(eWidget
*parent
, eLabel
* descr
=0, int takefocus
=1, const char *deco
="eButton" );
30 * \brief the "selected" signal.
32 * This signals is emitted when OK is pressed.
34 Signal0
<void> selected
;
35 Signal1
<void, eButton
*> selected_id
;