Support for different cursors-shapes. More...
#include "cursor.hpp"#include "picture.hpp"#include "preferences/preferences.hpp"#include "sdl/utils.hpp"#include "video.hpp"#include <boost/logic/tribool.hpp>#include <SDL3/SDL_mouse.h>#include <array>#include <memory>Go to the source code of this file.
Namespaces | |
| namespace | cursor |
Functions | |
| void | cursor::set (CURSOR_TYPE type=NUM_CURSORS) |
| Use the default parameter to reset cursors. | |
| void | cursor::set_dragging (bool drag) |
| CURSOR_TYPE | cursor::get () |
| void | cursor::set_focus (bool focus) |
Support for different cursors-shapes.
Definition in file cursor.cpp.
| cursor_ptr cursor {nullptr, SDL_DestroyCursor} |
Definition at line 51 of file cursor.cpp.
| int hot_x {0} |
Definition at line 44 of file cursor.cpp.
| int hot_y {0} |
Definition at line 45 of file cursor.cpp.
| std::string image_bw |
Definition at line 41 of file cursor.cpp.
| std::string image_color |
Definition at line 42 of file cursor.cpp.
| boost::tribool is_color {boost::indeterminate} |
Definition at line 47 of file cursor.cpp.
| int scale {0} |
Definition at line 48 of file cursor.cpp.
Referenced by font::add_attribute_image_shape(), video::draw_offset(), image::prep_minimap_for_rendering(), rotate_any_surface(), prefs::set_font_scaling(), prefs::set_pixel_scale(), shadow_image(), and video::update_framebuffer().