Atrinik Client  4.0
Functions
color_chooser.c File Reference
#include <global.h>
#include <toolkit/colorspace.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)
 
color_picker_structcolor_chooser_open (void)
 

Detailed Description

Color chooser popup.

Author
Alex Tokar

Definition in file color_chooser.c.

Function Documentation

color_picker_struct* color_chooser_open ( void  )

Open a color chooser popup.

Returns
Allocated color picker.

Definition at line 75 of file color_chooser.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 36 of file color_chooser.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 57 of file color_chooser.c.