OCRudoku
v1.0
Resolve word grid with ease
Loading...
Searching...
No Matches
EZ_utils.h
Go to the documentation of this file.
1
#include <SDL2/SDL.h>
2
#include <SDL2/SDL_image.h>
3
#include "
../Rendering/RenderingUtils.h
"
4
5
#ifndef EZ_UTILS_H
6
#define EZ_UTILS_H
7
8
typedef
struct
9
{
10
anchore_point
dst_anchore
;
11
SDL_Rect
src_rect
;
12
SDL_Texture*
texture
;
13
SDL_Color
color
;
14
char
visible
;
15
void
*
data
;
16
void (*on_draw)(SDL_Window* window, SDL_Renderer* renderer,
void
*);
17
}
EZ_DRAWABLE
;
18
19
typedef
struct
interactible
20
{
21
anchore_point
anchore
;
22
void
*
process_data
;
23
void (*
process_interaction
)(SDL_Window* window, SDL_Renderer* renderer, SDL_Event*,
struct
interactible
*,
void
*);
24
char
enable
;
25
}
EZ_INTERACTIBLE
;
26
27
typedef
struct
menu
28
{
29
EZ_DRAWABLE
**
drawable_elements
;
30
size_t
drawable_elements_len
;
31
EZ_INTERACTIBLE
**
interactible_elements
;
32
size_t
interactible_elements_len
;
33
SDL_Color
background_color
;
34
void (*
process_event
)(SDL_Window* window, SDL_Renderer* renderer, SDL_Event*,
struct
menu
*);
35
void (*
unload_menu
)(void);
36
}
EZ_MENU
;
37
38
#endif
EZ_INTERACTIBLE
struct interactible EZ_INTERACTIBLE
EZ_MENU
struct menu EZ_MENU
RenderingUtils.h
EZ_DRAWABLE
Definition
EZ_utils.h:9
EZ_DRAWABLE::visible
char visible
Definition
EZ_utils.h:14
EZ_DRAWABLE::color
SDL_Color color
Definition
EZ_utils.h:13
EZ_DRAWABLE::data
void * data
Definition
EZ_utils.h:15
EZ_DRAWABLE::texture
SDL_Texture * texture
Definition
EZ_utils.h:12
EZ_DRAWABLE::dst_anchore
anchore_point dst_anchore
Definition
EZ_utils.h:10
EZ_DRAWABLE::src_rect
SDL_Rect src_rect
Definition
EZ_utils.h:11
anchore_point
Definition
RenderingUtils.h:7
interactible
Definition
EZ_utils.h:20
interactible::anchore
anchore_point anchore
Definition
EZ_utils.h:21
interactible::process_data
void * process_data
Definition
EZ_utils.h:22
interactible::process_interaction
void(* process_interaction)(SDL_Window *window, SDL_Renderer *renderer, SDL_Event *, struct interactible *, void *)
Definition
EZ_utils.h:23
interactible::enable
char enable
Definition
EZ_utils.h:24
menu
Definition
EZ_utils.h:28
menu::process_event
void(* process_event)(SDL_Window *window, SDL_Renderer *renderer, SDL_Event *, struct menu *)
Definition
EZ_utils.h:34
menu::interactible_elements
EZ_INTERACTIBLE ** interactible_elements
Definition
EZ_utils.h:31
menu::drawable_elements
EZ_DRAWABLE ** drawable_elements
Definition
EZ_utils.h:29
menu::interactible_elements_len
size_t interactible_elements_len
Definition
EZ_utils.h:32
menu::unload_menu
void(* unload_menu)(void)
Definition
EZ_utils.h:35
menu::drawable_elements_len
size_t drawable_elements_len
Definition
EZ_utils.h:30
menu::background_color
SDL_Color background_color
Definition
EZ_utils.h:33
Developer
OCRudoku
src
utils
EZ_UI
EZ_utils.h
Generated by
1.12.0