diff options
author | Stijn Buys <ingar@osirion.org> | 2009-01-10 15:34:18 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-01-10 15:34:18 +0000 |
commit | 823765175958a75ab05573a06403883d96098864 (patch) | |
tree | c72d876ab2d33169338e118593501fe95cf72939 /src/ui/widget.h | |
parent | 8a64be76cf42b11880aea39f7309b185a8c3b7f5 (diff) |
minor ui cleanups
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 14 |
1 files changed, 10 insertions, 4 deletions
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); |