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

Go to the source code of this file.

Data Structures

struct  ez_text_input
 

Typedefs

typedef enum text_input_type input_type
 
typedef struct ez_text_input EZ_text_input
 

Enumerations

enum  text_input_type {
  AnyInput = 0 , Numeric , Decimal , Alpha ,
  AlphaNumeric
}
 

Functions

EZ_text_inputEZ_create_text_input (char *back_img, TTF_Font *font, SDL_Color color, size_t max_length, input_type type, SDL_Renderer *renderer, anchore_point dst_anchore)
 Creates an EZ_text_input with the specified background image and anchoring point.
 

Typedef Documentation

◆ EZ_text_input

typedef struct ez_text_input EZ_text_input

◆ input_type

Enumeration Type Documentation

◆ text_input_type

Enumerator
AnyInput 
Numeric  
Decimal  
Alpha  
AlphaNumeric  

Function Documentation

◆ EZ_create_text_input()

EZ_text_input * EZ_create_text_input ( char * back_img,
TTF_Font * font,
SDL_Color color,
size_t max_length,
input_type type,
SDL_Renderer * renderer,
anchore_point dst_anchore )

Creates an EZ_text_input 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_text_input structure with the given renderer and anchoring point.

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