summaryrefslogtreecommitdiff
path: root/Applications/FontEditor/main.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-06 11:56:38 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-06 11:56:38 +0100
commit11580babbfb1b8ae0acab2400f11d905c35642f5 (patch)
tree3b26fcd4bf7afe9ff92203468ba7cd95e192d55f /Applications/FontEditor/main.cpp
parent939a605334a71dd8b7af91cdcbe9047281f7b5b9 (diff)
downloadserenity-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/FontEditor/main.cpp')
-rw-r--r--Applications/FontEditor/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Applications/FontEditor/main.cpp b/Applications/FontEditor/main.cpp
index 94819dd3cb..a6fb097455 100644
--- a/Applications/FontEditor/main.cpp
+++ b/Applications/FontEditor/main.cpp
@@ -47,12 +47,12 @@ int main(int argc, char** argv)
return 1;
}
- RefPtr<Font> edited_font;
+ RefPtr<Gfx::Font> edited_font;
String path;
if (argc == 2) {
path = argv[1];
- edited_font = Font::load_from_file(path);
+ edited_font = Gfx::Font::load_from_file(path);
if (!edited_font) {
fprintf(stderr, "Couldn't load font: %s\n", path.characters());
return 1;
@@ -62,7 +62,7 @@ int main(int argc, char** argv)
if (edited_font)
edited_font = edited_font->clone();
else
- edited_font = Font::default_font().clone();
+ edited_font = Gfx::Font::default_font().clone();
auto window = GUI::Window::construct();
window->set_title("Font Editor");
@@ -71,7 +71,7 @@ int main(int argc, char** argv)
auto font_editor = FontEditorWidget::construct(path, move(edited_font));
window->set_main_widget(font_editor);
window->show();
- window->set_icon(load_png("/res/icons/16x16/app-font-editor.png"));
+ window->set_icon(Gfx::load_png("/res/icons/16x16/app-font-editor.png"));
auto menubar = make<GUI::MenuBar>();
@@ -84,7 +84,7 @@ int main(int argc, char** argv)
auto help_menu = GUI::Menu::construct("Help");
help_menu->add_action(GUI::Action::create("About", [&](const GUI::Action&) {
- GUI::AboutDialog::show("Font Editor", load_png("/res/icons/FontEditor.png"), window);
+ GUI::AboutDialog::show("Font Editor", Gfx::load_png("/res/icons/FontEditor.png"), window);
}));
menubar->add_menu(move(help_menu));