2018-04-27 13:43:37 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2013, 2018 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2023-07-21 13:37:20 +00:00
|
|
|
#pragma once
|
2018-04-27 13:43:37 +00:00
|
|
|
|
|
|
|
#include <glib-object.h>
|
2018-04-30 10:55:08 +00:00
|
|
|
#include <X11/Xcursor/Xcursor.h>
|
2018-04-27 13:43:37 +00:00
|
|
|
|
|
|
|
#include "backends/meta-cursor.h"
|
2021-11-15 13:24:53 +00:00
|
|
|
#include "meta/types.h"
|
2018-04-27 13:43:37 +00:00
|
|
|
|
|
|
|
#define META_TYPE_CURSOR_SPRITE_XCURSOR meta_cursor_sprite_xcursor_get_type ()
|
|
|
|
G_DECLARE_FINAL_TYPE (MetaCursorSpriteXcursor, meta_cursor_sprite_xcursor,
|
|
|
|
META, CURSOR_SPRITE_XCURSOR, MetaCursorSprite)
|
|
|
|
|
2021-11-15 13:24:53 +00:00
|
|
|
MetaCursorSpriteXcursor * meta_cursor_sprite_xcursor_new (MetaCursor cursor,
|
|
|
|
MetaCursorTracker *cursor_tracker);
|
2018-04-27 13:43:37 +00:00
|
|
|
|
|
|
|
void meta_cursor_sprite_xcursor_set_theme_scale (MetaCursorSpriteXcursor *sprite_xcursor,
|
|
|
|
int scale);
|
|
|
|
|
|
|
|
MetaCursor meta_cursor_sprite_xcursor_get_cursor (MetaCursorSpriteXcursor *sprite_xcusror);
|
|
|
|
|
2018-04-30 10:55:08 +00:00
|
|
|
XcursorImage * meta_cursor_sprite_xcursor_get_current_image (MetaCursorSpriteXcursor *sprite_xcursor);
|
|
|
|
|
2018-04-27 13:43:37 +00:00
|
|
|
Cursor meta_create_x_cursor (Display *xdisplay,
|
|
|
|
MetaCursor cursor);
|