From d763e294f44eb38b94bf7e2055b77a982b72b7c0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Aug 2009 17:34:00 +0000 Subject: more constness --- src/ui/widget.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ui/widget.h') 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 -- cgit v1.2.3