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

SDL mouse cursor (custom image or named system cursor). 更多...

#include <Cursor.h>

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

详细描述

SDL mouse cursor (custom image or named system cursor).

在文件 Cursor.h 第 13 行定义.

构造及析构函数说明

◆ 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()

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

Frees the underlying SDL_Cursor.

重载 eve::mouse::Cursor .

在文件 Cursor.cpp 第 43 行定义.

成员函数说明

◆ getHandle()

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

Underlying SDL_Cursor handle.

实现了 eve::mouse::Cursor.

在文件 Cursor.cpp 第 49 行定义.

◆ getSystemType()

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

System cursor type name, or empty for custom cursors.

实现了 eve::mouse::Cursor.

在文件 Cursor.h 第 28 行定义.

◆ isCustom()

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

True when this cursor was built from custom image data.

实现了 eve::mouse::Cursor.

在文件 Cursor.h 第 26 行定义.


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