summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index 05d16a2..2370f29 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -29,6 +29,7 @@
#include "painter.h"
#include <stdio.h>
+#include <hugin.hpp>
GUI::Button::Button(Widget *parent)
: GUI::Widget(parent)
@@ -110,6 +111,21 @@ void GUI::Button::setText(std::string text)
repaintEvent(NULL);
}
+void GUI::Button::mouseLeaveEvent()
+{
+ DEBUG(button, "Leave\n");
+ if(state == down) {
+ state = up;
+ repaintEvent(NULL);
+ }
+}
+
+void GUI::Button::mouseEnterEvent()
+{
+ DEBUG(button, "Enter\n");
+}
+
+
#ifdef TEST_BUTTON
//Additional dependency files
//deps: