mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 10:35:07 +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
|
@ -70,8 +70,8 @@ public:
|
|||
bool is_line_wrapping_enabled() const { return m_line_wrapping_enabled; }
|
||||
void set_line_wrapping_enabled(bool);
|
||||
|
||||
TextAlignment text_alignment() const { return m_text_alignment; }
|
||||
void set_text_alignment(TextAlignment);
|
||||
Gfx::TextAlignment text_alignment() const { return m_text_alignment; }
|
||||
void set_text_alignment(Gfx::TextAlignment);
|
||||
|
||||
Type type() const { return m_type; }
|
||||
bool is_single_line() const { return m_type == SingleLine; }
|
||||
|
@ -154,7 +154,7 @@ protected:
|
|||
virtual void resize_event(ResizeEvent&) override;
|
||||
virtual void cursor_did_change() {}
|
||||
|
||||
TextPosition text_position_at(const Point&) const;
|
||||
TextPosition text_position_at(const Gfx::Point&) const;
|
||||
|
||||
private:
|
||||
friend class TextDocumentLine;
|
||||
|
@ -214,7 +214,7 @@ private:
|
|||
Type m_type { MultiLine };
|
||||
|
||||
TextPosition m_cursor;
|
||||
TextAlignment m_text_alignment { TextAlignment::CenterLeft };
|
||||
Gfx::TextAlignment m_text_alignment { Gfx::TextAlignment::CenterLeft };
|
||||
bool m_cursor_state { true };
|
||||
bool m_in_drag_select { false };
|
||||
bool m_ruler_visible { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue