GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_widget_size Struct Reference

A compound size. More...

#include <gp_widget_size_units.h>

Data Fields

uint16_t px
 Size in pixel.
 
uint8_t pad
 Size in padding units.
 
uint8_t asc
 Size in text ascent units.
 

Detailed Description

A compound size.

There are two fundamental constants that are used for widget size computation. These are padding and text ascent. For example button widget minimal height consists of ascent and two paddings one on the top and one for the bottom.

This structure describes a size as a sum of three different values these are pixels, padding and ascent. The later two are relative to a render context that defines the text ascent and padding.

Definition at line 31 of file gp_widget_size_units.h.


The documentation for this struct was generated from the following file: