![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Mouse cursor image interface.
Contained in: global
Derived from:
none
Derived by:
none
Group: Display (Display 2D)
#include <ClanLib/display.h>
public function member index: |
||
Construction: |
||
static CL_MouseCursorProvider* | create | (CL_SurfaceProvider* provider, bool delete_provider=true, bool animate=true, const std::vector<int>* frame_delays=NULL); |
static CL_MouseCursorProvider* | load | (const std::string& resource_id, CL_ResourceManager* manager); |
virtual | ~CL_MouseCursorProvider | (); |
Attributes: |
||
virtual CL_SurfaceProvider* | get_surface_provider | (); |
virtual bool | is_animated | (); |
virtual int | get_frame_delay | (unsigned int frame_number); |
provider - Image of the cursor.
delete_provider - If true, the surface provider will be
deleted together with the cursor provider.
animate - If true, the subframes in the surface provider will
be used to animate the cursor.
frame_delays - A list of millis to wait between each frame,
when animating the cursor.
resource_id - Resource ID of the mouse cursor.
manager - Resource manager where the cursor is loaded from.