Skip to main content

Module image

Module image 

Source
Expand description

Image widgets: natural size (asked from the host, cached) and drawing — fitting the image into the widget per its Stretch and cutting it to the clip rect.

Functions§

natural_size
The image’s natural size: its region’s, or the whole source’s.
source_size
Natural size of source in GUI pixels.
use_host_images
Lets image widgets size themselves from the host (texture sizes, the version’s sprite sizes). Called by UiRoot::render; call it yourself before the first layout to get exact sizes from the very first frame.