25 #ifndef JUCE_COMPONENTBOUNDSCONSTRAINER_H_INCLUDED 26 #define JUCE_COMPONENTBOUNDSCONSTRAINER_H_INCLUDED 53 void setMinimumWidth (
int minimumWidth)
noexcept;
59 void setMaximumWidth (
int maximumWidth)
noexcept;
65 void setMinimumHeight (
int minimumHeight)
noexcept;
71 void setMaximumHeight (
int maximumHeight)
noexcept;
77 void setMinimumSize (
int minimumWidth,
81 void setMaximumSize (
int maximumWidth,
85 void setSizeLimits (
int minimumWidth,
107 void setMinimumOnscreenAmounts (
int minimumWhenOffTheTop,
108 int minimumWhenOffTheLeft,
109 int minimumWhenOffTheBottom,
110 int minimumWhenOffTheRight)
noexcept;
130 void setFixedAspectRatio (
double widthOverHeight)
noexcept;
136 double getFixedAspectRatio()
const noexcept;
154 bool isStretchingTop,
155 bool isStretchingLeft,
156 bool isStretchingBottom,
157 bool isStretchingRight);
160 virtual void resizeStart();
163 virtual void resizeEnd();
166 void setBoundsForComponent (
Component* component,
168 bool isStretchingTop,
169 bool isStretchingLeft,
170 bool isStretchingBottom,
171 bool isStretchingRight);
176 void checkComponentBounds (
Component* component);
184 virtual void applyBoundsToComponent (
Component* component,
189 int minW, maxW, minH, maxH;
190 int minOffTop, minOffLeft, minOffBottom, minOffRight;
197 #endif // JUCE_COMPONENTBOUNDSCONSTRAINER_H_INCLUDED #define noexcept
Definition: juce_CompilerSupport.h:141
int getMinimumWhenOffTheBottom() const noexcept
Definition: juce_ComponentBoundsConstrainer.h:118
int getMinimumWhenOffTheLeft() const noexcept
Definition: juce_ComponentBoundsConstrainer.h:116
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_Rectangle.h:36
int getMaximumWidth() const noexcept
Definition: juce_ComponentBoundsConstrainer.h:62
int getMinimumWidth() const noexcept
Definition: juce_ComponentBoundsConstrainer.h:56
Definition: juce_Component.h:33
int getMinimumWhenOffTheRight() const noexcept
Definition: juce_ComponentBoundsConstrainer.h:120
int getMinimumWhenOffTheTop() const noexcept
Definition: juce_ComponentBoundsConstrainer.h:114
int getMaximumHeight() const noexcept
Definition: juce_ComponentBoundsConstrainer.h:74
Definition: juce_ComponentBoundsConstrainer.h:41
int getMinimumHeight() const noexcept
Definition: juce_ComponentBoundsConstrainer.h:68