From 56cdfd3822d2800abdd2f912ab7f76a5764793a7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Oct 2008 13:45:07 +0000 Subject: scrollpane widget, updated chatbox --- src/ui/paint.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/ui/paint.h') 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); } -- cgit v1.2.3