LibGUI+LibCore: Remove the GUI::SizePolicy enum

This commit is contained in:
Andreas Kling 2020-12-30 01:37:48 +01:00
parent 7dc5a3ead8
commit 0f3b0b65ae
Notes: sideshowbarker 2024-07-19 00:25:27 +09:00
2 changed files with 0 additions and 21 deletions

View file

@ -300,12 +300,6 @@ const LogStream& operator<<(const LogStream&, const Object&);
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) \
REGISTER_ENUM_PROPERTY( \
property_name, getter, setter, Gfx::TextAlignment, \

View file

@ -45,21 +45,6 @@
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 {
Left,
Right