1 #include <lib/gui/ebutton.h>
3 eButton::eButton(eWidget *parent): eLabel(parent)
5 /* default to center alignment */
6 m_valign = alignCenter;
7 m_halign = alignCenter;
15 int eButton::event(int event, void *data, void *data2)
21 gPainter &painter = *(gPainter*)data2;
22 ePtr<eWindowStyle> style;
26 eLabel::event(event, data, data2);
27 style->drawFrame(painter, eRect(ePoint(0, 0), size()), eWindowStyle::frameButton);
34 return eLabel::event(event, data, data2);