update python
[enigma2.git] / lib / gui / ebutton.cpp
1 #include <lib/gui/ebutton.h>
2
3 eButton::eButton(eWidget *parent): eLabel(parent)
4 {
5 }
6
7 void eButton::push()
8 {
9         selected();
10 }
11
12 int eButton::event(int event, void *data, void *data2)
13 {
14         switch (event)
15         {
16         case evtPaint:
17         {
18                 gPainter &painter = *(gPainter*)data2;
19                 ePtr<eWindowStyle> style;
20                 
21                 getStyle(style);
22                 
23                 eLabel::event(event, data, data2);
24                 style->drawButtonFrame(painter, eRect(ePoint(0, 0), size()));
25                 
26                 return 0;
27         }
28         default:
29                 break;
30         }
31         return eLabel::event(event, data, data2);
32 }