mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:24:58 +00:00
GMLCompiler: Add enum initializer for opportunistic_resizee property
This patch adds a enum initializer for opportunistic_resizee and makes the method that uses this property public so it's available for GML compiler.
This commit is contained in:
parent
35d4b36201
commit
0be70ed97a
2 changed files with 2 additions and 1 deletions
|
@ -177,6 +177,7 @@ static ErrorOr<Optional<String>> generate_enum_initializer_for(StringView proper
|
|||
{ "frame_style"sv, "Gfx::FrameStyle"sv },
|
||||
{ "text_wrapping"sv, "Gfx::TextWrapping"sv },
|
||||
{ "button_style"sv, "Gfx::ButtonStyle"sv },
|
||||
{ "opportunistic_resizee"sv, "GUI::Splitter::OpportunisticResizee"sv },
|
||||
};
|
||||
|
||||
auto const& enum_type_name = enum_properties.get(property_name);
|
||||
|
|
|
@ -21,6 +21,7 @@ public:
|
|||
};
|
||||
|
||||
virtual ~Splitter() override = default;
|
||||
void set_opportunistic_resizee(OpportunisticResizee resizee) { m_opportunistic_resizee = resizee; }
|
||||
|
||||
protected:
|
||||
explicit Splitter(Gfx::Orientation);
|
||||
|
@ -36,7 +37,6 @@ protected:
|
|||
virtual void custom_layout() override;
|
||||
|
||||
OpportunisticResizee opportunistic_resizee() const { return m_opportunistic_resizee; }
|
||||
void set_opportunistic_resizee(OpportunisticResizee resizee) { m_opportunistic_resizee = resizee; }
|
||||
|
||||
private:
|
||||
void override_cursor(bool do_override);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue