#include <stdint.h>
Go to the source code of this file.
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
-
theme | The name of theme that should be loaded |
size | The desired size of the cursor images |
load_callback | A 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_data | The data that should be passed to the load callback |
XcursorImages* XcursorLibraryLoadImages |
( |
const char * |
file, |
|
|
const char * |
theme, |
|
|
int |
size |
|
) |
| |
Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:05:03 UTC 2017