OCRudoku  v1.0
Resolve word grid with ease
Loading...
Searching...
No Matches
EZ_button.h File Reference
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "../EZ_utils.h"
#include "../../Rendering/RenderingUtils.h"
Include dependency graph for EZ_button.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ez_button
 

Typedefs

typedef struct ez_button EZ_button
 

Functions

EZ_buttonEZ_create_button (char *back_img, SDL_Renderer *renderer, anchore_point dst_anchore)
 Creates an EZ_button with the specified background image and anchoring point.
 

Typedef Documentation

◆ EZ_button

typedef struct ez_button EZ_button

Function Documentation

◆ 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.

This function loads an image from the specified file path, creates an SDL texture from it, and initializes an EZ_button structure with the given renderer and anchoring point.

Parameters
back_imgThe file path to the background image for the button.
rendererThe SDL_Renderer used for rendering the button.
dst_anchoreThe anchoring point for the button.
Returns
A pointer to the newly created EZ_button.