From 26e252b0f878e47bad1e6dc2a6df1cf9a6675585 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 20 Jul 2019 16:46:01 +0200 Subject: LibDraw: Move the Orientation enum to its own LibDraw header file. --- Libraries/LibDraw/Orientation.h | 6 ++++++ Libraries/LibGUI/GWidget.h | 13 +++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 Libraries/LibDraw/Orientation.h diff --git a/Libraries/LibDraw/Orientation.h b/Libraries/LibDraw/Orientation.h new file mode 100644 index 0000000000..5e5d008424 --- /dev/null +++ b/Libraries/LibDraw/Orientation.h @@ -0,0 +1,6 @@ +#pragma once + +enum class Orientation { + Horizontal, + Vertical +}; diff --git a/Libraries/LibGUI/GWidget.h b/Libraries/LibGUI/GWidget.h index 410bbe3653..459dbb8b2e 100644 --- a/Libraries/LibGUI/GWidget.h +++ b/Libraries/LibGUI/GWidget.h @@ -5,11 +5,12 @@ #include #include #include -#include -#include #include #include +#include #include +#include +#include class GraphicsBitmap; class GAction; @@ -21,10 +22,6 @@ enum class SizePolicy { Fixed, Fill }; -enum class Orientation { - Horizontal, - Vertical -}; enum class HorizontalDirection { Left, Right @@ -140,8 +137,8 @@ public: void set_foreground_color(Color color) { m_foreground_color = color; } // FIXME: Implement these. - void set_backcolor(const StringView&) { } - void set_forecolor(const StringView&) { } + void set_backcolor(const StringView&) {} + void set_forecolor(const StringView&) {} void set_autofill(bool b) { set_fill_with_background_color(b); } -- cgit v1.2.3