Classes | |
struct | manager |
struct | setter |
Enumerations | |
enum | CURSOR_TYPE { NORMAL, WAIT, MOVE, ATTACK, HYPERLINK, MOVE_DRAG, ATTACK_DRAG, NO_CURSOR, NUM_CURSORS } |
Functions | |
void | temporary_use_bw () |
This function uses temporary the b&w cursors while the display is busy. | |
void | set (CURSOR_TYPE type=NUM_CURSORS) |
Use the default parameter to reset cursors. | |
void | set_dragging (bool drag) |
CURSOR_TYPE | get () |
void | set_focus (bool focus) |
void | draw (surface screen) |
void | undraw (surface screen) |
enum cursor::CURSOR_TYPE |
Definition at line 33 of file cursor.hpp.
void cursor::draw | ( | surface | screen | ) |
Definition at line 227 of file cursor.cpp.
References colour_images, colour_ready, create_compatible_surface(), current_cursor, cursor_buf, cursor_x, cursor_y, image::get_image(), have_focus, NORMAL, NUM_CURSORS, preferences::set_colour_cursors(), shift_x, shift_y, update_rect(), and use_colour_cursors().
Referenced by gui2::tpanel::draw(), gui2::tlistbox::draw(), gui2::tcontainer_::draw(), gui2::twindow::flip(), display::flip(), map_editor::new_map_dialog(), map_editor::resize_dialog(), gui2::tstate_definition::tstate_definition(), and default_map_generator::user_config().
CURSOR_TYPE cursor::get | ( | ) |
Definition at line 203 of file cursor.cpp.
References current_cursor.
Referenced by events::mouse_handler::mouse_motion().
void cursor::set | ( | CURSOR_TYPE | type | ) |
Use the default parameter to reset cursors.
Definition at line 162 of file cursor.cpp.
References colour_ready, current_cursor, get_cursor(), NO_CURSOR, NORMAL, NUM_CURSORS, type, and use_colour_cursors().
Referenced by events::mouse_handler::attack_enemy_(), events::mouse_handler::mouse_motion(), events::mouse_handler::move_unit_along_current_route(), play_game(), preferences::set_colour_cursors(), set_dragging(), about::show_about(), gui::show_title(), and help::help_browser::update_cursor().
void cursor::set_dragging | ( | bool | drag | ) |
Definition at line 183 of file cursor.cpp.
References ATTACK, ATTACK_DRAG, current_cursor, MOVE, MOVE_DRAG, and set().
Referenced by events::mouse_handler::left_click(), events::mouse_handler::mouse_motion(), and events::mouse_handler::mouse_press().
void cursor::set_focus | ( | bool | focus | ) |
Definition at line 208 of file cursor.cpp.
References colour_ready, and have_focus.
Referenced by events::pump().
void cursor::temporary_use_bw | ( | ) |
This function uses temporary the b&w cursors while the display is busy.
Definition at line 156 of file cursor.cpp.
References colour_ready.
void cursor::undraw | ( | surface | screen | ) |
Definition at line 289 of file cursor.cpp.
References current_cursor, cursor_buf, cursor_x, cursor_y, shift_x, shift_y, update_rect(), and use_colour_cursors().
Referenced by gui2::twindow::flip(), and display::flip().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |