aboutsummaryrefslogtreecommitdiff
path: root/src/ArrowButton.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ArrowButton.hh')
-rw-r--r--src/ArrowButton.hh13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/ArrowButton.hh b/src/ArrowButton.hh
index 024ca05..2ae4b87 100644
--- a/src/ArrowButton.hh
+++ b/src/ArrowButton.hh
@@ -29,18 +29,11 @@
29/// Displays a arrow on a button 29/// Displays a arrow on a button
30class ArrowButton: public FbTk::Button { 30class ArrowButton: public FbTk::Button {
31public: 31public:
32 /// type of arrow that should be drawn
33 enum Type {
34 LEFT,
35 RIGHT,
36 UP,
37 DOWN
38 };
39 32
40 ArrowButton(ArrowButton::Type arrow_type, const FbTk::FbWindow &parent, 33 ArrowButton(FbTk::FbDrawable::TriangleType arrow_type, const FbTk::FbWindow &parent,
41 int x, int y, 34 int x, int y,
42 unsigned int width, unsigned int height); 35 unsigned int width, unsigned int height);
43 ArrowButton(ArrowButton::Type arrow_type, int screen_num, 36 ArrowButton(FbTk::FbDrawable::TriangleType arrow_type, int screen_num,
44 int x, int y, 37 int x, int y,
45 unsigned int width, unsigned int height); 38 unsigned int width, unsigned int height);
46 void clear(); 39 void clear();
@@ -53,7 +46,7 @@ public:
53 void updateTheme(const FbTk::Theme &theme); 46 void updateTheme(const FbTk::Theme &theme);
54private: 47private:
55 void drawArrow(); 48 void drawArrow();
56 Type m_arrow_type; 49 FbTk::FbDrawable::TriangleType m_arrow_type;
57 FbTk::EventHandler *m_mouse_handler; 50 FbTk::EventHandler *m_mouse_handler;
58 int m_arrowscale; 51 int m_arrowscale;
59}; 52};