Public Member Functions

gui2::policy::placement::tindependent Struct Reference

Places the items independent of eachother. More...

#include <generator_private.hpp>

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

List of all members.

Public Member Functions

void create_item (const unsigned)
 See thorizontal_list::create_item().
void request_reduce_width (const unsigned maximum_width)
 See thorizontal_list::request_reduce_width.
virtual void request_reduce_height (const unsigned maximum_height)
 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().
twidgetfind (const std::string &id, const bool must_be_active)
 Gets a widget with the wanted id.
const twidgetfind (const std::string &id, const bool must_be_active) const
 The const version of find.
void handle_key_up_arrow (SDLMod, bool &)
 Inherited from tgenerator_.
void handle_key_down_arrow (SDLMod, bool &)
 Inherited from tgenerator_.
void handle_key_left_arrow (SDLMod, bool &)
 Inherited from tgenerator_.
void handle_key_right_arrow (SDLMod, bool &)
 Inherited from tgenerator_.

Detailed Description

Places the items independent of eachother.

This is mainly meant for when only one item is shown at the same time.

Todo:
Implement.

Definition at line 404 of file generator_private.hpp.


Member Function Documentation

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

See thorizontal_list::calculate_best_size().

Implements gui2::tgenerator_.

Definition at line 498 of file generator.cpp.

void gui2::policy::placement::tindependent::create_item ( const   unsigned  )  [inline]

See thorizontal_list::create_item().

Definition at line 408 of file generator_private.hpp.

twidget * gui2::policy::placement::tindependent::find ( const std::string &  id,
const bool  bool 
) [virtual]

Gets a widget with the wanted id.

Parameters:
id The id of the widget to find.
must_be_active The widget should be active, not all widgets have an active flag, those who don't ignore flag.
Returns:
The widget with the id.
Return values:
0 No widget with the id found (or not active if must_be_active was set).

Reimplemented from gui2::twidget.

Definition at line 575 of file generator.cpp.

const twidget * gui2::policy::placement::tindependent::find ( const std::string &  id,
const bool  bool 
) const [virtual]

The const version of find.

Reimplemented from gui2::twidget.

Definition at line 588 of file generator.cpp.

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

See thorizontal_list::find_at().

Implements gui2::tgenerator_.

Definition at line 547 of file generator.cpp.

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

See thorizontal_list::find_at().

Implements gui2::tgenerator_.

Definition at line 561 of file generator.cpp.

void gui2::policy::placement::tindependent::handle_key_down_arrow ( SDLMod  ,
bool &   
) [inline, virtual]

Inherited from tgenerator_.

Implements gui2::tgenerator_.

Definition at line 451 of file generator_private.hpp.

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

Inherited from tgenerator_.

Implements gui2::tgenerator_.

Definition at line 457 of file generator_private.hpp.

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

Inherited from tgenerator_.

Implements gui2::tgenerator_.

Definition at line 463 of file generator_private.hpp.

void gui2::policy::placement::tindependent::handle_key_up_arrow ( SDLMod  ,
bool &   
) [inline, virtual]

Inherited from tgenerator_.

Implements gui2::tgenerator_.

Definition at line 445 of file generator_private.hpp.

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

See thorizontal_list::place().

Implements gui2::tgenerator_.

Definition at line 523 of file generator.cpp.

void gui2::policy::placement::tindependent::request_reduce_height ( const unsigned  maximum_height  )  [virtual]

See thorizontal_list::request_reduce_height.

Implements gui2::tgenerator_.

Definition at line 489 of file generator.cpp.

void gui2::policy::placement::tindependent::request_reduce_width ( const unsigned  maximum_width  )  [virtual]

See thorizontal_list::request_reduce_width.

Implements gui2::tgenerator_.

Definition at line 480 of file generator.cpp.

void gui2::policy::placement::tindependent::set_origin ( const tpoint origin  )  [virtual]

See thorizontal_list::set_origin().

Implements gui2::tgenerator_.

Definition at line 532 of file generator.cpp.

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

See thorizontal_list::set_visible_area().

Implements gui2::tgenerator_.

Definition at line 603 of file generator.cpp.


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