XrdDesktopCursor
XrdDesktopCursor
|
|
Prerequisites
XrdDesktopCursor requires
GObject.
Includes
#include <xrdesktop.h>
Functions
xrd_desktop_cursor_hide ()
void
xrd_desktop_cursor_hide (XrdDesktopCursor *self
);
xrd_desktop_cursor_init_settings ()
void
xrd_desktop_cursor_init_settings (XrdDesktopCursor *self
);
xrd_desktop_cursor_set_width_meters ()
void
xrd_desktop_cursor_set_width_meters (XrdDesktopCursor *self
,
float meters
);
xrd_desktop_cursor_show ()
void
xrd_desktop_cursor_show (XrdDesktopCursor *self
);
Types and Values
XrdDesktopCursor
typedef struct _XrdDesktopCursor XrdDesktopCursor;
struct XrdDesktopCursorInterface
struct XrdDesktopCursorInterface {
GTypeInterface parent;
void
(*submit_texture) (XrdDesktopCursor *self,
GulkanClient *uploader,
GulkanTexture *texture,
int hotspot_x,
int hotspot_y);
void
(*show) (XrdDesktopCursor *self);
void
(*hide) (XrdDesktopCursor *self);
void
(*set_width_meters) (XrdDesktopCursor *self, float meters);
XrdDesktopCursorData*
(*get_data) (XrdDesktopCursor *self);
void
(*get_transformation) (XrdDesktopCursor *self,
graphene_matrix_t *matrix);
void
(*set_transformation) (XrdDesktopCursor *self,
graphene_matrix_t *matrix);
};
XrdDesktopCursorData
typedef struct {
XrdDesktopCursor *cursor;
gboolean keep_apparent_size;
/* setting, either absolute size or the apparent size in 3 meter distance */
float width_meters;
/* cached values set by apparent size and used in hotspot calculation */
float cached_width_meters;
int hotspot_x;
int hotspot_y;
uint32_t texture_width;
uint32_t texture_height;
} XrdDesktopCursorData;
XRD_TYPE_DESKTOP_CURSOR
#define XRD_TYPE_DESKTOP_CURSOR xrd_desktop_cursor_get_type()