Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-01-10 15:34:18 +0000
committerStijn Buys <ingar@osirion.org>2009-01-10 15:34:18 +0000
commit823765175958a75ab05573a06403883d96098864 (patch)
treec72d876ab2d33169338e118593501fe95cf72939 /src/ui/widget.h
parent8a64be76cf42b11880aea39f7309b185a8c3b7f5 (diff)
minor ui cleanups
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h14
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);