|
|
|
@@ -67,10 +67,10 @@ public: |
|
|
|
This is handy for doing things like darkening or lightening an image by overlaying
|
|
|
|
it with semi-transparent black or white.
|
|
|
|
*/
|
|
|
|
void setOverlayColour (const Colour& newOverlayColour);
|
|
|
|
void setOverlayColour (Colour newOverlayColour);
|
|
|
|
|
|
|
|
/** Returns the overlay colour. */
|
|
|
|
const Colour& getOverlayColour() const noexcept { return overlayColour; }
|
|
|
|
Colour getOverlayColour() const noexcept { return overlayColour; }
|
|
|
|
|
|
|
|
/** Sets the bounding box within which the image should be displayed. */
|
|
|
|
void setBoundingBox (const RelativeParallelogram& newBounds);
|
|
|
|
@@ -91,9 +91,9 @@ public: |
|
|
|
/** @internal */
|
|
|
|
Rectangle<float> getDrawableBounds() const override;
|
|
|
|
/** @internal */
|
|
|
|
void refreshFromValueTree (const ValueTree& tree, ComponentBuilder& builder);
|
|
|
|
void refreshFromValueTree (const ValueTree& tree, ComponentBuilder&);
|
|
|
|
/** @internal */
|
|
|
|
ValueTree createValueTree (ComponentBuilder::ImageProvider* imageProvider) const override;
|
|
|
|
ValueTree createValueTree (ComponentBuilder::ImageProvider*) const override;
|
|
|
|
/** @internal */
|
|
|
|
static const Identifier valueTreeType;
|
|
|
|
|
|
|
|
@@ -105,19 +105,19 @@ public: |
|
|
|
ValueTreeWrapper (const ValueTree& state);
|
|
|
|
|
|
|
|
var getImageIdentifier() const;
|
|
|
|
void setImageIdentifier (const var& newIdentifier, UndoManager* undoManager);
|
|
|
|
Value getImageIdentifierValue (UndoManager* undoManager);
|
|
|
|
void setImageIdentifier (const var&, UndoManager*);
|
|
|
|
Value getImageIdentifierValue (UndoManager*);
|
|
|
|
|
|
|
|
float getOpacity() const;
|
|
|
|
void setOpacity (float newOpacity, UndoManager* undoManager);
|
|
|
|
Value getOpacityValue (UndoManager* undoManager);
|
|
|
|
void setOpacity (float newOpacity, UndoManager*);
|
|
|
|
Value getOpacityValue (UndoManager*);
|
|
|
|
|
|
|
|
Colour getOverlayColour() const;
|
|
|
|
void setOverlayColour (const Colour& newColour, UndoManager* undoManager);
|
|
|
|
Value getOverlayColourValue (UndoManager* undoManager);
|
|
|
|
void setOverlayColour (Colour newColour, UndoManager*);
|
|
|
|
Value getOverlayColourValue (UndoManager*);
|
|
|
|
|
|
|
|
RelativeParallelogram getBoundingBox() const;
|
|
|
|
void setBoundingBox (const RelativeParallelogram& newBounds, UndoManager* undoManager);
|
|
|
|
void setBoundingBox (const RelativeParallelogram&, UndoManager*);
|
|
|
|
|
|
|
|
static const Identifier opacity, overlay, image, topLeft, topRight, bottomLeft;
|
|
|
|
};
|
|
|
|
|