mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-17 06:35:23 +09:00
Author: https://github.com/tetektoza Commit: https://github.com/SerenityOS/serenity/commit/0be70ed97a Pull-request: https://github.com/SerenityOS/serenity/pull/21271 Reviewed-by: https://github.com/timschumi ✅
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…
Reference in a new issue