diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-10 16:41:38 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-10 16:41:38 +0000 |
commit | 02fcd22d8cde355aa898a8c6bb4773d9434b8e9a (patch) | |
tree | 9397f1f5b61a0978acadc4c15fd330ee7138c59b /src/ui/paint.h | |
parent | 4331f5c17901f46693dcb5c2df96276f6851be25 (diff) |
adds KeyPress, DevInfo and Stats widgets
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r-- | src/ui/paint.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/paint.h b/src/ui/paint.h index b75290d..3128481 100644 --- a/src/ui/paint.h +++ b/src/ui/paint.h @@ -29,8 +29,12 @@ void rectangle(math::Vector2f const &location, math::Vector2f const &size); /// draw a rectangular bitmap void bitmap(math::Vector2f const &location, math::Vector2f const &size, std::string const &texture); -/// draw one line of centered text -void text_centered(math::Vector2f const &location, math::Vector2f const &size, std::string const &text, Font const *font); +/// draw text +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); } |