Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-12 14:55:10 +0000
committerStijn Buys <ingar@osirion.org>2008-10-12 14:55:10 +0000
commitb417df720584c101f3799874a0c836a543a8d0a8 (patch)
treefb7105ed662f13753a6ab8d3efb047bad04f2316 /src/ui/paint.h
parent18383a5fc596bf9546f14d7393ee66c57720b116 (diff)
user interface updates, work-in-progress
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r--src/ui/paint.h12
1 files changed, 8 insertions, 4 deletions
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);