Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
imageclip.h
Go to the documentation of this file.
1/*
2 * Copyright 2024-2026 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
10
11#ifndef __MUTEKI_UI_TYPES_IMAGECLIP_H__
12#define __MUTEKI_UI_TYPES_IMAGECLIP_H__
13
14#include "framework.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
25
39 ui_imageclip_t *self,
40 unsigned int x,
41 unsigned int y,
43 int free_surface,
44 int notify_redraw
45 );
69 unsigned short image_allocated;
74 unsigned short blit_mode;
78 int unk_0x4c[5];
79};
80
81#ifdef __cplusplus
82} // extern "C"
83#endif
84
85#endif // __MUTEKI_UI_TYPES_IMAGECLIP_H__
UI framework type (component, group, event) definitions.
struct ui_component_s ui_component_t
ui_component_s
Definition framework.h:71
struct ui_imageclip_s ui_imageclip_t
Image clip subwidget type.
Definition imageclip.h:24
Image clip subwidget struct.
Definition imageclip.h:30
int unk_0x40
Unknown. Probably padding bytes.
Definition imageclip.h:57
unsigned short blit_mode
Blit mode.
Definition imageclip.h:74
ui_component_t component
The inherited component struct.
Definition imageclip.h:34
lcd_surface_t * surface
Allocated surface that contains the background image.
Definition imageclip.h:49
unsigned short image_allocated
Non-zero if the image surface is allocated by us.
Definition imageclip.h:69
int unk_0x4c[5]
Unknown. Seems unused.
Definition imageclip.h:78
short image_offset_x
X offset within the background image.
Definition imageclip.h:61
int builtin_background_id
Background image ID if it is a built-in image. Otherwise it should be -1.
Definition imageclip.h:53
bool(*) on_replace_image(ui_imageclip_t *self, unsigned int x, unsigned int y, lcd_surface_t *surface, int free_surface, int notify_redraw)
Replace image callback.
Definition imageclip.h:38
short image_offset_y
Y offset within the background image.
Definition imageclip.h:65
Surface type definitions.
struct lcd_surface_s lcd_surface_t
Descriptor of an LCD drawing surface or hardware framebuffer.