SayoriOS 0.3.3

widget_image.h
1 #pragma once
2
3 #include <common.h>
4 #include "widget.h"
5 #include "fmt/tga.h"
6
7 typedef enum {
8 NORMAL,
9 STRETCH
10 } Widget_Image_Display_Mode_t;
11
12 typedef struct Widget_Image {
13 const char* path;
14
15 tga_header_t meta;
16 void* image_data;
17
18 bool loaded;
19
20 Widget_Image_Display_Mode_t display_mode;
21 } Widget_Image_t;
22
23 Widget_t* new_widget_image(const char *path);
common.h
Основные определения ядра
Widget_Image
Definition: widget_image.h:12
Widget
Definition: widget.h:12