31 #include "UICore/Display/Render/graphic_context.h"
32 #include "UICore/Display/Render/texture_2d.h"
33 #include "../Image/pixel_buffer.h"
38 class CursorDescription_Impl;
79 const std::vector<CursorDescriptionFrame> &
frames()
const;
122 int width,
int height,
123 int xarray = 1,
int yarray = 1,
124 int array_skipframes = 0,
125 int xspacing = 0,
int yspacing = 0);
139 int xpos = 0,
int ypos = 0,
140 float trans_limit = 0.05
f);
153 int xpos = 0,
int ypos = 0,
154 float trans_limit = 0.05
f);
163 std::shared_ptr<CursorDescription_Impl> impl;
void add_gridclipped_frames(const PixelBufferPtr &pixelbuffer, int xpos, int ypos, int width, int height, int xarray=1, int yarray=1, int array_skipframes=0, int xspacing=0, int yspacing=0)
Adds images formed in a grid.
bool operator==(const CursorDescription &that) const
Definition: cursor_description.h:84
bool operator>=(const CursorDescription &that) const
Definition: cursor_description.h:89
double delay
Definition: cursor_description.h:54
bool operator!=(const CursorDescription &that) const
Definition: cursor_description.h:85
Rect rect
Definition: cursor_description.h:53
bool operator<(const CursorDescription &that) const
Definition: cursor_description.h:86
Image Import Description Class.
Definition: image_import_description.h:45
void add_alphaclipped_frames_free(const PixelBufferPtr &pixelbuffer, int xpos=0, int ypos=0, float trans_limit=0.05f)
Adds images separated with pure alpha (within trans_limit).
void set_frame_delay(int frame, double delay)
Sets the duration this frame is displayed, in seconds.
bool operator<=(const CursorDescription &that) const
Definition: cursor_description.h:88
void set_hotspot(const Point &hotspot)
Sets the offset of where the cursor is drawn relative to the cursor image.
std::shared_ptr< IODevice > IODevicePtr
Definition: iodevice.h:85
2D (x,y) point structure - Integer
Definition: point.h:58
CursorDescription()
Constructs a cursor description.
const std::vector< CursorDescriptionFrame > & frames() const
Returns a list over all available frames.
CursorDescriptionFrame(PixelBufferPtr pixelbuffer, Rect rect)
Constructs a CursorDescriptionFrame.
Definition: cursor_description.h:50
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:491
bool operator>(const CursorDescription &that) const
Definition: cursor_description.h:87
void add_frame(const PixelBufferPtr &pixelbuffer)
Adds a single image.
void add_alphaclipped_frames(const PixelBufferPtr &pixelbuffer, int xpos=0, int ypos=0, float trans_limit=0.05f)
Adds images separated with pure alpha (within trans_limit).
CursorDescription & operator=(const CursorDescription ©)
Copy assignment operator.
std::shared_ptr< PixelBuffer > PixelBufferPtr
Definition: d3d_target.h:39
This class describes a single frame in a cursor description.
Definition: cursor_description.h:41
Point hotspot() const
the offset of where the cursor is drawn relative to cursor image
Definition: Application/application.h:35
PixelBufferPtr pixelbuffer
Definition: cursor_description.h:52
This class contains everything to construct a cursor - its data, default settings etc...
Definition: cursor_description.h:65