Classes | |
struct | manager |
struct | setter |
Enumerations | |
enum | CURSOR_TYPE { NORMAL, WAIT, MOVE, ATTACK, HYPERLINK, MOVE_DRAG, ATTACK_DRAG, NO_CURSOR, NUM_CURSORS } |
Functions | |
void | set (CURSOR_TYPE type=NUM_CURSORS) |
Use the default parameter to reset cursors. More... | |
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 |
Enumerator | |
---|---|
NORMAL | |
WAIT | |
MOVE | |
ATTACK | |
HYPERLINK | |
MOVE_DRAG | |
ATTACK_DRAG | |
NO_CURSOR | |
NUM_CURSORS |
Definition at line 31 of file cursor.hpp.
CURSOR_TYPE cursor::get | ( | ) |
Definition at line 194 of file cursor.cpp.
Referenced by game_display::draw_hex(), gui2::event::implementation::find< false >::execute(), wesnothd::ban_manager::is_ip_banned(), events::mouse_handler::mouse_motion(), gui2::iterator::policy::order::tbottom_up< visit_widget, visit_grid, visit_child >::next(), gui2::iterator::policy::order::ttop_down< visit_widget, visit_grid, visit_child >::next(), gui2::iterator::policy::order::tbottom_up< visit_widget, visit_grid, visit_child >::operator*(), gui2::iterator::policy::order::ttop_down< visit_widget, visit_grid, visit_child >::operator*(), gui2::iterator::policy::order::tbottom_up< visit_widget, visit_grid, visit_child >::tbottom_up(), and wesnothd::ban_manager::unban_group().
void cursor::set | ( | CURSOR_TYPE | type = NUM_CURSORS | ) |
Use the default parameter to reset cursors.
e.g. after a change in color cursor preferences
Definition at line 154 of file cursor.cpp.
References get_cursor(), NORMAL, and NUM_CURSORS.
Referenced by unit::apply_builtin_effect(), do_gameloop(), events::chat_command_handler::do_set(), editor::editor_controller::editor_controller(), wesnothd::server::handle_nickserv(), utils::interpolate_variables_into_string(), cursor::manager::manager(), events::mouse_handler::mouse_motion(), events::mouse_handler::move_unit_along_route(), game_launcher::play_multiplayer(), game_launcher::play_multiplayer_commandline(), preferences::set_color_cursors(), set_dragging(), set_focus(), hotkey::set_scope_active(), cursor::setter::setter(), gui2::setup_pref_toggle_button(), help::help_browser::update_cursor(), and cursor::setter::~setter().
void cursor::set_dragging | ( | bool | drag | ) |
Definition at line 174 of file cursor.cpp.
References ATTACK, ATTACK_DRAG, MOVE, MOVE_DRAG, and set().
Referenced by events::mouse_handler_base::cancel_dragging(), events::mouse_handler_base::clear_dragging(), events::mouse_handler_base::mouse_motion_default(), and events::mouse_handler_base::mouse_press().
void cursor::set_focus | ( | bool | focus | ) |