Adonthell  0.4
win_select Class Reference
Inheritance diagram for win_select:
Collaboration diagram for win_select:

List of all members.

Public Member Functions

bool input_update ()
 Input Update process
void add (win_base *w)
void remove (win_base *w)
void remove_all ()
void set_mode (const u_int8 mode)
void set_border_select (win_border *border)
void set_circle (const bool b)
bool is_circle ()
void set_default ()
void set_default_object (const win_base *wb)
void set_default_position (const u_int16 pos)
void set_pos (const u_int8 pos)
bool update ()
 Update process.
win_baseget_selected_object ()
u_int16 get_selected_position ()
- Public Member Functions inherited from win_scroll
u_int16 amplitude ()
void resize (u_int16 tl, u_int16 th)
 Rezise the win_*.
void destroy ()
bool draw ()
 Draw process.
void set_space_between_border (u_int16)
void set_space_between_object (u_int16)
u_int16 cursor_y ()
void set_auto_scrollbar (bool b)
void set_auto_refresh (bool b)
void set_brightness (bool b)
 Set the transluency parameter.
void set_trans (bool b)
 Set the transluency parameter.
- Public Member Functions inherited from win_container
void move (s_int16, s_int16)
 Move the win_*.
void set_visible_all (bool b)
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_basefocus_object ()
- Public Member Functions inherited from win_base
 win_base ()
 Default constructor:
s_int16 x () const
 Return the relative horizontal position of the win_*.
s_int16 y () const
 Return the relative vertical position of the win_*.
s_int16pad_x ()
 Return the pad horizontal position of the win_*.
s_int16pad_y ()
 Return the pad vertical position of the win_*.
s_int16 real_x () const
 Return the horizontal position of the win_*.
s_int16 real_y () const
 Return the vertical position of the win_*.
bool is_visible () const
 Test if win_* is visible.
void set_visible (const bool b)
 Set the visible parameter.
bool is_activate () const
 Test if win_* is activated.
void set_activate (const bool b)
 Set the activate parameter When a win_* is setup on, the keys queue is cleared.
bool is_focus () const
 Test if win_* has focus on.
void set_focus (const bool b)
 Set the focus parameter.
bool is_trans () const
 Test if win_* has focus on.
bool is_brightness () const
 Test if win_* is in brightness.
void set_align (const u_int8 a)
 Set alignement of win_*.
u_int8 align () const
 Return alignment of win_*.
bool is_can_be_selected () const
 Test if win_* can be selected.
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.
void set_manager (win_manager *)
- Public Member Functions inherited from win_event
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)
void py_signal_connect (PyObject *pyfunc, int signal, PyObject *args=NULL)
- Public Member Functions inherited from win_border
 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 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 ()
- Public Member Functions inherited from drawing_area
 drawing_area ()
 Default constructor.
 drawing_area (s_int16 px, s_int16 py, u_int16 pw, u_int16 ph)
 Builds a drawing_area from the parameters.
u_int16 length () const
 Returns the length of the drawing_area.
u_int16 height () const
 Returns the height of the drawing_area.
void assign_drawing_area (const drawing_area *da)
 Assign a drawing_area to this drawing_area.
drawing_areaassigned_drawing_area () const
 Returns a pointer to the drawing_area assigned to this one.
void detach_drawing_area ()
 Detach (if needed) the drawing_area which was attached to this one.
drawing_areaoperator= (SDL_Rect &r)
 Convert an SDL_Rect into a drawing_area.
SDL_Rect setup_rects () const
 Gets the real parameters of this drawing_area.
- Public Member Functions inherited from win_background
 win_background (win_base *)
 win_background (win_background &)
 win_background (char *rep)
void load (char *)
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)
- Public Member Functions inherited from win_scrollbar
 win_scrollbar (win_scroll *)
 win_scrollbar (win_scrollbar &)
 win_scrollbar (char *rep)
void update_bar ()
void load (char *)
void update_back ()
void set_scrollbar (win_scrollbar &)
void set_scrollbar (win_theme &wt)
void set_visible_scrollbar (bool b)
void set_trans_scrollbar (bool b)
void set_brightness_scrollbar (bool b)
void draw (drawing_area *da=NULL)
u_int16 height_bar ()

Static Public Attributes

static const u_int8 MODE_BORDER = 0
static const u_int8 MODE_BRIGHTNESS = 1
- Static Public Attributes inherited from win_scroll
static const u_int8 PAD_DEFAULT = 5
- Static Public Attributes inherited from win_container
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
- Static Public Attributes inherited from win_base
static const u_int8 ALIGN_NONE = 0
static const u_int8 ALIGN_LEFT = 1
static const u_int8 ALIGN_CENTER = 2
static const u_int8 ALIGN_RIGHT = 3
- Static Public Attributes inherited from win_event
static const u_int8 ACTIVATE = 1
static const u_int8 UNACTIVATE = 2
static const u_int8 UPDATE = 3
static const u_int8 DRAW = 4
static const u_int8 DRAW_ON_VISIBLE = 5
static const u_int8 ACTIVATE_KEY = 6
static const u_int8 SELECT = 7
static const u_int8 UNSELECT = 8
static const u_int8 KEYBOARD = 9
static const u_int8 SCROLL_UP = 10
static const u_int8 SCROLL_DOWN = 11
static const u_int8 NEXT = 12
static const u_int8 PREVIOUS = 13
static const u_int8 CLOSE = 14
static const u_int8 DESTROY = 15
- Static Public Attributes inherited from win_border
static const u_int8 MINI = 0
static const u_int8 NORMAL = 1

Protected Member Functions

void rules (const bool b, win_base *wb)
void update_cur_select_position ()
void next ()
void previous ()
void activate ()
- Protected Member Functions inherited from win_scroll
bool up ()
bool down ()
void find_amplitude ()
void update_amplitude ()
- Protected Member Functions inherited from win_container
void update_position ()
void update_layout ()
- Protected Member Functions inherited from win_base
void update_align ()
void set_container (win_container *wc)
- Protected Member Functions inherited from win_event
virtual void on_activate ()
virtual void on_unactivate ()
virtual void on_update ()
virtual void on_draw_visible ()
virtual void on_draw ()
virtual void on_activate_key ()
virtual void on_select ()
virtual void on_unselect ()
virtual void on_up ()
virtual void on_down ()
virtual void on_next ()
virtual void on_previous ()

Protected Attributes

u_int8 mode_
bool circle_
bool finish_scroll_
win_borderborder_select_
lwb::iterator cur_select_
- Protected Attributes inherited from win_scroll
u_int16 max_amplitude_
u_int16 cur_amplitude_
u_int16 index_pad_
u_int16 cursor_y_
bool auto_scrollbar_
bool auto_refresh_
- Protected Attributes inherited from win_container
u_int16 space_with_object_
u_int16 space_with_border_
u_int8 layout_
lwb list_wb_
win_basefocus_object_
- Protected Attributes inherited from win_base
s_int16 x_
s_int16 y_
s_int16 pad_x_
s_int16 pad_y_
u_int8 align_
bool visible_
bool focus_
bool activate_
bool brightness_
bool trans_
bool can_be_selected_
win_containerwb_father_
win_managermanager_
- Protected Attributes inherited from win_event
vector< py_callback * > py_callbacks
Functor0 callback_ [20]
Functor0wRet< bool > callback_destroy_
Functor1< int > callback_quit_
int return_code_

Detailed Description

Definition at line 20 of file win_select.h.


Member Function Documentation

bool win_select::input_update ( )
virtual

Input Update process

Reimplemented from win_scroll.

Definition at line 173 of file win_select.cc.

bool win_select::update ( )
virtual

Update process.

Returns:
true if update is successful, false otherwise

Reimplemented from win_scroll.

Definition at line 298 of file win_select.cc.


The documentation for this class was generated from the following files: