#include <SDL.h>
#include <SDL_image.h>
#include "EZ_text.h"
#include "../EZ_utils.h"
#include "../../Rendering/RenderingUtils.h"
Go to the source code of this file.
◆ EZ_text_input
◆ input_type
◆ text_input_type
Enumerator |
---|
AnyInput | 0 | |
Numeric | | |
Decimal | | |
Alpha | | |
AlphaNumeric | | |
◆ EZ_create_text_input()
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_img | The file path to the background image for the textinput. |
renderer | The SDL_Renderer used for rendering the textinput. |
dst_anchore | The anchoring point for the textinput. |
- Returns
- A pointer to the newly created EZ_text_input.