31 #include "../View/view.h"
32 #include "../Image/image_source.h"
45 std::shared_ptr<ImageSource>
image();
78 std::shared_ptr<ImageViewImpl> impl;
std::shared_ptr< ImageSource > highlighted_image()
float get_preferred_width(Canvas &canvas) override
Calculates the preferred width of this view.
std::shared_ptr< ImageSource > image()
void set_image(const Image &image)
float get_last_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the last baseline.
void render_content(Canvas &canvas) override
Renders the content of a view.
2D Graphics Canvas
Definition: canvas.h:73
Definition: image_view.h:41
View for an area of the user interface.
Definition: view.h:62
float get_first_baseline_offset(Canvas &canvas, float width) override
Calculates the offset to the first baseline.
void set_highlighted_image(const Image &image)
Image class.
Definition: image.h:60
void set_highlighted_image(const std::shared_ptr< ImageSource > &image)
void set_image(const std::shared_ptr< ImageSource > &image)
float get_preferred_height(Canvas &canvas, float width) override
Calculates the preferred height of this view.