diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-20 16:46:01 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-20 19:32:12 +0200 |
commit | 26e252b0f878e47bad1e6dc2a6df1cf9a6675585 (patch) | |
tree | e91854921277049fe7f5038a0b55de78a7eb8524 | |
parent | d48c73b10a53c12baf55f68a458a0a8d86ecf220 (diff) | |
download | serenity-26e252b0f878e47bad1e6dc2a6df1cf9a6675585.zip |
LibDraw: Move the Orientation enum to its own LibDraw header file.
-rw-r--r-- | Libraries/LibDraw/Orientation.h | 6 | ||||
-rw-r--r-- | Libraries/LibGUI/GWidget.h | 13 |
2 files changed, 11 insertions, 8 deletions
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 <AK/HashMap.h> #include <LibCore/CElapsedTimer.h> #include <LibCore/CObject.h> -#include <LibGUI/GEvent.h> -#include <LibGUI/GShortcut.h> #include <LibDraw/Color.h> #include <LibDraw/Font.h> +#include <LibDraw/Orientation.h> #include <LibDraw/Rect.h> +#include <LibGUI/GEvent.h> +#include <LibGUI/GShortcut.h> 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); } |