Mir
Classes | Typedefs | Functions
xcursor.h File Reference
#include <stdint.h>
Include dependency graph for xcursor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _XcursorImage
 
struct  _XcursorImages
 

Typedefs

typedef int XcursorBool
 
typedef uint32_t XcursorUInt
 
typedef XcursorUInt XcursorDim
 
typedef XcursorUInt XcursorPixel
 
typedef struct _XcursorImage XcursorImage
 
typedef struct _XcursorImages XcursorImages
 

Functions

XcursorImagesXcursorLibraryLoadImages (const char *file, const char *theme, int size)
 
void XcursorImagesDestroy (XcursorImages *images)
 
void xcursor_load_theme (const char *theme, int size, void(*load_callback)(XcursorImages *, void *), void *user_data)
 Load all the cursor of a theme. More...
 

Typedef Documentation

typedef int XcursorBool
typedef struct _XcursorImage XcursorImage
typedef struct _XcursorImages XcursorImages
typedef uint32_t XcursorUInt

Function Documentation

void xcursor_load_theme ( const char *  theme,
int  size,
void(*)(XcursorImages *, void *)  load_callback,
void *  user_data 
)

Load all the cursor of a theme.

This function loads all the cursor images of a given theme and its inherited themes. Each cursor is loaded into an XcursorImages object which is passed to the caller's load callback. If a cursor appears more than once across all the inherited themes, the load callback will be called multiple times, with possibly different XcursorImages object which have the same name. The user is expected to destroy the XcursorImages objects passed to the callback with XcursorImagesDestroy().

Parameters
themeThe name of theme that should be loaded
sizeThe desired size of the cursor images
load_callbackA callback function that will be called for each cursor loaded. The first parameter is the XcursorImages object representing the loaded cursor and the second is a pointer to data provided by the user.
user_dataThe data that should be passed to the load callback
void XcursorImagesDestroy ( XcursorImages images)
XcursorImages* XcursorLibraryLoadImages ( const char *  file,
const char *  theme,
int  size 
)

Copyright © 2012-2016 Canonical Ltd.
Generated on Wed Oct 11 22:26:23 UTC 2017