OCRudoku
v1.0
Resolve word grid with ease
Loading...
Searching...
No Matches
EZ_button.h
Go to the documentation of this file.
1
#include <SDL2/SDL.h>
2
#include <SDL2/SDL_image.h>
3
#include "
../EZ_utils.h
"
4
#include "
../../Rendering/RenderingUtils.h
"
5
6
#ifndef EZ_BUTTON_H
7
#define EZ_BUTTON_H
8
9
typedef
struct
ez_button
10
{
11
EZ_DRAWABLE
drawable_button
;
12
EZ_INTERACTIBLE
interactible_button
;
13
anchore_point
button_anchore
;
14
int
button_pressed
;
15
void
*
button_data
;
16
void (*
on_button_down
)(
struct
ez_button
*);
17
void (*
on_button_up
)(
struct
ez_button
*);
18
}
EZ_button
;
19
20
EZ_button
*
EZ_create_button
(
char
* back_img, SDL_Renderer* renderer,
anchore_point
dst_anchore);
21
22
#endif
EZ_create_button
EZ_button * EZ_create_button(char *back_img, SDL_Renderer *renderer, anchore_point dst_anchore)
Creates an EZ_button with the specified background image and anchoring point.
Definition
EZ_button.c:46
EZ_button
struct ez_button EZ_button
EZ_utils.h
RenderingUtils.h
EZ_DRAWABLE
Definition
EZ_utils.h:9
anchore_point
Definition
RenderingUtils.h:7
ez_button
Definition
EZ_button.h:10
ez_button::on_button_down
void(* on_button_down)(struct ez_button *)
Definition
EZ_button.h:16
ez_button::button_anchore
anchore_point button_anchore
Definition
EZ_button.h:13
ez_button::button_pressed
int button_pressed
Definition
EZ_button.h:14
ez_button::drawable_button
EZ_DRAWABLE drawable_button
Definition
EZ_button.h:11
ez_button::button_data
void * button_data
Definition
EZ_button.h:15
ez_button::interactible_button
EZ_INTERACTIBLE interactible_button
Definition
EZ_button.h:12
ez_button::on_button_up
void(* on_button_up)(struct ez_button *)
Definition
EZ_button.h:17
interactible
Definition
EZ_utils.h:20
Developer
OCRudoku
src
utils
EZ_UI
elements
EZ_button.h
Generated by
1.12.0