OCRudoku  v1.0
Resolve word grid with ease
Loading...
Searching...
No Matches
EZ_drag_select.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_drag_select.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ez_drag_select
 

Typedefs

typedef struct ez_drag_select EZ_drag_select
 

Functions

EZ_drag_selectEZ_create_drag_select (char *select_img, SDL_Renderer *renderer, anchore_point dst_anchore)
 Creates a new EZ_drag_select structure.
 

Typedef Documentation

◆ EZ_drag_select

Function Documentation

◆ EZ_create_drag_select()

EZ_drag_select * EZ_create_drag_select ( char * select_img,
SDL_Renderer * renderer,
anchore_point dst_anchore )

Creates a new EZ_drag_select structure.

This function initializes a new EZ_drag_select structure, which is used to handle drag selection within an SDL window. It loads the specified image, creates a texture from it, and sets up the drawable and interactible components of the drag selection.

Parameters
select_imgThe path to the image file used for the drag selection.
rendererThe SDL_Renderer used for rendering the selection.
dst_anchoreThe anchore_point defining the destination anchore for the drawable.
Returns
A pointer to the newly created EZ_drag_select structure.