Public Member Functions | |
trow (const tbuilder_grid &list_builder_, const t_string &label) | |
void | select (const bool sel=true) |
tgrid * | grid () |
const tgrid * | grid () const |
void | set_height (const unsigned height) |
unsigned | get_height () const |
const surface & | canvas () const |
surface & | canvas () |
bool | get_selected () const |
Private Member Functions | |
void | init_in_grid (tgrid *grid, const t_string &label) |
void | select_in_grid (tgrid *grid, const bool sel) |
Private Attributes | |
tgrid * | grid_ |
unsigned | height_ |
surface | canvas_ |
bool | selected_ |
Definition at line 197 of file listbox.hpp.
gui2::tlistbox::trow::trow | ( | const tbuilder_grid & | list_builder_, | |
const t_string & | label | |||
) |
void gui2::tlistbox::trow::select | ( | const bool | sel = true |
) |
tgrid* gui2::tlistbox::trow::grid | ( | ) | [inline] |
Definition at line 204 of file listbox.hpp.
References grid_.
Referenced by gui2::tlistbox::add_item(), gui2::tlistbox::draw(), gui2::tlistbox::find_widget(), gui2::tlistbox::get_best_size(), and gui2::tlistbox::set_size().
const tgrid* gui2::tlistbox::trow::grid | ( | ) | const [inline] |
void gui2::tlistbox::trow::set_height | ( | const unsigned | height | ) | [inline] |
Definition at line 207 of file listbox.hpp.
References height_.
Referenced by gui2::tlistbox::set_size().
unsigned gui2::tlistbox::trow::get_height | ( | ) | const [inline] |
Definition at line 208 of file listbox.hpp.
References height_.
Referenced by gui2::tlistbox::draw(), and gui2::tlistbox::find_widget().
const surface& gui2::tlistbox::trow::canvas | ( | ) | const [inline] |
Definition at line 210 of file listbox.hpp.
References canvas_.
Referenced by gui2::tlistbox::draw(), and gui2::tlistbox::set_size().
surface& gui2::tlistbox::trow::canvas | ( | ) | [inline] |
bool gui2::tlistbox::trow::get_selected | ( | ) | const [inline] |
Definition at line 511 of file listbox.cpp.
References gui2::callback_select_list_item(), gui2::tgrid::get_cols(), gui2::tgrid::get_rows(), gui2::ttoggle_button::set_callback_mouse_left_click(), gui2::tcontrol::set_label(), and gui2::tgrid::widget().
Referenced by trow().
void gui2::tlistbox::trow::select_in_grid | ( | tgrid * | grid, | |
const bool | sel | |||
) | [private] |
Definition at line 542 of file listbox.cpp.
References gui2::tgrid::get_cols(), gui2::tgrid::get_rows(), gui2::tselectable_::set_selected(), and gui2::tgrid::widget().
Referenced by select().
tgrid* gui2::tlistbox::trow::grid_ [private] |
unsigned gui2::tlistbox::trow::height_ [private] |
surface gui2::tlistbox::trow::canvas_ [private] |
bool gui2::tlistbox::trow::selected_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |