mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +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
|
@ -263,10 +263,10 @@ public:
|
|||
Gfx::Palette palette() const;
|
||||
void set_palette(const Gfx::Palette&);
|
||||
|
||||
const Margins& content_margins() const { return m_content_margins; }
|
||||
void set_content_margins(const Margins&);
|
||||
const Margins& grabbable_margins() const { return m_grabbable_margins; }
|
||||
void set_grabbable_margins(const Margins&);
|
||||
|
||||
Gfx::IntRect content_rect() const;
|
||||
Gfx::IntRect relative_non_grabbable_rect() const;
|
||||
|
||||
void set_accepts_emoji_input(bool b) { m_accepts_emoji_input = b; }
|
||||
bool accepts_emoji_input() const { return m_accepts_emoji_input; }
|
||||
|
@ -357,7 +357,7 @@ private:
|
|||
|
||||
Gfx::IntSize m_min_size { -1, -1 };
|
||||
Gfx::IntSize m_max_size { -1, -1 };
|
||||
Margins m_content_margins;
|
||||
Margins m_grabbable_margins;
|
||||
|
||||
bool m_fill_with_background_color { false };
|
||||
bool m_visible { true };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue