2013-08-13 06:57:41 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 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_PRIVATE_H
|
|
|
|
#define META_CURSOR_TRACKER_PRIVATE_H
|
|
|
|
|
2018-07-10 04:36:24 -04:00
|
|
|
#include "backends/meta-cursor.h"
|
|
|
|
#include "backends/meta-cursor-renderer.h"
|
|
|
|
#include "meta/meta-cursor-tracker.h"
|
2014-03-31 15:21:19 -04:00
|
|
|
|
2020-07-29 05:06:43 -04:00
|
|
|
struct _MetaCursorTrackerClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
2020-07-29 05:22:19 -04:00
|
|
|
|
|
|
|
void (* set_force_track_position) (MetaCursorTracker *tracker,
|
|
|
|
gboolean is_enabled);
|
2020-07-31 15:08:15 -04:00
|
|
|
MetaCursorSprite * (* get_sprite) (MetaCursorTracker *tracker);
|
2020-07-29 05:06:43 -04:00
|
|
|
};
|
|
|
|
|
2015-03-09 23:23:00 -04:00
|
|
|
void meta_cursor_tracker_set_window_cursor (MetaCursorTracker *tracker,
|
|
|
|
MetaCursorSprite *cursor_sprite);
|
|
|
|
void meta_cursor_tracker_unset_window_cursor (MetaCursorTracker *tracker);
|
|
|
|
void meta_cursor_tracker_set_root_cursor (MetaCursorTracker *tracker,
|
|
|
|
MetaCursorSprite *cursor_sprite);
|
2013-08-13 06:57:41 -04:00
|
|
|
|
|
|
|
void meta_cursor_tracker_update_position (MetaCursorTracker *tracker,
|
2017-06-08 10:13:16 -04:00
|
|
|
float new_x,
|
|
|
|
float new_y);
|
2014-03-11 17:22:08 -04:00
|
|
|
|
2020-07-29 05:22:19 -04:00
|
|
|
void meta_cursor_tracker_track_position (MetaCursorTracker *tracker);
|
|
|
|
|
|
|
|
void meta_cursor_tracker_untrack_position (MetaCursorTracker *tracker);
|
|
|
|
|
2020-07-31 15:21:23 -04:00
|
|
|
MetaBackend * meta_cursor_tracker_get_backend (MetaCursorTracker *tracker);
|
|
|
|
|
2020-07-31 15:08:15 -04:00
|
|
|
void meta_cursor_tracker_notify_cursor_changed (MetaCursorTracker *tracker);
|
|
|
|
|
2013-08-13 06:57:41 -04:00
|
|
|
#endif
|