![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ICursor.h>
Inheritance diagram for ICursor:Public Member Functions | |
| virtual | ~ICursor ()=default |
| virtual void * | CreateCursorFromFile (const FString &InPathToCursorWithoutExtension, FVector2D HotSpot) |
| virtual bool | IsCreateCursorFromRGBABufferSupported () const |
| virtual void * | CreateCursorFromRGBABuffer (const FColor *Pixels, int32 Width, int32 Height, FVector2D InHotSpot) |
| virtual FVector2D | GetPosition () const =0 |
| virtual void | SetPosition (const int32 X, const int32 Y)=0 |
| virtual void | SetType (const EMouseCursor::Type InNewCursor)=0 |
| virtual EMouseCursor::Type | GetType () const =0 |
| virtual void | GetSize (int32 &Width, int32 &Height) const =0 |
| virtual void | Show (bool bShow)=0 |
| virtual void | Lock (const RECT *const Bounds)=0 |
| virtual void | SetTypeShape (EMouseCursor::Type InCursorType, void *CursorHandle)=0 |
|
virtualdefault |
|
inlinevirtual |
Creates a hardware cursor from file. Can return nullptr when not available.
Reimplemented in FMacCursor, and FWindowsCursor.
|
inlinevirtual |
Creates a hardware cursor from bitmap data. Can return nullptr when not available.
Reimplemented in FLinuxCursor, FMacCursor, and FWindowsCursor.
The position of the cursor
Implemented in FAndroidCursor, FGenericPlatformSoftwareCursor, FIOSCursor, FLinuxCursor, FMacCursor, FNullCursor, FWindowsCursor, and FFauxSlateCursor.
Gets the size of the cursor
Implemented in FAndroidCursor, FGenericPlatformSoftwareCursor, FIOSCursor, FLinuxCursor, FMacCursor, FNullCursor, FWindowsCursor, and FFauxSlateCursor.
|
pure virtual |
Gets the current type of the cursor
Implemented in FAndroidCursor, FGenericPlatformSoftwareCursor, FIOSCursor, FLinuxCursor, FMacCursor, FNullCursor, FWindowsCursor, and FFauxSlateCursor.
Is CreateCursorFromRGBABuffer() supported by this cursor?
Reimplemented in FLinuxCursor, FMacCursor, and FWindowsCursor.
Locks the cursor to the passed in bounds
| Bounds | The bounds to lock the cursor to. Pass NULL to unlock. |
Implemented in FAndroidCursor, FGenericPlatformSoftwareCursor, FIOSCursor, FLinuxCursor, FMacCursor, FNullCursor, FWindowsCursor, and FFauxSlateCursor.
Sets the position of the cursor
Implemented in FAndroidCursor, FGenericPlatformSoftwareCursor, FIOSCursor, FLinuxCursor, FMacCursor, FNullCursor, FWindowsCursor, and FFauxSlateCursor.
|
pure virtual |
Sets the cursor
Implemented in FAndroidCursor, FGenericPlatformSoftwareCursor, FIOSCursor, FLinuxCursor, FMacCursor, FNullCursor, FWindowsCursor, and FFauxSlateCursor.
|
pure virtual |
Allows overriding the shape of a particular cursor.
Implemented in FAndroidCursor, FGenericPlatformSoftwareCursor, FIOSCursor, FLinuxCursor, FMacCursor, FNullCursor, FWindowsCursor, and FFauxSlateCursor.
Shows or hides the cursor
| bShow | true to show the mouse cursor, false to hide it |
Implemented in FAndroidCursor, FGenericPlatformSoftwareCursor, FIOSCursor, FLinuxCursor, FMacCursor, FNullCursor, FWindowsCursor, and FFauxSlateCursor.