From b417df720584c101f3799874a0c836a543a8d0a8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 12 Oct 2008 14:55:10 +0000 Subject: user interface updates, work-in-progress --- src/ui/font.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/ui/font.cc') diff --git a/src/ui/font.cc b/src/ui/font.cc index 26d4155..9d721fd 100644 --- a/src/ui/font.cc +++ b/src/ui/font.cc @@ -6,7 +6,8 @@ #include "ui/font.h" -namespace ui { +namespace ui +{ Font::Font(const char *name, const float width, const float height) { @@ -23,17 +24,17 @@ void Font::set_size(const float width, const float height) font_size.assign(width, height); } -void Font::set_size(math::Vector2f const &size) +void Font::set_size(const math::Vector2f &size) { font_size.assign(size); } -void Font::set_width(float width) +void Font::set_width(const float width) { font_size.x = width; } -void Font::set_height(float height) +void Font::set_height(const float height) { font_size.y = height; } @@ -46,12 +47,10 @@ void Font::set_name(const char *name) font_name.clear(); } -void Font::set_name(std::string const & name) +void Font::set_name(const std::string & name) { font_name.assign(name); } } - - -- cgit v1.2.3