mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
LibDraw: Move the Orientation enum to its own LibDraw header file.
This commit is contained in:
parent
d48c73b10a
commit
26e252b0f8
2 changed files with 11 additions and 8 deletions
6
Libraries/LibDraw/Orientation.h
Normal file
6
Libraries/LibDraw/Orientation.h
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
enum class Orientation {
|
||||||
|
Horizontal,
|
||||||
|
Vertical
|
||||||
|
};
|
|
@ -5,11 +5,12 @@
|
||||||
#include <AK/HashMap.h>
|
#include <AK/HashMap.h>
|
||||||
#include <LibCore/CElapsedTimer.h>
|
#include <LibCore/CElapsedTimer.h>
|
||||||
#include <LibCore/CObject.h>
|
#include <LibCore/CObject.h>
|
||||||
#include <LibGUI/GEvent.h>
|
|
||||||
#include <LibGUI/GShortcut.h>
|
|
||||||
#include <LibDraw/Color.h>
|
#include <LibDraw/Color.h>
|
||||||
#include <LibDraw/Font.h>
|
#include <LibDraw/Font.h>
|
||||||
|
#include <LibDraw/Orientation.h>
|
||||||
#include <LibDraw/Rect.h>
|
#include <LibDraw/Rect.h>
|
||||||
|
#include <LibGUI/GEvent.h>
|
||||||
|
#include <LibGUI/GShortcut.h>
|
||||||
|
|
||||||
class GraphicsBitmap;
|
class GraphicsBitmap;
|
||||||
class GAction;
|
class GAction;
|
||||||
|
@ -21,10 +22,6 @@ enum class SizePolicy {
|
||||||
Fixed,
|
Fixed,
|
||||||
Fill
|
Fill
|
||||||
};
|
};
|
||||||
enum class Orientation {
|
|
||||||
Horizontal,
|
|
||||||
Vertical
|
|
||||||
};
|
|
||||||
enum class HorizontalDirection {
|
enum class HorizontalDirection {
|
||||||
Left,
|
Left,
|
||||||
Right
|
Right
|
||||||
|
@ -140,8 +137,8 @@ public:
|
||||||
void set_foreground_color(Color color) { m_foreground_color = color; }
|
void set_foreground_color(Color color) { m_foreground_color = color; }
|
||||||
|
|
||||||
// FIXME: Implement these.
|
// FIXME: Implement these.
|
||||||
void set_backcolor(const StringView&) { }
|
void set_backcolor(const StringView&) {}
|
||||||
void set_forecolor(const StringView&) { }
|
void set_forecolor(const StringView&) {}
|
||||||
|
|
||||||
void set_autofill(bool b) { set_fill_with_background_color(b); }
|
void set_autofill(bool b) { set_fill_with_background_color(b); }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue