Difference between revisions of "Types"

From uGFX Wiki
Jump to: navigation, search
(Basic)
(Basic)
Line 7: Line 7:
 
|-
 
|-
 
| <code>gBool</code> || A boolean value. Use <code>gTrue</code> and <code>gFalse</code> for assignments & comparisons respectively.
 
| <code>gBool</code> || A boolean value. Use <code>gTrue</code> and <code>gFalse</code> for assignments & comparisons respectively.
|-
 
 
|}
 
|}
  

Revision as of 15:39, 2 August 2021

µGFX allows to write applications (eg. GUIs) that are completely portable as the library itself is highly agnostic. To achieve this goal, users should rely on the types exposed by µGFX as much as possible to prevent problems when migration to different systems.

Basic

Type Description
gBool A boolean value. Use gTrue and gFalse for assignments & comparisons respectively.

Rendering

Type Description
gCoord A type to express a coordinate in pixels.
gColor A color.
gFont A font. See font rendering.
gImage An image. See images.