载入中...
搜索中...
未找到
eve::mouse::sdl::Cursor类 参考

SDL 鼠标光标实现(自定义图像或系统光标)。 更多...

#include <Cursor.h>

类 eve::mouse::sdl::Cursor 继承关系图:
eve::mouse::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.
 

详细描述

SDL 鼠标光标实现(自定义图像或系统光标)。

在文件 Cursor.h13 行定义.

构造及析构函数说明

◆ Cursor() [1/2]

eve::mouse::sdl::Cursor::Cursor ( image::ImageData imageData,
int  hotx,
int  hoty 
)

从图像数据创建自定义光标(热点 hotx/hoty)。

在文件 Cursor.cpp9 行定义.

◆ Cursor() [2/2]

eve::mouse::sdl::Cursor::Cursor ( std::string  cursortype)

创建系统光标(类型如 "arrow" / "ibeam")。

在文件 Cursor.cpp42 行定义.

◆ ~Cursor()

eve::mouse::sdl::Cursor::~Cursor ( )
virtual

重载 eve::mouse::Cursor .

在文件 Cursor.cpp56 行定义.

成员函数说明

◆ getHandle()

void * eve::mouse::sdl::Cursor::getHandle ( ) const
virtual

底层 SDL_Cursor 句柄。

实现了 eve::mouse::Cursor.

在文件 Cursor.cpp62 行定义.

◆ getSystemType()

std::string eve::mouse::sdl::Cursor::getSystemType ( ) const
inlineoverridevirtual

Returns the type of system cursor used, if this Cursor is using a system-defined image.

实现了 eve::mouse::Cursor.

在文件 Cursor.h26 行定义.

◆ isCustom()

bool eve::mouse::sdl::Cursor::isCustom ( ) const
inlineoverridevirtual

是否自定义 / 系统光标类型名。

实现了 eve::mouse::Cursor.

在文件 Cursor.h25 行定义.


该类的文档由以下文件生成: