Atrinik Client  4.0
Data Fields
text_input_struct Struct Reference

#include <text_input.h>

Data Fields

char str [HUGE_BUF]
 
char str_editing [HUGE_BUF]
 
size_t pos
 
size_t num
 
size_t max
 
text_input_history_structhistory
 
font_structfont
 
int text_flags
 
SDL_Rect coords
 
int px
 
int py
 
uint8_t focus
 
int(* character_check_func )(struct text_input_struct *text_input, char c)
 
void(* show_edit_func )(struct text_input_struct *text_input)
 

Detailed Description

Text input structure.

Definition at line 51 of file text_input.h.

Field Documentation

SDL_Rect text_input_struct::coords

Coordinates of the text input.

Warning
Don't change this directly - use text_input_set_dimensions().

Definition at line 96 of file text_input.h.

uint8_t text_input_struct::focus

If 1, the text input has focus.

Definition at line 111 of file text_input.h.

font_struct* text_input_struct::font

Font to use.

Definition at line 85 of file text_input.h.

text_input_history_struct* text_input_struct::history

History.

Definition at line 80 of file text_input.h.

size_t text_input_struct::max

Maximum number of allowed characters in the input string.

Definition at line 75 of file text_input.h.

size_t text_input_struct::num

Number of charactes in the input string.

Definition at line 70 of file text_input.h.

size_t text_input_struct::pos

Position of the cursor in the input string.

Definition at line 65 of file text_input.h.

int text_input_struct::px

Parent X.

Definition at line 101 of file text_input.h.

int text_input_struct::py

Parent Y.

Definition at line 106 of file text_input.h.

char text_input_struct::str[HUGE_BUF]

The text input string.

Definition at line 55 of file text_input.h.

char text_input_struct::str_editing[HUGE_BUF]

Text input string being edited.

Definition at line 60 of file text_input.h.

int text_input_struct::text_flags

Text flags.

Definition at line 90 of file text_input.h.


The documentation for this struct was generated from the following file: