Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
primitives.h
Go to the documentation of this file.
1/*
2 * Copyright 2026 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
10
11
12#ifndef __MUTEKI_DRAW_TYPES_PRIMITIVES_H__
13#define __MUTEKI_DRAW_TYPES_PRIMITIVES_H__
14
15#include "../../common.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
25typedef struct lcd_rect_s {
27 short x0; // (lcd_t[0x6c:0x6e])
29 short y0; // (lcd_t[0x6e:0x70])
31 short x1; // (lcd_t[0x70:0x72])
33 short y1; // (lcd_t[0x72:0x74])
34} lcd_rect_t; // 0x8 bytes
35
42#define LCD_RGB_FROM_U8(r, g, b) ((r & 0xff) << 16 | ((g & 0xff) << 8) | (b & 0xff))
43
44#ifdef __cplusplus
45} // extern "C"
46#endif
47
48#endif // __MUTEKI_DRAW_TYPES_PRIMITIVES_H__
Common include file for all muteki-shims headers.
struct lcd_rect_s lcd_rect_t
Rectangle used to represent usable drawing area in an LCD descriptor.
Rectangle used to represent usable drawing area in an LCD descriptor.
Definition primitives.h:25
short y0
Y coordinate of the top-left corner, in pixels (inclusive).
Definition primitives.h:29
short y1
Y coordinate of the bottom-right corner, in pixels (inclusive).
Definition primitives.h:33
short x0
X coordinate of the top-left corner, in pixels (inclusive).
Definition primitives.h:27
short x1
X coordinate of the bottom-right corner, in pixels (inclusive).
Definition primitives.h:31