31 #include "../View/view.h"
32 #include "../Image/image_source.h"
38 typedef std::shared_ptr<Image>
ImagePtr;
39 class ImageBaseViewImpl;
46 std::shared_ptr<ImageSource>
image();
47 void set_image(
const std::shared_ptr<ImageSource> &image);
78 std::shared_ptr<ImageBaseViewImpl> impl;
void render_content(const CanvasPtr &canvas) override
Renders the content of a view.
Definition: image_view.h:41
void set_highlighted_image(const std::shared_ptr< ImageSource > &image)
std::shared_ptr< ImageSource > highlighted_image()
std::shared_ptr< Image > ImagePtr
Definition: image.h:116
std::shared_ptr< ImageSource > image()
float calculate_preferred_width(const CanvasPtr &canvas) override
Calculates the preferred width of this view.
View for an area of the user interface.
Definition: view.h:68
float calculate_preferred_height(const CanvasPtr &canvas, float width) override
Calculates the preferred height of this view.
std::shared_ptr< Canvas > CanvasPtr
Definition: canvas.h:126
Definition: Application/application.h:35
void set_image(const std::shared_ptr< ImageSource > &image)