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
sourcein 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.