Navigation
API > API/Runtime > API/Runtime/ApplicationCore
| Name | ICursor |
| Type | class |
| Header File | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/ICursor.h |
| Include Path | #include "GenericPlatform/ICursor.h" |
Syntax
class ICursor
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ICursor() |
GenericPlatform/ICursor.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void * CreateCursorFromFile
(
const FString& InPathToCursorWithoutExtension, |
Creates a hardware cursor from file. Can return nullptr when not available. | GenericPlatform/ICursor.h | |
virtual void * CreateCursorFromRGBABuffer
(
const FColor* Pixels, |
Creates a hardware cursor from bitmap data. Can return nullptr when not available. | GenericPlatform/ICursor.h | |
FVector2D GetPosition() |
The position of the cursor | GenericPlatform/ICursor.h | |
void GetSize
(
int32& Width, |
Gets the size of the cursor | GenericPlatform/ICursor.h | |
EMouseCursor::Type GetType() |
Gets the current type of the cursor | GenericPlatform/ICursor.h | |
virtual bool IsCreateCursorFromRGBABufferSupported() |
Is CreateCursorFromRGBABuffer() supported by this cursor? | GenericPlatform/ICursor.h | |
void Lock
(
const RECT*const Bounds |
Locks the cursor to the passed in bounds | GenericPlatform/ICursor.h | |
void SetPosition
(
const int32 X, |
Sets the position of the cursor | GenericPlatform/ICursor.h | |
void SetType
(
const EMouseCursor::Type InNewCursor |
Sets the cursor | GenericPlatform/ICursor.h | |
void SetTypeShape
(
EMouseCursor::Type InCursorType, |
Allows overriding the shape of a particular cursor. | GenericPlatform/ICursor.h | |
void Show
(
bool bShow |
Shows or hides the cursor | GenericPlatform/ICursor.h |