Atrinik Client  4.0
Functions | Variables
server_add.c File Reference
#include <global.h>
#include <toolkit/string.h>

Go to the source code of this file.

Functions

static int popup_draw (popup_struct *popup)
 
static int popup_event (popup_struct *popup, SDL_Event *event)
 
static int popup_destroy_callback (popup_struct *popup)
 
void server_add_open (void)
 

Variables

static text_input_struct text_input_server_host
 
static text_input_struct text_input_server_port
 
static button_struct button_add
 

Detailed Description

Handles the popup that appears when one clicks "Server" button in the main intro screen.

Definition in file server_add.c.

Function Documentation

static int popup_destroy_callback ( popup_struct popup)
static

Function used right before the visible popup is destroyed using popup_destroy_visible().

Parameters
popupThe popup.
Returns
1 to proceed with the destruction of the popup, 0 otherwise.

Definition at line 119 of file server_add.c.

static int popup_draw ( popup_struct popup)
static

Function used for drawing on the popup's surface.

Parameters
popupThe popup.
Returns
0 to destroy the popup, 1 otherwise.

Definition at line 40 of file server_add.c.

static int popup_event ( popup_struct popup,
SDL_Event *  event 
)
static

Function used for handling mouse/key events when popup is visible.

Parameters
eventSDL event.
Return values
-1Did not handle the event.
0Did not handle the event, but allow other keyboard events.
1Handled the event.

Definition at line 72 of file server_add.c.

void server_add_open ( void  )

Open the server add popup.

Definition at line 132 of file server_add.c.

Variable Documentation

button_struct button_add
static

Add button.

Definition at line 37 of file server_add.c.

text_input_struct text_input_server_host
static

Text input buffers.

Definition at line 35 of file server_add.c.