diff options
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); } |