31#include "../View/view.h"
32#include "../Image/image_source.h"
45 std::shared_ptr<ImageSource>
image();
77 std::shared_ptr<ImageViewImpl> impl;
2D Graphics Canvas
Definition canvas.h:72
std::shared_ptr< ImageSource > highlighted_image()
void set_image(const std::shared_ptr< ImageSource > &image)
void render_content(Canvas &canvas) override
Renders the content of a view.
float calculate_preferred_width(Canvas &canvas) override
Calculates the preferred width of this view.
void set_image(const Image &image)
float calculate_preferred_height(Canvas &canvas, float width) override
Calculates the preferred height of this view.
void set_highlighted_image(const std::shared_ptr< ImageSource > &image)
std::shared_ptr< ImageSource > image()
void set_highlighted_image(const Image &image)
Image class.
Definition image.h:59