SDL Utility
Cursor Class Reference

#include <Cursor.hpp>

Public Types

enum class  Type {
  Arrow , IBeam , Wait , Crosshair ,
  WaitArrow , SizeNWSE , SizeNESW , SizeWE ,
  SizeNS , SizeAll , No , Hand
}
 

Public Member Functions

 Cursor ()
 
 Cursor (Type type)
 
 Cursor (const Cursor &other)=delete
 
 Cursor (Cursor &&other) noexcept
 
 ~Cursor ()
 
bool LoadFromPixels (const Uint8 *pixels, Vector2u size, Vector2u hotspot)
 
bool LoadFromSurface (SDL_Surface *surface, Vector2u hotspot)
 
bool LoadFromSystem (Type type)
 

Friends

class Window
 

Member Enumeration Documentation

◆ Type

enum Cursor::Type
strong
Enumerator
Arrow 
IBeam 
Wait 
Crosshair 
WaitArrow 
SizeNWSE 
SizeNESW 
SizeWE 
SizeNS 
SizeAll 
No 
Hand 

Constructor & Destructor Documentation

◆ Cursor() [1/4]

Cursor::Cursor ( )

◆ Cursor() [2/4]

Cursor::Cursor ( Type  type)

◆ Cursor() [3/4]

Cursor::Cursor ( const Cursor other)
delete

◆ Cursor() [4/4]

Cursor::Cursor ( Cursor &&  other)
noexcept

◆ ~Cursor()

Cursor::~Cursor ( )

Member Function Documentation

◆ LoadFromPixels()

bool Cursor::LoadFromPixels ( const Uint8 pixels,
Vector2u  size,
Vector2u  hotspot 
)

◆ LoadFromSurface()

bool Cursor::LoadFromSurface ( SDL_Surface *  surface,
Vector2u  hotspot 
)

◆ LoadFromSystem()

bool Cursor::LoadFromSystem ( Type  type)

Friends And Related Function Documentation

◆ Window

friend class Window
friend

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