summaryrefslogtreecommitdiff
path: root/plugingui/frame.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-01 19:01:25 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-01 19:01:25 +0200
commit1f41de14a04240dfd993b030306ac251d962a843 (patch)
tree08d5ef8b74793909a15cb8f3c0b7732819a41f8a /plugingui/frame.h
parent4739f0bed6e6332fcf2c6ed2b04c4ae161c41060 (diff)
Fix a lot of style issues in the code for the new GUI.
Diffstat (limited to 'plugingui/frame.h')
-rw-r--r--plugingui/frame.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/plugingui/frame.h b/plugingui/frame.h
index c891b59..e8c8778 100644
--- a/plugingui/frame.h
+++ b/plugingui/frame.h
@@ -26,13 +26,15 @@
*/
#pragma once
-#include "widget.h"
#include "font.h"
#include "powerbutton.h"
+#include "widget.h"
-namespace GUI {
+namespace GUI
+{
-class FrameWidget : public Widget {
+class FrameWidget : public Widget
+{
public:
FrameWidget(Widget* parent, bool has_switch = false);
virtual ~FrameWidget() = default;
@@ -42,6 +44,7 @@ public:
virtual bool catchMouse() override { return false; }
bool isSwitchedOn() { return is_switched_on; }
+
void setTitle(std::string const& title);
void setContent(Widget* content);
@@ -73,14 +76,14 @@ private:
std::size_t bar_height;
GUI::Colour grey_box_colour{0.7};
GUI::Colour background_colour{0.85, 0.8};
-
+
//
// content
//
// content frame
GUI::Colour frame_colour{0};
-
+
// content box
Widget* content{nullptr};
std::size_t content_margin{5};