From ac5f0505abef0785e9214357a89c6c5a70b842fa Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 26 Nov 2020 10:26:46 +0100 Subject: [PATCH] Update to latest libopenui --- radio/src/thirdparty/libopenui/src/button.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/button.h b/radio/src/thirdparty/libopenui/src/button.h index 1eb14fc27..aa04227b6 100644 --- a/radio/src/thirdparty/libopenui/src/button.h +++ b/radio/src/thirdparty/libopenui/src/button.h @@ -25,7 +25,8 @@ constexpr WindowFlags BUTTON_BACKGROUND = FORM_FLAGS_LAST << 1u; constexpr WindowFlags BUTTON_CHECKED = FORM_FLAGS_LAST << 2u; constexpr WindowFlags BUTTON_CHECKED_ON_FOCUS = FORM_FLAGS_LAST << 3u; -class Button: public FormField { +class Button: public FormField +{ public: Button(FormGroup * parent, const rect_t & rect, std::function pressHandler = nullptr, WindowFlags windowFlags = 0): FormField(parent, rect, windowFlags), @@ -83,7 +84,8 @@ class Button: public FormField { void onPress(); }; -class TextButton: public Button { +class TextButton: public Button +{ public: TextButton(FormGroup * parent, const rect_t & rect, std::string text, std::function pressHandler = nullptr, WindowFlags windowFlags = BUTTON_BACKGROUND): Button(parent, rect, std::move(pressHandler), windowFlags | OPAQUE), @@ -112,7 +114,8 @@ class TextButton: public Button { std::string text; }; -class IconButton: public Button { +class IconButton: public Button +{ public: IconButton(FormGroup * parent, const rect_t & rect, uint8_t icon, std::function pressHandler, WindowFlags flags = 0): Button(parent, rect, std::move(pressHandler), flags), @@ -132,4 +135,3 @@ class IconButton: public Button { protected: uint8_t icon; }; -