FGenericPlatformSoftwareCursor

Windows has special needs with RECT, and we don't need this class on Windows anyway, so just skip it.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

ICursor

FGenericPlatformSoftwareCursor

References

Module

ApplicationCore

Header

/Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericPlatformSoftwareCursor.h

Include

#include "GenericPlatform/GenericPlatformSoftwareCursor.h"

Syntax

class FGenericPlatformSoftwareCursor : public ICursor

Remarks

Windows has special needs with RECT, and we don't need this class on Windows anyway, so just skip it.

Constructors

Destructors

Overridden from ICursor

Name Description

Public function Virtual Const

FVector2D

 

GetPosition()

The position of the cursor

Public function Virtual Const

void

 

GetSize

(
    int32& Width,
    int32& Height
)

Gets the size of the cursor

Public function Virtual Const

EMouseCursor...

 

GetType()

Gets the current type of the cursor

Public function Virtual

void

 

Lock

(
    const RECT*const Bounds
)

Locks the cursor to the passed in bounds

Public function Virtual

void

 

SetPosition

(
    const int32 X,
    const int32 Y
)

Sets the position of the cursor

Public function Virtual

void

 

SetType

(
    const EMouseCursor::Type InNewCurso...
)

Sets the cursor

Public function Virtual

void

 

SetTypeShape

(
    EMouseCursor::Type InCursorType,
    void* CursorHandle
)

Allows overriding the shape of a particular cursor.

Public function Virtual

void

 

Show

(
    bool bShow
)

Shows or hides the cursor