2013-08-13 06:57:41 -04: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-11 20:42:06 -05:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2013-08-13 06:57:41 -04:00
|
|
|
*
|
|
|
|
* Author: Giovanni Campagna <gcampagn@redhat.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_CURSOR_TRACKER_H
|
|
|
|
#define META_CURSOR_TRACKER_H
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
2018-07-10 04:36:24 -04:00
|
|
|
|
|
|
|
#include "clutter/clutter.h"
|
|
|
|
#include "cogl/cogl.h"
|
|
|
|
#include "meta/types.h"
|
|
|
|
#include "meta/workspace.h"
|
2013-08-13 06:57:41 -04:00
|
|
|
|
2018-10-31 06:47:17 -04:00
|
|
|
#define META_TYPE_CURSOR_TRACKER (meta_cursor_tracker_get_type ())
|
2019-01-22 21:25:35 -05:00
|
|
|
|
|
|
|
META_EXPORT
|
2018-10-31 06:47:17 -04:00
|
|
|
G_DECLARE_FINAL_TYPE (MetaCursorTracker,
|
|
|
|
meta_cursor_tracker,
|
|
|
|
META, CURSOR_TRACKER,
|
|
|
|
GObject)
|
2013-08-13 06:57:41 -04:00
|
|
|
|
|
|
|
|
2019-01-22 21:25:35 -05:00
|
|
|
META_EXPORT
|
2017-08-26 15:43:17 -04:00
|
|
|
MetaCursorTracker *meta_cursor_tracker_get_for_display (MetaDisplay *display);
|
2013-08-13 06:57:41 -04:00
|
|
|
|
2019-01-22 21:25:35 -05:00
|
|
|
META_EXPORT
|
2013-08-13 06:57:41 -04:00
|
|
|
void meta_cursor_tracker_get_hot (MetaCursorTracker *tracker,
|
|
|
|
int *x,
|
|
|
|
int *y);
|
2019-01-22 21:25:35 -05:00
|
|
|
|
|
|
|
META_EXPORT
|
2013-08-13 06:57:41 -04:00
|
|
|
CoglTexture *meta_cursor_tracker_get_sprite (MetaCursorTracker *tracker);
|
|
|
|
|
2019-01-22 21:25:35 -05:00
|
|
|
META_EXPORT
|
2013-09-04 10:50:19 -04:00
|
|
|
void meta_cursor_tracker_get_pointer (MetaCursorTracker *tracker,
|
|
|
|
int *x,
|
|
|
|
int *y,
|
|
|
|
ClutterModifierType *mods);
|
2019-01-22 21:25:35 -05:00
|
|
|
|
|
|
|
META_EXPORT
|
2013-09-04 10:56:00 -04:00
|
|
|
void meta_cursor_tracker_set_pointer_visible (MetaCursorTracker *tracker,
|
|
|
|
gboolean visible);
|
2013-09-04 10:50:19 -04:00
|
|
|
|
2013-08-13 06:57:41 -04:00
|
|
|
#endif
|