Public Member Functions | Private Attributes

gui2::policy::placement::tvertical_list Struct Reference

Places the items in a vertical column. More...

#include <generator_private.hpp>

Inheritance diagram for gui2::policy::placement::tvertical_list:
Inheritance graph
[legend]
Collaboration diagram for gui2::policy::placement::tvertical_list:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 tvertical_list ()
void create_item (const unsigned index)
 See thorizontal_list::create_item().
void request_reduce_width (const unsigned)
 See thorizontal_list::request_reduce_width.
virtual void request_reduce_height (const unsigned)
 See thorizontal_list::request_reduce_height.
tpoint calculate_best_size () const
 See thorizontal_list::calculate_best_size().
void place (const tpoint &origin, const tpoint &size)
 See thorizontal_list::place().
void set_origin (const tpoint &origin)
 See thorizontal_list::set_origin().
void set_visible_area (const SDL_Rect &area)
 See thorizontal_list::set_visible_area().
twidgetfind_at (const tpoint &coordinate, const bool must_be_active)
 See thorizontal_list::find_at().
const twidgetfind_at (const tpoint &coordinate, const bool must_be_active) const
 See thorizontal_list::find_at().
void handle_key_up_arrow (SDLMod modifier, bool &handled)
 Inherited from tgenerator_.
void handle_key_down_arrow (SDLMod modifier, bool &handled)
 Inherited from tgenerator_.
void handle_key_left_arrow (SDLMod, bool &)
 Inherited from tgenerator_.
void handle_key_right_arrow (SDLMod, bool &)
 Inherited from tgenerator_.

Private Attributes

bool placed_
 Has the grid already been placed?

Detailed Description

Places the items in a vertical column.

Definition at line 266 of file generator_private.hpp.


Constructor & Destructor Documentation

gui2::policy::placement::tvertical_list::tvertical_list (  ) 

Definition at line 288 of file generator.cpp.


Member Function Documentation

tpoint gui2::policy::placement::tvertical_list::calculate_best_size (  )  const [virtual]

See thorizontal_list::calculate_best_size().

Implements gui2::tgenerator_.

Definition at line 303 of file generator.cpp.

void gui2::policy::placement::tvertical_list::create_item ( const unsigned  index  ) 

See thorizontal_list::create_item().

Todo:
implement.

Definition at line 293 of file generator.cpp.

twidget * gui2::policy::placement::tvertical_list::find_at ( const tpoint coordinate,
const bool  must_be_active 
) [virtual]

See thorizontal_list::find_at().

Implements gui2::tgenerator_.

Definition at line 387 of file generator.cpp.

const twidget * gui2::policy::placement::tvertical_list::find_at ( const tpoint coordinate,
const bool  must_be_active 
) const [virtual]

See thorizontal_list::find_at().

Implements gui2::tgenerator_.

Definition at line 410 of file generator.cpp.

void gui2::policy::placement::tvertical_list::handle_key_down_arrow ( SDLMod  modifier,
bool &  handled 
) [virtual]

Inherited from tgenerator_.

Implements gui2::tgenerator_.

Definition at line 453 of file generator.cpp.

void gui2::policy::placement::tvertical_list::handle_key_left_arrow ( SDLMod  ,
bool &   
) [inline, virtual]

Inherited from tgenerator_.

Implements gui2::tgenerator_.

Definition at line 310 of file generator_private.hpp.

void gui2::policy::placement::tvertical_list::handle_key_right_arrow ( SDLMod  ,
bool &   
) [inline, virtual]

Inherited from tgenerator_.

Implements gui2::tgenerator_.

Definition at line 314 of file generator_private.hpp.

void gui2::policy::placement::tvertical_list::handle_key_up_arrow ( SDLMod  modifier,
bool &  handled 
) [virtual]

Inherited from tgenerator_.

Implements gui2::tgenerator_.

Definition at line 432 of file generator.cpp.

void gui2::policy::placement::tvertical_list::place ( const tpoint origin,
const tpoint size 
) [virtual]

See thorizontal_list::place().

Implements gui2::tgenerator_.

Definition at line 326 of file generator.cpp.

virtual void gui2::policy::placement::tvertical_list::request_reduce_height ( const   unsigned  )  [inline, virtual]
void gui2::policy::placement::tvertical_list::request_reduce_width ( const   unsigned  )  [inline, virtual]
void gui2::policy::placement::tvertical_list::set_origin ( const tpoint origin  )  [virtual]

See thorizontal_list::set_origin().

Implements gui2::tgenerator_.

Definition at line 357 of file generator.cpp.

void gui2::policy::placement::tvertical_list::set_visible_area ( const SDL_Rect &  area  )  [virtual]

See thorizontal_list::set_visible_area().

Implements gui2::tgenerator_.

Definition at line 372 of file generator.cpp.


Member Data Documentation

Has the grid already been placed?

If the grid is placed it's no problem set the location of the new item,it hasn't been placed, there's no information about its location so do nothing.

Definition at line 330 of file generator_private.hpp.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:23:43 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs