From 823765175958a75ab05573a06403883d96098864 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 10 Jan 2009 15:34:18 +0000 Subject: minor ui cleanups --- src/ui/widget.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/ui/widget.h') diff --git a/src/ui/widget.h b/src/ui/widget.h index c002c73..acee725 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h @@ -138,24 +138,30 @@ public: /// set input focus void set_focus(); + + /// set the widget geometry + void set_geometry(const float x, const float y, const float w, const float h); + + /// set the widget geometry + void set_geometry(const math::Vector2f &location, const math::Vector2f &size); /// set location of the top-left corner, relative to the parent - void set_location(float const x, float const y); + void set_location(const float x, const float y); /// set location of the top-left corner, relative to the parent void set_location(const math::Vector2f &location); /// set the widgets width and height - void set_size(float const w, float const h); + void set_size(const float w, const float h); /// set the widgets width and height void set_size(const math::Vector2f &size); /// set the widgets width - void set_width(float const w); + void set_width(const float w); /// set the widgets height - void set_height(float const h); + void set_height(const float h); /// set the widgets palette void set_palette(const Palette *palette); -- cgit v1.2.3