25 #ifndef JUCE_RECTANGLEPLACEMENT_H_INCLUDED
26 #define JUCE_RECTANGLEPLACEMENT_H_INCLUDED
99 fillDestination = 128,
104 onlyReduceInSize = 256,
109 onlyIncreaseInSize = 512,
113 doNotResize = (onlyIncreaseInSize | onlyReduceInSize),
128 inline bool testFlags (
int flagsToTest)
const noexcept {
return (
flags & flagsToTest) != 0; }
137 void applyTo (
double& sourceX,
144 double destinationH)
const noexcept;
149 template <
typename ValueType>
153 double x = source.getX(), y = source.getY(), w = source.getWidth(), h = source.getHeight();
154 applyTo (x, y, w, h, static_cast <double> (destination.getX()), static_cast <double> (destination.getY()),
155 static_cast <double> (destination.getWidth()), static_cast <double> (destination.getHeight()));
157 static_cast <ValueType> (w), static_cast <ValueType> (h));
172 #endif // JUCE_RECTANGLEPLACEMENT_H_INCLUDED
#define noexcept
Definition: juce_CompilerSupport.h:141
Rectangle< ValueType > appliedTo(const Rectangle< ValueType > &source, const Rectangle< ValueType > &destination) const noexcept
Definition: juce_RectanglePlacement.h:150
int getFlags() const noexcept
Definition: juce_RectanglePlacement.h:122
bool testFlags(int flagsToTest) const noexcept
Definition: juce_RectanglePlacement.h:128
RectanglePlacement(int placementFlags) noexcept
Definition: juce_RectanglePlacement.h:42
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_Rectangle.h:36
there are legal restrictions on arithmetic coding Invalid progressive parameters caller expects u Cannot quantize more than d color components Adobe APP14 flags
Definition: juce_JPEGLoader.cpp:127
Definition: juce_RectanglePlacement.h:37
Flags
Definition: juce_RectanglePlacement.h:58
RectanglePlacement() noexcept
Definition: juce_RectanglePlacement.h:45