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/paint.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/ui/paint.h') diff --git a/src/ui/paint.h b/src/ui/paint.h index 3128481..367b001 100644 --- a/src/ui/paint.h +++ b/src/ui/paint.h @@ -9,7 +9,8 @@ #include "ui/widget.h" -namespace ui { +namespace ui +{ /// low-level widget paint functions namespace paint { @@ -20,6 +21,9 @@ void color(float r=0.0f, float g=0.0f, float b=0.0f, float a=1.0f); /// set paint color void color(math::Color const & color); +/// set paint color +void color_code(const char *c); + /// draw a border void border(math::Vector2f const &location, math::Vector2f const &size); @@ -30,9 +34,9 @@ void rectangle(math::Vector2f const &location, math::Vector2f const &size); void bitmap(math::Vector2f const &location, math::Vector2f const &size, std::string const &texture); /// draw text -void text(math::Vector2f const &location, math::Vector2f const &size, Font const *font, std::string const &text, - unsigned int align = AlignCenter); - +void text(math::Vector2f const &location, math::Vector2f const &size, Font const *font, + std::string const &text, unsigned int align = AlignCenter); + /// draw textstream void text(math::Vector2f const &location, Font const *font, std::stringstream & textstream); -- cgit v1.2.3