diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 11:56:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 11:56:38 +0100 |
commit | 11580babbfb1b8ae0acab2400f11d905c35642f5 (patch) | |
tree | 3b26fcd4bf7afe9ff92203468ba7cd95e192d55f /Applications/HexEditor/HexEditor.cpp | |
parent | 939a605334a71dd8b7af91cdcbe9047281f7b5b9 (diff) | |
download | serenity-11580babbfb1b8ae0acab2400f11d905c35642f5.zip |
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. :^)
Diffstat (limited to 'Applications/HexEditor/HexEditor.cpp')
-rw-r--r-- | Applications/HexEditor/HexEditor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Applications/HexEditor/HexEditor.cpp b/Applications/HexEditor/HexEditor.cpp index a965009484..310187e9fd 100644 --- a/Applications/HexEditor/HexEditor.cpp +++ b/Applications/HexEditor/HexEditor.cpp @@ -44,8 +44,8 @@ HexEditor::HexEditor(GUI::Widget* parent) : ScrollableWidget(parent) { - set_frame_shape(FrameShape::Container); - set_frame_shadow(FrameShadow::Sunken); + set_frame_shape(Gfx::FrameShape::Container); + set_frame_shadow(Gfx::FrameShadow::Sunken); set_frame_thickness(2); set_scrollbars_enabled(true); set_font(GFontDatabase::the().get_by_name("Csilla Thin")); @@ -544,7 +544,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event) } auto line = String::format("%02X", m_buffer[byte_position]); - painter.draw_text(hex_display_rect, line, TextAlignment::TopLeft, text_color); + painter.draw_text(hex_display_rect, line, Gfx::TextAlignment::TopLeft, text_color); Rect text_display_rect { frame_thickness() + offset_margin_width() + (bytes_per_row() * (character_width() * 3)) + (j * character_width()) + 20, @@ -559,7 +559,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event) painter.fill_rect(text_display_rect, Color::from_rgb(0xCCCCCC)); } - painter.draw_text(text_display_rect, String::format("%c", isprint(m_buffer[byte_position]) ? m_buffer[byte_position] : '.'), TextAlignment::TopLeft, text_color); + painter.draw_text(text_display_rect, String::format("%c", isprint(m_buffer[byte_position]) ? m_buffer[byte_position] : '.'), Gfx::TextAlignment::TopLeft, text_color); } } } |