mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibGUI+LibCore: Remove the GUI::SizePolicy enum
This commit is contained in:
@@ -300,12 +300,6 @@ const LogStream& operator<<(const LogStream&, const Object&);
|
|||||||
return false; \
|
return false; \
|
||||||
})
|
})
|
||||||
|
|
||||||
#define REGISTER_SIZE_POLICY_PROPERTY(property_name, getter, setter) \
|
|
||||||
REGISTER_ENUM_PROPERTY( \
|
|
||||||
property_name, getter, setter, GUI::SizePolicy, \
|
|
||||||
{ GUI::SizePolicy::Fill, "Fill" }, \
|
|
||||||
{ GUI::SizePolicy::Fixed, "Fixed" })
|
|
||||||
|
|
||||||
#define REGISTER_TEXT_ALIGNMENT_PROPERTY(property_name, getter, setter) \
|
#define REGISTER_TEXT_ALIGNMENT_PROPERTY(property_name, getter, setter) \
|
||||||
REGISTER_ENUM_PROPERTY( \
|
REGISTER_ENUM_PROPERTY( \
|
||||||
property_name, getter, setter, Gfx::TextAlignment, \
|
property_name, getter, setter, Gfx::TextAlignment, \
|
||||||
|
|||||||
@@ -45,21 +45,6 @@
|
|||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
enum class SizePolicy {
|
|
||||||
Fixed,
|
|
||||||
Fill
|
|
||||||
};
|
|
||||||
inline const char* to_string(SizePolicy policy)
|
|
||||||
{
|
|
||||||
switch (policy) {
|
|
||||||
case SizePolicy::Fixed:
|
|
||||||
return "SizePolicy::Fixed";
|
|
||||||
case SizePolicy::Fill:
|
|
||||||
return "SizePolicy::Fill";
|
|
||||||
}
|
|
||||||
return "SizePolicy::(Invalid)";
|
|
||||||
}
|
|
||||||
|
|
||||||
enum class HorizontalDirection {
|
enum class HorizontalDirection {
|
||||||
Left,
|
Left,
|
||||||
Right
|
Right
|
||||||
|
|||||||
Reference in New Issue
Block a user