diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-19 13:45:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-19 13:45:07 +0000 |
commit | 56cdfd3822d2800abdd2f912ab7f76a5764793a7 (patch) | |
tree | 2656c7ef694117e0554ae4a47bb09629c78ed8af /src/ui/paint.h | |
parent | e6f1fad441a7737549f463ebac1c9de062b5173d (diff) |
scrollpane widget, updated chatbox
Diffstat (limited to 'src/ui/paint.h')
-rw-r--r-- | src/ui/paint.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/ui/paint.h b/src/ui/paint.h index c90f1b5..95f1c62 100644 --- a/src/ui/paint.h +++ b/src/ui/paint.h @@ -25,20 +25,22 @@ void color(math::Color const & color); void color_code(const char c); /// draw a border -void border(math::Vector2f const &location, math::Vector2f const &size); +void border(const math::Vector2f &location, const math::Vector2f &size); /// draw a rectangle -void rectangle(math::Vector2f const &location, math::Vector2f const &size); +void rectangle(const math::Vector2f &location, const math::Vector2f &size); /// draw a rectangular bitmap -void bitmap(math::Vector2f const &location, math::Vector2f const &size, std::string const &texture); +void bitmap(const math::Vector2f &location, const math::Vector2f &size, std::string const &texture); -/// draw one line of text from a string -void text(math::Vector2f const &location, math::Vector2f const &size, Font const *font, - std::string const &text, unsigned int align = AlignCenter); +/// draw aligned text +void label(const math::Vector2f &location, const math::Vector2f &size, const Font *font, const std::string &text, unsigned int align = AlignCenter); -/// draw unaligned text from a stringstream -void text(math::Vector2f const &location, Font const *font, std::stringstream & textstream); +/// draw unaligned text +void text(const math::Vector2f &location, const math::Vector2f &size, const Font *font, const std::string &text); + +/// draw unaligned text +void text(const math::Vector2f &location, const math::Vector2f &size, const Font *font, std::stringstream & textstream); } |