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