GGUI::ImageInfo struct

What an image is: its texture, its region within it, and its size.

An image is an ImageID (UITypes.h). The ImageSource that issues them describes each one. The engine's is backed by its texture table; tests supply their own.

Public variables

uint16_t Texture
texture table index
uint16_t U0
region, in 65536ths of the texture
uint16_t V0
see U0
uint16_t U1
see U0
uint16_t V1
see U0
float Width
pixel size, which is its UI-unit size at 100% scale
float Height
pixel size

Friends

auto operator==(const ImageInfo&, const ImageInfo&) -> bool defaulted
every member equal