|
Freeciv-3.1
|
Go to the source code of this file.
Macros | |
| #define | create_edit_from_chars(background, pdest, char_string, ptsize, length, flags) |
| #define | create_edit_from_chars_fonto(background, pdest, char_string, fonto, length, flags) |
| #define | edit(pedit) edit_field(pedit) |
Enumerations | |
| enum | edit_return_codes { ED_RETURN = 1 , ED_ESC = 2 , ED_MOUSE = 3 , ED_FORCE_EXIT = 4 } |
Functions | |
| struct widget * | create_edit (SDL_Surface *background, struct gui_layer *pdest, utf8_str *pstr, int length, Uint32 flags) |
| enum edit_return_codes | edit_field (struct widget *edit_widget) |
| int | draw_edit (struct widget *pedit, Sint16 start_x, Sint16 start_y) |
| #define create_edit_from_chars | ( | background, | |
| pdest, | |||
| char_string, | |||
| ptsize, | |||
| length, | |||
| flags | |||
| ) |
Definition at line 24 of file widget_edit.h.
| #define create_edit_from_chars_fonto | ( | background, | |
| pdest, | |||
| char_string, | |||
| fonto, | |||
| length, | |||
| flags | |||
| ) |
Definition at line 29 of file widget_edit.h.
| #define edit | ( | pedit | ) | edit_field(pedit) |
Definition at line 34 of file widget_edit.h.
| enum edit_return_codes |
| Enumerator | |
|---|---|
| ED_RETURN | |
| ED_ESC | |
| ED_MOUSE | |
| ED_FORCE_EXIT | |
Definition at line 17 of file widget_edit.h.
| struct widget * create_edit | ( | SDL_Surface * | background, |
| struct gui_layer * | pdest, | ||
| utf8_str * | pstr, | ||
| int | length, | ||
| Uint32 | flags | ||
| ) |
Create ( malloc ) Edit Widget structure.
Edit Theme graphic is taken from current_theme->Edit surface; Text is taken from 'pstr'.
'length' parameter determinate width of Edit rect.
This function determinate future size of Edit ( width, height ) and save this in: pwidget->size rectangle ( SDL_Rect )
function return pointer to allocated Edit Widget.
Definition at line 350 of file widget_edit.c.
Referenced by popup_diplomatic_objects(), popup_new_user_passwd_dialog(), popup_newcity_dialog(), popup_user_passwd_dialog(), and save_cma_callback().
| int draw_edit | ( | struct widget * | pedit, |
| Sint16 | start_x, | ||
| Sint16 | start_y | ||
| ) |
set new x, y position and redraw edit.
Definition at line 392 of file widget_edit.c.
| enum edit_return_codes edit_field | ( | struct widget * | edit_widget | ) |
Handle active edit. Returns what should happen to the edit next.
Definition at line 681 of file widget_edit.c.
Referenced by widget_pressed_action().