From 1f41de14a04240dfd993b030306ac251d962a843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 1 Apr 2017 19:01:25 +0200 Subject: Fix a lot of style issues in the code for the new GUI. --- plugingui/frame.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'plugingui/frame.h') 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}; -- cgit v1.2.3