Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
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
18
extern
"C"
{
19
#endif
20
25
typedef
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
39
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.h
Common include file for all muteki-shims headers.
lcd_rect_t
struct lcd_rect_s lcd_rect_t
Rectangle used to represent usable drawing area in an LCD descriptor.
lcd_rect_s
Rectangle used to represent usable drawing area in an LCD descriptor.
Definition
primitives.h:25
lcd_rect_s::y0
short y0
Y coordinate of the top-left corner, in pixels (inclusive).
Definition
primitives.h:29
lcd_rect_s::y1
short y1
Y coordinate of the bottom-right corner, in pixels (inclusive).
Definition
primitives.h:33
lcd_rect_s::x0
short x0
X coordinate of the top-left corner, in pixels (inclusive).
Definition
primitives.h:27
lcd_rect_s::x1
short x1
X coordinate of the bottom-right corner, in pixels (inclusive).
Definition
primitives.h:31
include
muteki
draw
types
primitives.h
Generated by
1.18.0