载入中...
搜索中...
未找到
eve::mouse::sdl::Cursor类 参考
SDL mouse cursor (custom image or named system cursor). 更多...
#include <Cursor.h>
类 eve::mouse::sdl::Cursor 继承关系图:
Public 成员函数 | |
| Cursor (image::ImageData *imageData, int hotx, int hoty) | |
| Builds a custom cursor from image data with hotspot (hotx, hoty). | |
| Cursor (std::string cursortype) | |
| Builds a system cursor (type such as "arrow" / "ibeam"). | |
| ~Cursor () | |
| Frees the underlying SDL_Cursor. | |
| void * | getHandle () const |
| Underlying SDL_Cursor handle. | |
| bool | isCustom () const override |
| True when this cursor was built from custom image data. | |
| std::string | getSystemType () const override |
| System cursor type name, or empty for custom cursors. | |
详细描述
构造及析构函数说明
◆ Cursor() [1/2]
| eve::mouse::sdl::Cursor::Cursor | ( | image::ImageData * | imageData, |
| int | hotx, | ||
| int | hoty | ||
| ) |
Builds a custom cursor from image data with hotspot (hotx, hoty).
在文件 Cursor.cpp 第 9 行定义.
◆ Cursor() [2/2]
| eve::mouse::sdl::Cursor::Cursor | ( | std::string | cursortype | ) |
Builds a system cursor (type such as "arrow" / "ibeam").
在文件 Cursor.cpp 第 29 行定义.
◆ ~Cursor()
|
virtual |
成员函数说明
◆ getHandle()
|
virtual |
◆ getSystemType()
|
inlineoverridevirtual |
System cursor type name, or empty for custom cursors.
实现了 eve::mouse::Cursor.
◆ isCustom()
|
inlineoverridevirtual |
True when this cursor was built from custom image data.
实现了 eve::mouse::Cursor.
该类的文档由以下文件生成:
- src/modules/mouse/sdl/Cursor.h
- src/modules/mouse/sdl/Cursor.cpp