|
|
@@ -86,14 +86,6 @@ public: |
|
|
|
return h(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Get size. |
|
|
|
*/ |
|
|
|
Size<int> getSize() const |
|
|
|
{ |
|
|
|
return Size<int>(w(), h()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Set width. |
|
|
|
*/ |
|
|
@@ -118,14 +110,6 @@ public: |
|
|
|
resize(x(), y(), width, height); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Set size. |
|
|
|
*/ |
|
|
|
void setSize(const Size<int>& size) |
|
|
|
{ |
|
|
|
resize(x(), y(), size.getWidth(), size.getHeight()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Get absolute X. |
|
|
|
*/ |
|
|
@@ -142,14 +126,6 @@ public: |
|
|
|
return y(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Get absolute position. |
|
|
|
*/ |
|
|
|
Point<int> getAbsolutePos() const |
|
|
|
{ |
|
|
|
return Point<int>(x(), y()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Set absolute X. |
|
|
|
*/ |
|
|
@@ -174,14 +150,6 @@ public: |
|
|
|
resize(x, y, w(), h()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Set absolute position. |
|
|
|
*/ |
|
|
|
void setAbsolutePos(const Point<int>& pos) |
|
|
|
{ |
|
|
|
resize(pos.getX(), pos.getY(), w(), h()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Get this widget's window application. |
|
|
|
Same as calling getParentWindow().getApp(). |
|
|
@@ -207,14 +175,6 @@ public: |
|
|
|
return (x >= 0 && y >= 0 && x < w() && y < h()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Check if this widget contains the point @a pos. |
|
|
|
*/ |
|
|
|
bool contains(const Point<int>& pos) const |
|
|
|
{ |
|
|
|
return contains(pos.getX(), pos.getY()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
Tell this widget's window to repaint itself. |
|
|
|
*/ |
|
|
|