2013-08-13 10:57:41 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 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
|
2014-01-12 01:42:06 +00:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2013-08-13 10:57:41 +00:00
|
|
|
*
|
|
|
|
* Author: Giovanni Campagna <gcampagn@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_CURSOR_TRACKER_H
|
|
|
|
#define META_CURSOR_TRACKER_H
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
2018-07-10 08:36:24 +00:00
|
|
|
|
|
|
|
#include "clutter/clutter.h"
|
|
|
|
#include "cogl/cogl.h"
|
|
|
|
#include "meta/types.h"
|
|
|
|
#include "meta/workspace.h"
|
2013-08-13 10:57:41 +00:00
|
|
|
|
2018-10-31 10:47:17 +00:00
|
|
|
#define META_TYPE_CURSOR_TRACKER (meta_cursor_tracker_get_type ())
|
2019-01-23 02:25:35 +00:00
|
|
|
|
|
|
|
META_EXPORT
|
2020-07-29 09:06:43 +00:00
|
|
|
G_DECLARE_DERIVABLE_TYPE (MetaCursorTracker,
|
|
|
|
meta_cursor_tracker,
|
|
|
|
META, CURSOR_TRACKER,
|
|
|
|
GObject)
|
2013-08-13 10:57:41 +00:00
|
|
|
|
2019-01-23 02:25:35 +00:00
|
|
|
META_EXPORT
|
2017-08-26 19:43:17 +00:00
|
|
|
MetaCursorTracker *meta_cursor_tracker_get_for_display (MetaDisplay *display);
|
2013-08-13 10:57:41 +00:00
|
|
|
|
2019-01-23 02:25:35 +00:00
|
|
|
META_EXPORT
|
2013-08-13 10:57:41 +00:00
|
|
|
void meta_cursor_tracker_get_hot (MetaCursorTracker *tracker,
|
|
|
|
int *x,
|
|
|
|
int *y);
|
2019-01-23 02:25:35 +00:00
|
|
|
|
|
|
|
META_EXPORT
|
2013-08-13 10:57:41 +00:00
|
|
|
CoglTexture *meta_cursor_tracker_get_sprite (MetaCursorTracker *tracker);
|
|
|
|
|
2019-01-23 02:25:35 +00:00
|
|
|
META_EXPORT
|
2013-09-04 14:50:19 +00:00
|
|
|
void meta_cursor_tracker_get_pointer (MetaCursorTracker *tracker,
|
2020-07-13 10:06:12 +00:00
|
|
|
graphene_point_t *coords,
|
2013-09-04 14:50:19 +00:00
|
|
|
ClutterModifierType *mods);
|
2019-01-23 02:25:35 +00:00
|
|
|
|
2019-04-10 19:28:05 +00:00
|
|
|
META_EXPORT
|
|
|
|
gboolean meta_cursor_tracker_get_pointer_visible (MetaCursorTracker *tracker);
|
|
|
|
|
2019-01-23 02:25:35 +00:00
|
|
|
META_EXPORT
|
2013-09-04 14:56:00 +00:00
|
|
|
void meta_cursor_tracker_set_pointer_visible (MetaCursorTracker *tracker,
|
|
|
|
gboolean visible);
|
2013-09-04 14:50:19 +00:00
|
|
|
|
2013-08-13 10:57:41 +00:00
|
|
|
#endif
|