mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibGUI+FileManager: Clarify Widget margins name
Even though they are called content_margins, they are actually only ever used to determine where a Widget is supposed to be grabbable. So all methods and members are renamed accordingly.
This commit is contained in:
parent
a261e4d9d5
commit
8249ea792e
7 changed files with 19 additions and 19 deletions
|
@ -137,10 +137,10 @@ void Splitter::mousedown_event(MouseEvent& event)
|
|||
m_resize_origin = event.position();
|
||||
}
|
||||
|
||||
Gfx::IntRect Splitter::rect_between_widgets(GUI::Widget const& first_widget, GUI::Widget const& second_widget, bool honor_content_margins) const
|
||||
Gfx::IntRect Splitter::rect_between_widgets(GUI::Widget const& first_widget, GUI::Widget const& second_widget, bool honor_grabbable_margins) const
|
||||
{
|
||||
auto first_widget_rect = honor_content_margins ? first_widget.content_rect() : first_widget.relative_rect();
|
||||
auto second_widget_rect = honor_content_margins ? second_widget.content_rect() : second_widget.relative_rect();
|
||||
auto first_widget_rect = honor_grabbable_margins ? first_widget.relative_non_grabbable_rect() : first_widget.relative_rect();
|
||||
auto second_widget_rect = honor_grabbable_margins ? second_widget.relative_non_grabbable_rect() : second_widget.relative_rect();
|
||||
|
||||
auto first_edge = first_widget_rect.last_edge_for_orientation(m_orientation);
|
||||
auto second_edge = second_widget_rect.first_edge_for_orientation(m_orientation);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue