summaryrefslogtreecommitdiff
path: root/src/guichan/widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/widget.cpp')
-rw-r--r--src/guichan/widget.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/guichan/widget.cpp b/src/guichan/widget.cpp
index 95e026d98..e9e846e76 100644
--- a/src/guichan/widget.cpp
+++ b/src/guichan/widget.cpp
@@ -133,11 +133,6 @@ namespace gcn
mParent = parent;
}
- Widget* Widget::getParent() const
- {
- return mParent;
- }
-
void Widget::setWidth(int width)
{
Rectangle newDimension = mDimension;
@@ -146,11 +141,6 @@ namespace gcn
setDimension(newDimension);
}
- int Widget::getWidth() const
- {
- return mDimension.width;
- }
-
void Widget::setHeight(int height)
{
Rectangle newDimension = mDimension;
@@ -159,11 +149,6 @@ namespace gcn
setDimension(newDimension);
}
- int Widget::getHeight() const
- {
- return mDimension.height;
- }
-
void Widget::setX(int x)
{
Rectangle newDimension = mDimension;
@@ -172,11 +157,6 @@ namespace gcn
setDimension(newDimension);
}
- int Widget::getX() const
- {
- return mDimension.x;
- }
-
void Widget::setY(int y)
{
Rectangle newDimension = mDimension;
@@ -185,17 +165,12 @@ namespace gcn
setDimension(newDimension);
}
- int Widget::getY() const
- {
- return mDimension.y;
- }
-
void Widget::setPosition(int x, int y)
{
Rectangle newDimension = mDimension;
newDimension.x = x;
newDimension.y = y;
-
+
setDimension(newDimension);
}