31 #include "../View/view.h" 32 #include "../Image/image_source.h" 45 std::shared_ptr<ImageSource>
image();
77 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:65
2D Graphics Canvas
Definition: canvas.h:71
std::shared_ptr< ImageSource > highlighted_image()
std::shared_ptr< ImageSource > image()
void render_content(Canvas &canvas) override
Renders the content of a view.
Image class.
Definition: image.h:58
Definition: image_view.h:40
float calculate_preferred_width(Canvas &canvas) override
Calculates the preferred width of this view.
float calculate_preferred_height(Canvas &canvas, float width) override
Calculates the preferred height of this view.
void set_image(const std::shared_ptr< ImageSource > &image)