UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FLinuxCursor Class Reference

#include <LinuxCursor.h>

+ Inheritance diagram for FLinuxCursor:

Public Member Functions

 FLinuxCursor ()
 
virtual ~FLinuxCursor ()
 
virtual bool IsCreateCursorFromRGBABufferSupported () const override
 
virtual voidCreateCursorFromRGBABuffer (const FColor *Pixels, int32 Width, int32 Height, FVector2D InHotSpot) override
 
virtual FVector2D GetPosition () const override
 
virtual void SetPosition (const int32 X, const int32 Y) override
 
virtual void SetType (const EMouseCursor::Type InNewCursor) override
 
virtual EMouseCursor::Type GetType () const override
 
virtual void GetSize (int32 &Width, int32 &Height) const override
 
virtual void Show (bool bShow) override
 
virtual void Lock (const RECT *const Bounds) override
 
virtual void SetTypeShape (EMouseCursor::Type InCursorType, void *CursorHandle) override
 
virtual void SetCustomShape (SDL_HCursor CursorHandle)
 
bool IsHidden ()
 
void InvalidateCaches ()
 
void SetCachedPosition (const float X, const float Y)
 
- Public Member Functions inherited from ICursor
virtual ~ICursor ()=default
 
virtual voidCreateCursorFromFile (const FString &InPathToCursorWithoutExtension, FVector2D HotSpot)
 

Constructor & Destructor Documentation

◆ FLinuxCursor()

FLinuxCursor::FLinuxCursor ( )

◆ ~FLinuxCursor()

FLinuxCursor::~FLinuxCursor ( )
virtual

Member Function Documentation

◆ CreateCursorFromRGBABuffer()

void * FLinuxCursor::CreateCursorFromRGBABuffer ( const FColor Pixels,
int32  Width,
int32  Height,
FVector2D  InHotSpot 
)
overridevirtual

Creates a hardware cursor from bitmap data. Can return nullptr when not available.

Reimplemented from ICursor.

◆ GetPosition()

FVector2D FLinuxCursor::GetPosition ( ) const
overridevirtual

The position of the cursor

Implements ICursor.

◆ GetSize()

void FLinuxCursor::GetSize ( int32 Width,
int32 Height 
) const
overridevirtual

Gets the size of the cursor

Implements ICursor.

◆ GetType()

virtual EMouseCursor::Type FLinuxCursor::GetType ( ) const
inlineoverridevirtual

Gets the current type of the cursor

Implements ICursor.

◆ InvalidateCaches()

void FLinuxCursor::InvalidateCaches ( )

Invalidates whatever cached data cursor may have

◆ IsCreateCursorFromRGBABufferSupported()

virtual bool FLinuxCursor::IsCreateCursorFromRGBABufferSupported ( ) const
inlineoverridevirtual

Is CreateCursorFromRGBABuffer() supported by this cursor?

Reimplemented from ICursor.

◆ IsHidden()

bool FLinuxCursor::IsHidden ( )

◆ Lock()

void FLinuxCursor::Lock ( const RECT *const  Bounds)
overridevirtual

Locks the cursor to the passed in bounds

Parameters
BoundsThe bounds to lock the cursor to. Pass NULL to unlock.

Implements ICursor.

◆ SetCachedPosition()

void FLinuxCursor::SetCachedPosition ( const float  X,
const float  Y 
)

Set the internal cached position, setting the cache to valid

◆ SetCustomShape()

void FLinuxCursor::SetCustomShape ( SDL_HCursor  CursorHandle)
virtual

Defines a custom cursor shape for the EMouseCursor::Custom type.

Parameters
CursorHandleA native cursor handle to show when EMouseCursor::Custom is selected.

◆ SetPosition()

void FLinuxCursor::SetPosition ( const int32  X,
const int32  Y 
)
overridevirtual

Sets the position of the cursor

Implements ICursor.

◆ SetType()

void FLinuxCursor::SetType ( const EMouseCursor::Type  InNewCursor)
overridevirtual

Sets the cursor

Implements ICursor.

◆ SetTypeShape()

void FLinuxCursor::SetTypeShape ( EMouseCursor::Type  InCursorType,
void CursorHandle 
)
overridevirtual

Allows overriding the shape of a particular cursor.

Implements ICursor.

◆ Show()

void FLinuxCursor::Show ( bool  bShow)
overridevirtual

Shows or hides the cursor

Parameters
bShowtrue to show the mouse cursor, false to hide it

Implements ICursor.


The documentation for this class was generated from the following files: