|
|
|
@@ -253,7 +253,7 @@ public: |
|
|
|
bounds will no longer be a direct reflection of the position at which it appears within
|
|
|
|
its parent, as the transform will be applied to its bounding box.
|
|
|
|
*/
|
|
|
|
int getX() const noexcept { return bounds.getX(); }
|
|
|
|
int getX() const noexcept { return boundsRelativeToParent.getX(); }
|
|
|
|
|
|
|
|
/** Returns the y coordinate of the top of this component.
|
|
|
|
This is a distance in pixels from the top edge of the component's parent.
|
|
|
|
@@ -262,13 +262,13 @@ public: |
|
|
|
bounds will no longer be a direct reflection of the position at which it appears within
|
|
|
|
its parent, as the transform will be applied to its bounding box.
|
|
|
|
*/
|
|
|
|
int getY() const noexcept { return bounds.getY(); }
|
|
|
|
int getY() const noexcept { return boundsRelativeToParent.getY(); }
|
|
|
|
|
|
|
|
/** Returns the component's width in pixels. */
|
|
|
|
int getWidth() const noexcept { return bounds.getWidth(); }
|
|
|
|
int getWidth() const noexcept { return boundsRelativeToParent.getWidth(); }
|
|
|
|
|
|
|
|
/** Returns the component's height in pixels. */
|
|
|
|
int getHeight() const noexcept { return bounds.getHeight(); }
|
|
|
|
int getHeight() const noexcept { return boundsRelativeToParent.getHeight(); }
|
|
|
|
|
|
|
|
/** Returns the x coordinate of the component's right-hand edge.
|
|
|
|
This is a distance in pixels from the left edge of the component's parent.
|
|
|
|
@@ -277,10 +277,10 @@ public: |
|
|
|
bounds will no longer be a direct reflection of the position at which it appears within
|
|
|
|
its parent, as the transform will be applied to its bounding box.
|
|
|
|
*/
|
|
|
|
int getRight() const noexcept { return bounds.getRight(); }
|
|
|
|
int getRight() const noexcept { return boundsRelativeToParent.getRight(); }
|
|
|
|
|
|
|
|
/** Returns the component's top-left position as a Point. */
|
|
|
|
Point<int> getPosition() const noexcept { return bounds.getPosition(); }
|
|
|
|
Point<int> getPosition() const noexcept { return boundsRelativeToParent.getPosition(); }
|
|
|
|
|
|
|
|
/** Returns the y coordinate of the bottom edge of this component.
|
|
|
|
This is a distance in pixels from the top edge of the component's parent.
|
|
|
|
@@ -289,7 +289,7 @@ public: |
|
|
|
bounds will no longer be a direct reflection of the position at which it appears within
|
|
|
|
its parent, as the transform will be applied to its bounding box.
|
|
|
|
*/
|
|
|
|
int getBottom() const noexcept { return bounds.getBottom(); }
|
|
|
|
int getBottom() const noexcept { return boundsRelativeToParent.getBottom(); }
|
|
|
|
|
|
|
|
/** Returns this component's bounding box.
|
|
|
|
The rectangle returned is relative to the top-left of the component's parent.
|
|
|
|
@@ -298,7 +298,7 @@ public: |
|
|
|
bounds will no longer be a direct reflection of the position at which it appears within
|
|
|
|
its parent, as the transform will be applied to its bounding box.
|
|
|
|
*/
|
|
|
|
const Rectangle<int>& getBounds() const noexcept { return bounds; }
|
|
|
|
const Rectangle<int>& getBounds() const noexcept { return boundsRelativeToParent; }
|
|
|
|
|
|
|
|
/** Returns the component's bounds, relative to its own origin.
|
|
|
|
This is like getBounds(), but returns the rectangle in local coordinates, In practice, it'll
|
|
|
|
@@ -2244,7 +2244,7 @@ private: |
|
|
|
//==============================================================================
|
|
|
|
String componentName, componentID;
|
|
|
|
Component* parentComponent;
|
|
|
|
Rectangle<int> bounds;
|
|
|
|
Rectangle<int> boundsRelativeToParent;
|
|
|
|
ScopedPointer<Positioner> positioner;
|
|
|
|
ScopedPointer<AffineTransform> affineTransform;
|
|
|
|
Array<Component*> childComponentList;
|
|
|
|
|