12 #include "Utilities.h" 49 ImageView(ImageId imageId,
bool shrinkable);
Invalid image ID.
Definition: Constants.h:172
Display an image texture.
Definition: ImageView.h:20
Rectangle widgetLayout(sdl::Renderer &renderer, Rectangle available, uint layoutStage) override
Determine the desired size of the label with text and badge.
Definition: ImageView.cpp:31
ImageView(std::optional< ImageId > imageId)
Constructor.
Definition: ImageView.h:42
void setImageId(ImageId imageId) override
Set the ImageId of the image texture to display.
Definition: ImageView.cpp:91
void draw(sdl::Renderer &renderer, Rectangle parentRect) override
Draw the Label.
Definition: ImageView.cpp:72
A composite of a Position and a Size.
Definition: Types.h:307
ImageView(std::optional< ImageId > imageId, bool shrinkable)
Constructor.
Definition: ImageView.h:56
void initializeComposite() override
See Widget::initializeComposite()
Definition: ImageView.cpp:26
Written as a workaround for an issue in the SDL2 Library.
Definition: Renderer.h:64
ToDo: There is an issue that the initial scroll interaction is lost if the click/press lands on a Wid...
Definition: CelestialOverlay.cpp:13