-
Notifications
You must be signed in to change notification settings - Fork 0
/
c_ugui_raylib_renderer.h
57 lines (40 loc) · 1.53 KB
/
c_ugui_raylib_renderer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Created by Alex on 02/07/2023.
//
#ifndef RAYLIB_TODO_LIST_C_UGUI_RAYLIB_RENDERER_H
#define RAYLIB_TODO_LIST_C_UGUI_RAYLIB_RENDERER_H
#include "c_ugui.h"
#include "raylib.h"
typedef struct t_visual_style {
Texture2D texture;
Font font;
float list_item_height;
Vector2 slider_thumb_size;
float titlebar_height;
NPatchInfo raised_frames[4];
NPatchInfo edit_frames[4];
NPatchInfo list_frames[4];
NPatchInfo list_selected_frames[4];
NPatchInfo slider_tracks[4];
Rectangle slider_horizontal_thumbs[4];
Rectangle slider_vertical_thumbs[4];
NPatchInfo progressbar_bars[4];
NPatchInfo titlebars[4];
NPatchInfo background;
Vector2 list_content_padding;
Color list_text_color[4];
} t_visual_style;
void raylib_unload_visual_style(void);
void raylib_clear();
void raylib_set_visual_style(t_visual_style);
void raylib_draw_button(t_control, e_visual_state, t_button);
void raylib_draw_togglebutton(t_control, e_visual_state, t_togglebutton);
void raylib_draw_textbox(t_control, e_visual_state, t_textbox);
void raylib_draw_slider(t_control, e_visual_state, t_slider);
void raylib_draw_listbox(t_control, e_visual_state, t_listbox);
void raylib_draw_progressbar(t_control, e_visual_state, t_progressbar);
void raylib_draw_treeview(t_control, e_visual_state, t_treeview);
void raylib_draw_treeview_node(t_control, e_visual_state, t_node, size_t, size_t);
t_vector2 raylib_measure_text(const char *);
float raylib_listbox_get_item_height();
#endif //RAYLIB_TODO_LIST_C_UGUI_RAYLIB_RENDERER_H