mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 15:25:08 +00:00
LibDraw: Put all classes in the Gfx namespace
I started adding things to a Draw namespace, but it somehow felt really wrong seeing Draw::Rect and Draw::Bitmap, etc. So instead, let's rename the library to LibGfx. :^)
This commit is contained in:
parent
939a605334
commit
11580babbf
269 changed files with 1513 additions and 1315 deletions
|
@ -39,13 +39,13 @@ public:
|
|||
int frame_thickness() const { return m_thickness; }
|
||||
void set_frame_thickness(int thickness) { m_thickness = thickness; }
|
||||
|
||||
FrameShadow frame_shadow() const { return m_shadow; }
|
||||
void set_frame_shadow(FrameShadow shadow) { m_shadow = shadow; }
|
||||
Gfx::FrameShadow frame_shadow() const { return m_shadow; }
|
||||
void set_frame_shadow(Gfx::FrameShadow shadow) { m_shadow = shadow; }
|
||||
|
||||
FrameShape frame_shape() const { return m_shape; }
|
||||
void set_frame_shape(FrameShape shape) { m_shape = shape; }
|
||||
Gfx::FrameShape frame_shape() const { return m_shape; }
|
||||
void set_frame_shape(Gfx::FrameShape shape) { m_shape = shape; }
|
||||
|
||||
Rect frame_inner_rect_for_size(const Size& size) const { return { m_thickness, m_thickness, size.width() - m_thickness * 2, size.height() - m_thickness * 2 }; }
|
||||
Rect frame_inner_rect_for_size(const Gfx::Size& size) const { return { m_thickness, m_thickness, size.width() - m_thickness * 2, size.height() - m_thickness * 2 }; }
|
||||
Rect frame_inner_rect() const { return frame_inner_rect_for_size(size()); }
|
||||
|
||||
protected:
|
||||
|
@ -54,8 +54,8 @@ protected:
|
|||
|
||||
private:
|
||||
int m_thickness { 0 };
|
||||
FrameShadow m_shadow { FrameShadow::Plain };
|
||||
FrameShape m_shape { FrameShape::NoFrame };
|
||||
Gfx::FrameShadow m_shadow { Gfx::FrameShadow::Plain };
|
||||
Gfx::FrameShape m_shape { Gfx::FrameShape::NoFrame };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue