Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index 2de7a3d..20e4ac4 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -55,7 +55,7 @@ public:
* @see location()
*/
inline float left() const {
- return widget_location.x;
+ return widget_location.x();
}
/// x coordinate of the right of the widget
@@ -64,7 +64,7 @@ public:
* @see size()
*/
inline float right() const {
- return widget_location.x + widget_size.x;
+ return widget_location.x() + widget_size.width();
}
/// y coordinate of the top of the widget
@@ -72,7 +72,7 @@ public:
* @see location()
*/
inline float top() const {
- return widget_location.y;
+ return widget_location.y();
}
/// y coordinate of the bottom of the widget
@@ -81,7 +81,7 @@ public:
* @see size()
*/
inline float bottom() const {
- return widget_location.y + widget_size.y;
+ return widget_location.y() + widget_size.height();
}
/// width of the widget in pixels
@@ -89,7 +89,7 @@ public:
* @see size()
*/
inline float width() const {
- return widget_size.x;
+ return widget_size.width();
}
/// height of the widget in pixels
@@ -97,7 +97,7 @@ public:
* @see size()
*/
inline float height() const {
- return widget_size.y;
+ return widget_size.height();
}
/// widget label