Classes | |
struct | manager |
struct | setter |
Enumerations | |
enum | CURSOR_TYPE { NORMAL , WAIT , IBEAM , 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) |
enum cursor::CURSOR_TYPE |
Enumerator | |
---|---|
NORMAL | |
WAIT | |
IBEAM | |
MOVE | |
ATTACK | |
HYPERLINK | |
MOVE_DRAG | |
ATTACK_DRAG | |
NO_CURSOR | |
NUM_CURSORS |
Definition at line 28 of file cursor.hpp.
CURSOR_TYPE cursor::get | ( | ) |
Definition at line 216 of file cursor.cpp.
Referenced by wb::suppose_dead::apply_temp_modifier(), gui2::iteration::policy::order::bottom_up< VW, VG, VC >::bottom_up(), game_display::draw_hex(), gui2::get_hp_tooltip(), gui2::get_mp_tooltip(), gui::textbox::handle_event(), impl_sndsrc_get(), gui2::dialogs::unit_list::list_item_clicked(), events::mouse_handler::mouse_motion(), gui2::iteration::policy::order::bottom_up< VW, VG, VC >::next(), gui2::iteration::policy::order::top_down< VW, VG, VC >::next(), gui2::iteration::policy::order::bottom_up< VW, VG, VC >::operator*(), gui2::iteration::policy::order::top_down< VW, VG, VC >::operator*(), gamemap::read(), events::menu_handler::recall(), register_lua_attribute(), events::mouse_handler::touch_motion(), ai::try_aspect_as(), gui2::label::update_mouse_cursor(), gui2::rich_label::update_mouse_cursor(), gui2::text_box_base::update_mouse_cursor(), attack_type::weapon_specials_impl_adj(), and gui::textbox::~textbox().
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 176 of file cursor.cpp.
References NORMAL, and NUM_CURSORS.
Referenced by unit::apply_builtin_effect(), do_gameloop(), do_interpolation(), editor::editor_controller::editor_controller(), gui::textbox::handle_event(), 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(), prefs::set_color_cursors(), set_dragging(), set_focus(), cursor::setter::setter(), gui2::multiline_text::signal_handler_mouse_motion(), events::mouse_handler::teleport_action(), events::mouse_handler::touch_motion(), gui2::combobox::update_mouse_cursor(), gui2::label::update_mouse_cursor(), gui2::rich_label::update_mouse_cursor(), gui2::text_box_base::update_mouse_cursor(), cursor::setter::~setter(), and gui::textbox::~textbox().
void cursor::set_dragging | ( | bool | drag | ) |
Definition at line 196 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 | ) |