diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-11 23:17:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-11 23:17:58 +0300 |
commit | 4dbda55f670866db29a64ca7a79500efbe6f8d00 (patch) | |
tree | ddf806b499dcb4896568278b05defad1f27bcd06 /src/guichan/include | |
parent | fbb1186a319794dba7c23c466c07d6f45f940b8e (diff) | |
download | plus-4dbda55f670866db29a64ca7a79500efbe6f8d00.tar.gz plus-4dbda55f670866db29a64ca7a79500efbe6f8d00.tar.bz2 plus-4dbda55f670866db29a64ca7a79500efbe6f8d00.tar.xz plus-4dbda55f670866db29a64ca7a79500efbe6f8d00.zip |
Replace some getters to direct fileds using.
Diffstat (limited to 'src/guichan/include')
-rw-r--r-- | src/guichan/include/guichan/widget.hpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/guichan/include/guichan/widget.hpp b/src/guichan/include/guichan/widget.hpp index 1b8b6ae54..87d2868c3 100644 --- a/src/guichan/include/guichan/widget.hpp +++ b/src/guichan/include/guichan/widget.hpp @@ -180,7 +180,8 @@ namespace gcn * has no parent. * @since 0.1.0 */ - virtual Widget* getParent() const; + virtual Widget* getParent() const + { return mParent; } /** * Sets the width of the widget. @@ -200,7 +201,8 @@ namespace gcn * setDimension, getDimension * @since 0.1.0 */ - int getWidth() const; + int getWidth() const + { return mDimension.width; } /** * Sets the height of the widget. @@ -220,7 +222,8 @@ namespace gcn * setDimension, getDimension * @since 0.1.0 */ - int getHeight() const; + int getHeight() const + { return mDimension.height; } /** * Sets the size of the widget. @@ -251,7 +254,8 @@ namespace gcn * @see setX, setY, getY, setPosition, setDimension, getDimension * @since 0.1.0 */ - int getX() const; + int getX() const + { return mDimension.x; } /** * Sets the y coordinate of the widget. The coordinate is @@ -271,7 +275,8 @@ namespace gcn * @see setY, setX, getX, setPosition, setDimension, getDimension * @since 0.1.0 */ - int getY() const; + int getY() const + { return mDimension.y; } /** * Sets position of the widget. The position is relative |