Atrinik Client  4.0
Functions
text_input.c File Reference
#include <global.h>
#include <toolkit/string.h>
#include <toolkit/x11.h>

Go to the source code of this file.

Functions

text_input_history_structtext_input_history_create (void)
 
void text_input_history_free (text_input_history_struct *history)
 
static void text_input_history_add (text_input_history_struct *history, const char *text)
 
void text_input_create (text_input_struct *text_input)
 
void text_input_destroy (text_input_struct *text_input)
 
void text_input_set_font (text_input_struct *text_input, font_struct *font)
 
void text_input_reset (text_input_struct *text_input)
 
void text_input_set_history (text_input_struct *text_input, text_input_history_struct *history)
 
void text_input_set (text_input_struct *text_input, const char *str)
 
void text_input_set_parent (text_input_struct *text_input, int px, int py)
 
int text_input_mouse_over (text_input_struct *text_input, int mx, int my)
 
void text_input_show_edit_password (text_input_struct *text_input)
 
int text_input_number_character_check (text_input_struct *text_input, char c)
 
void text_input_show (text_input_struct *text_input, SDL_Surface *surface, int x, int y)
 
void text_input_add_char (text_input_struct *text_input, char c)
 
int text_input_event (text_input_struct *text_input, SDL_Event *event)
 

Detailed Description

Text input API.

Author
Alex Tokar

Definition in file text_input.c.

Function Documentation

void text_input_destroy ( text_input_struct text_input)

Destroy data associated with the specified text input. The text input structure itself is not freed.

Parameters
text_inputText input to destroy.

Definition at line 96 of file text_input.c.

static void text_input_history_add ( text_input_history_struct history,
const char *  text 
)
static

Add string to text input history.

Parameters
historyThe history to add to.
textThe text to add to the history.

Definition at line 59 of file text_input.c.