openshot-audio
0.1.7
|
#include <juce_ImageComponent.h>
Public Member Functions | |
ImageComponent (const String &componentName=String::empty) | |
~ImageComponent () | |
void | setImage (const Image &newImage) |
void | setImage (const Image &newImage, RectanglePlacement placementToUse) |
const Image & | getImage () const |
void | setImagePlacement (RectanglePlacement newPlacement) |
RectanglePlacement | getImagePlacement () const |
void | paint (Graphics &) override |
![]() | |
virtual | ~SettableTooltipClient () |
virtual void | setTooltip (const String &newTooltip) |
virtual String | getTooltip () |
![]() | |
virtual | ~TooltipClient () |
Additional Inherited Members | |
![]() | |
SettableTooltipClient () | |
A component that simply displays an image.
Use setImage to give it an image, and it'll display it - simple as that!
ImageComponent::ImageComponent | ( | const String & | componentName = String::empty | ) |
Creates an ImageComponent.
ImageComponent::~ImageComponent | ( | ) |
Destructor.
RectanglePlacement ImageComponent::getImagePlacement | ( | ) | const |
Returns the current image placement.
|
override |
void ImageComponent::setImage | ( | const Image & | newImage, |
RectanglePlacement | placementToUse | ||
) |
Sets the image that should be displayed, and its placement within the component.
void ImageComponent::setImagePlacement | ( | RectanglePlacement | newPlacement | ) |
Sets the method of positioning that will be used to fit the image within the component's bounds. By default the positioning is centred, and will fit the image inside the component's bounds whilst keeping its aspect ratio correct, but you can change it to whatever layout you need.