diff options
author | David Robillard <d@drobilla.net> | 2022-05-20 19:44:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-21 16:49:47 -0400 |
commit | a136586a339032126540ceb24f7c3f15eaba68c8 (patch) | |
tree | cd3e35e2cab5c71517c691cfad6dbeac8664b945 /examples/pugl_embed_demo.app/MacOS | |
parent | 1cd37cad0a06fbb15c44fd59dd6b2c12a0812a76 (diff) | |
download | pugl-a136586a339032126540ceb24f7c3f15eaba68c8.tar.gz pugl-a136586a339032126540ceb24f7c3f15eaba68c8.tar.bz2 pugl-a136586a339032126540ceb24f7c3f15eaba68c8.zip |
Use consistent integer types for view positions and sizes
Actual window sizes and positions fit easily in a 16-bit integer. So, we use
that in "representation contexts" like events. This makes structures smaller,
and allows the values to be converted to float, double, or integer without
casting (since any int16_t or uint16_t value can fit in them without loss).
Setter APIs use native integers for convenience, to avoid casting hassles when
doing arithmetic. Ranges are checked at runtime.
Diffstat (limited to 'examples/pugl_embed_demo.app/MacOS')
0 files changed, 0 insertions, 0 deletions