56 #ifndef LEGATO_COMMON_H 57 #define LEGATO_COMMON_H 59 #include "gfx/legato/legato_config.h" 67 typedef signed __int8 int8_t;
68 typedef signed __int16 int16_t;
69 typedef signed __int32 int32_t;
70 typedef unsigned __int8 uint8_t;
71 typedef unsigned __int16 uint16_t;
72 typedef unsigned __int32 uint32_t;
73 typedef signed __int64 int64_t;
74 typedef unsigned __int64 uint64_t;
89 #ifndef LE_DEFAULT_SCHEME_COLOR_MODE 90 #define LE_DEFAULT_SCHEME_COLOR_MODE LE_COLOR_MODE_RGB_565 232 static const leMargin leMargin_Zero = {0, 0, 0, 0};
331 LE_ORIENTATION_HORIZONTAL,
332 LE_ORIENTATION_VERTICAL,
356 static const lePoint lePoint_Zero = {0, 0};
380 static const leSize leSize_Zero = {0, 0};
416 #define LE_UNKNOWN_GLYPH 0xFFFF 418 #define LE_PCALL(var, func, args...) var->fn->func(var, ## args) 419 #define LE_OCALL(var, func, args...) var.fn->func(&var, ## args) 425 #define ASSIGN_VIRTUAL_FUNCTION(name) .name = name 426 #define ASSIGN_VTABLE_FUNCTION(vtable, name) vtable.name = name 427 #endif // LEGATO_COMMON_H Definition: legato_common.h:197
Definition: legato_common.h:149
struct leSize leSize
This structure is used represents the size of an item.
Definition: legato_common.h:304
Definition: legato_common.h:305
struct leMargin leMargin
This struct represents the four margin settings for objects.
Definition: legato_common.h:173
leRotationDirection
This enum represents the two rotation direction modes for objects.
Definition: legato_common.h:278
struct leRect leRect
This struct represents a rectangle.
struct lePoint lePoint
This structure represents a integer Cartesian point.
int32_t height
Definition: legato_common.h:373
uint8_t bottom
Definition: legato_common.h:225
Definition: legato_common.h:307
leResult
This enum represents function call results.
Definition: legato_common.h:123
Definition: legato_common.h:199
This struct represents a rectangle.
Definition: legato_common.h:394
leDirection
This enum represents the four directions modes for objects.
Definition: legato_common.h:252
uint8_t left
Definition: legato_common.h:222
Definition: legato_common.h:306
This struct represents the four margin settings for objects.
Definition: legato_common.h:220
Definition: legato_common.h:257
leHAlignment
This enum represents the horizontal alignment mode of objects.
Definition: legato_common.h:195
leRelativePosition
This enum represents the relative position modes for objects.
Definition: legato_common.h:302
int32_t width
Definition: legato_common.h:372
This structure is used represents the size of an item.
Definition: legato_common.h:370
Definition: legato_common.h:254
uint8_t top
Definition: legato_common.h:223
Definition: legato_common.h:255
leOrientation
This enum represents the orientation modes for objects.
Definition: legato_common.h:329
This structure represents a integer Cartesian point.
Definition: legato_common.h:346
Definition: legato_common.h:148
Definition: legato_common.h:172
Definition: legato_common.h:174
Definition: legato_common.h:281
leBool
This enum represents booleans.
Definition: legato_common.h:146
void * leBuffer
This typedef represents general-purpose buffer.
Definition: legato_common.h:407
uint16_t leChar
This typedef represents Legato character.
Definition: legato_common.h:414
Definition: legato_common.h:308
Definition: legato_common.h:198
uint8_t right
Definition: legato_common.h:224
Definition: legato_common.h:280
leVAlignment
This enum represents the vertical alignment mode of objects.
Definition: legato_common.h:170
Definition: legato_common.h:256