载入中...
搜索中...
未找到
eve::mouse::sdl::Cursor类 参考
SDL 鼠标光标实现(自定义图像或系统光标)。 更多...
#include <Cursor.h>
类 eve::mouse::sdl::Cursor 继承关系图:
Public 成员函数 | |
| Cursor (image::ImageData *imageData, int hotx, int hoty) | |
| 从图像数据创建自定义光标(热点 hotx/hoty)。 | |
| Cursor (std::string cursortype) | |
| 创建系统光标(类型如 "arrow" / "ibeam")。 | |
| ~Cursor () | |
| void * | getHandle () const |
| 底层 SDL_Cursor 句柄。 | |
| bool | isCustom () const override |
| 是否自定义 / 系统光标类型名。 | |
| std::string | getSystemType () const override |
| Returns the type of system cursor used, if this Cursor is using a system-defined image. | |
详细描述
构造及析构函数说明
◆ Cursor() [1/2]
| eve::mouse::sdl::Cursor::Cursor | ( | image::ImageData * | imageData, |
| int | hotx, | ||
| int | hoty | ||
| ) |
从图像数据创建自定义光标(热点 hotx/hoty)。
在文件 Cursor.cpp 第 9 行定义.
◆ Cursor() [2/2]
| eve::mouse::sdl::Cursor::Cursor | ( | std::string | cursortype | ) |
创建系统光标(类型如 "arrow" / "ibeam")。
在文件 Cursor.cpp 第 42 行定义.
◆ ~Cursor()
|
virtual |
重载 eve::mouse::Cursor .
在文件 Cursor.cpp 第 56 行定义.
成员函数说明
◆ getHandle()
|
virtual |
◆ getSystemType()
|
inlineoverridevirtual |
Returns the type of system cursor used, if this Cursor is using a system-defined image.
实现了 eve::mouse::Cursor.
◆ isCustom()
|
inlineoverridevirtual |
该类的文档由以下文件生成:
- src/modules/mouse/sdl/Cursor.h
- src/modules/mouse/sdl/Cursor.cpp