55 void setMinimumWidth (
int minimumWidth)
noexcept;
61 void setMaximumWidth (
int maximumWidth)
noexcept;
67 void setMinimumHeight (
int minimumHeight)
noexcept;
73 void setMaximumHeight (
int maximumHeight)
noexcept;
79 void setMinimumSize (
int minimumWidth,
80 int minimumHeight)
noexcept;
83 void setMaximumSize (
int maximumWidth,
84 int maximumHeight)
noexcept;
87 void setSizeLimits (
int minimumWidth,
90 int maximumHeight)
noexcept;
109 void setMinimumOnscreenAmounts (
int minimumWhenOffTheTop,
110 int minimumWhenOffTheLeft,
111 int minimumWhenOffTheBottom,
112 int minimumWhenOffTheRight)
noexcept;
132 void setFixedAspectRatio (
double widthOverHeight)
noexcept;
138 double getFixedAspectRatio() const noexcept;
153 virtual
void checkBounds (
Rectangle<
int>& bounds,
156 bool isStretchingTop,
157 bool isStretchingLeft,
158 bool isStretchingBottom,
159 bool isStretchingRight);
162 virtual
void resizeStart();
165 virtual
void resizeEnd();
168 void setBoundsForComponent (
Component* component,
170 bool isStretchingTop,
171 bool isStretchingLeft,
172 bool isStretchingBottom,
173 bool isStretchingRight);
178 void checkComponentBounds (
Component* component);
190 int minW = 0, maxW = 0x3fffffff, minH = 0, maxH = 0x3fffffff;
191 int minOffTop = 0, minOffLeft = 0, minOffBottom = 0, minOffRight = 0;
192 double aspectRatio = 0;
A class that imposes restrictions on a Component's size or position.
int getMinimumWhenOffTheRight() const noexcept
Returns the minimum distance the bounds can be off-screen.
int getMaximumWidth() const noexcept
Returns the current maximum width.
int getMinimumWidth() const noexcept
Returns the current minimum width.
int getMinimumWhenOffTheBottom() const noexcept
Returns the minimum distance the bounds can be off-screen.
int getMinimumHeight() const noexcept
Returns the current minimum height.
int getMaximumHeight() const noexcept
Returns the current maximum height.
int getMinimumWhenOffTheLeft() const noexcept
Returns the minimum distance the bounds can be off-screen.
int getMinimumWhenOffTheTop() const noexcept
Returns the minimum distance the bounds can be off-screen.
The base class for all JUCE user-interface objects.
Manages a rectangle and allows geometric operations to be performed on it.