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 29 of file cursor.hpp.
CURSOR_TYPE cursor::get | ( | ) |
Definition at line 216 of file cursor.cpp.
Referenced by gui2::iteration::policy::order::bottom_up< VW, VG, VC >::bottom_up(), game_display::draw_hex(), gui::textbox::handle_event(), 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*(), events::mouse_handler::touch_motion(), gui2::label::update_mouse_cursor(), gui2::text_box_base::update_mouse_cursor(), 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 do_gameloop(), editor::editor_controller::editor_controller(), gui::textbox::handle_event(), 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(), events::mouse_handler::touch_motion(), help::help_browser::update_cursor(), gui2::label::update_mouse_cursor(), gui2::text_box_base::update_mouse_cursor(), 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 | ) |
Definition at line 221 of file cursor.cpp.
Referenced by events::pump().