Adonthell
0.4
|
The gui for loading/saving games. More...
#include <data_screen.h>
Public Member Functions | |
data_screen (int m) | |
Constructor. More... | |
~data_screen () | |
Destructor. More... | |
bool | update () |
React to input. More... | |
bool | get_result () |
Returns the player's action. More... | |
![]() | |
void | move (s_int16, s_int16) |
Move the win_*. More... | |
void | resize (u_int16, u_int16) |
Rezise the win_*. More... | |
virtual void | add (win_base *) |
virtual void | remove (win_base *) |
virtual void | remove_all () |
virtual void | destroy () |
virtual bool | input_update () |
Input Update process More... | |
virtual bool | draw () |
Draw process. More... | |
void | set_visible_all (bool b) |
virtual void | set_brightness (bool b) |
Set the transluency parameter. More... | |
virtual void | set_trans (bool b) |
Set the transluency parameter. More... | |
virtual void | set_space_with_border (u_int16 b) |
virtual void | set_space_with_object (u_int16 o) |
u_int16 | space_with_border () |
u_int16 | space_with_object () |
void | set_layout (u_int8 l) |
void | set_focus_object (win_base *f) |
win_base * | focus_object () |
![]() | |
win_base () | |
Default constructor: More... | |
s_int16 | x () const |
Return the relative horizontal position of the win_*. More... | |
s_int16 | y () const |
Return the relative vertical position of the win_*. More... | |
s_int16 & | pad_x () |
Return the pad horizontal position of the win_*. More... | |
s_int16 & | pad_y () |
Return the pad vertical position of the win_*. More... | |
s_int16 | real_x () const |
Return the horizontal position of the win_*. More... | |
s_int16 | real_y () const |
Return the vertical position of the win_*. More... | |
bool | is_visible () const |
Test if win_* is visible. More... | |
void | set_visible (const bool b) |
Set the visible parameter. More... | |
bool | is_activate () const |
Test if win_* is activated. More... | |
void | set_activate (const bool b) |
Set the activate parameter When a win_* is setup on, the keys queue is cleared. More... | |
bool | is_focus () const |
Test if win_* has focus on. More... | |
void | set_focus (const bool b) |
Set the focus parameter. More... | |
bool | is_trans () const |
Test if win_* has focus on. More... | |
bool | is_brightness () const |
Test if win_* is in brightness. More... | |
void | set_align (const u_int8 a) |
Set alignement of win_*. More... | |
u_int8 | align () const |
Return alignment of win_*. More... | |
bool | is_can_be_selected () const |
Test if win_* can be selected. More... | |
void | set_can_be_selected (const bool b) |
Set the object to be selected A win_obj can be selectable or not when it is inside a win_select. More... | |
void | set_manager (win_manager *) |
![]() | |
void | set_return_code (int rc) |
void | set_signal_connect (const Functor0 &func, u_int8 signal) |
void | set_callback_destroy (const Functor0wRet< bool > &func) |
void | set_callback_quit (const Functor1< int > &func) |
bool | update () |
void | py_signal_connect (PyObject *pyfunc, int signal, PyObject *args=NULL) |
![]() | |
win_border (win_base *wb) | |
win_border (win_border &) | |
win_border (char *rep, const char *size=WIN_BORDER_NORMAL_SIZE) | |
void | load (char *, const char *) |
void | update () |
void | destroy () |
void | draw (drawing_area *da) |
void | set_visible_border (bool b) |
void | set_brightness_border (bool b) |
void | set_border (win_border &) |
void | set_border (win_theme &wth, u_int8 size=win_border::NORMAL) |
void | set_trans_border (bool b) |
u_int16 | length_border () |
u_int16 | height_border () |
![]() | |
drawing_area () | |
Default constructor. More... | |
drawing_area (s_int16 px, s_int16 py, u_int16 pw, u_int16 ph) | |
Builds a drawing_area from the parameters. More... | |
s_int16 | x () const |
Returns the horizontal position of the drawing_area. More... | |
s_int16 | y () const |
Returns the vertical position of the drawing_area. More... | |
u_int16 | length () const |
Returns the length of the drawing_area. More... | |
u_int16 | height () const |
Returns the height of the drawing_area. More... | |
void | move (s_int16 nx, s_int16 ny) |
Move the drawing_area. More... | |
void | resize (u_int16 nl, u_int16 nh) |
Resize the drawing_area. More... | |
void | assign_drawing_area (const drawing_area *da) |
Assign a drawing_area to this drawing_area. More... | |
drawing_area * | assigned_drawing_area () const |
Returns a pointer to the drawing_area assigned to this one. More... | |
void | detach_drawing_area () |
Detach (if needed) the drawing_area which was attached to this one. More... | |
drawing_area & | operator= (SDL_Rect &r) |
Convert an SDL_Rect into a drawing_area. More... | |
SDL_Rect | setup_rects () const |
Gets the real parameters of this drawing_area. More... | |
![]() | |
win_background (win_base *) | |
win_background (win_background &) | |
win_background (char *rep) | |
void | load (char *) |
void | update () |
void | destroy () |
void | draw (drawing_area *da=NULL) |
void | set_visible_background (bool b) |
void | set_background (win_background &) |
void | set_background (win_theme &wt) |
void | set_brightness_background (bool b) |
void | set_trans_background (bool b) |
Additional Inherited Members | |
![]() | |
static const u_int8 | SPACE_WITH_BORDER = 10 |
static const u_int8 | SPACE_WITH_OBJECT = 10 |
static const u_int8 | LIST_LAYOUT = 1 |
static const u_int8 | NO_LAYOUT = 0 |
![]() | |
void | update_position () |
void | update_layout () |
![]() | |
u_int16 | space_with_object_ |
u_int16 | space_with_border_ |
u_int8 | layout_ |
lwb | list_wb_ |
win_base * | focus_object_ |
The gui for loading/saving games.
Definition at line 48 of file data_screen.h.
data_screen::data_screen | ( | int | m) |
Constructor.
m | LOAD_SCREEN or SAVE_SCREEN, depending on whether you want to save or load a game. |
Definition at line 38 of file data_screen.cc.
data_screen::~data_screen | ( | ) |
Destructor.
Definition at line 95 of file data_screen.cc.
|
virtual |
|
inline |
Returns the player's action.
Definition at line 79 of file data_screen.h.