~elementary-os/elementaryos/os-patch-mutter-bionic

« back to all changes in this revision

Viewing changes to src/wayland/meta-wayland.h

  • Committer: RabbitBot
  • Date: 2018-04-11 14:49:36 UTC
  • Revision ID: rabbitbot@elementary.io-20180411144936-hgymqa9d8d1xfpbh
Initial import, version 3.28.0-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Red Hat
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License as
 
6
 * published by the Free Software Foundation; either version 2 of the
 
7
 * License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
17
 * 02111-1307, USA.
 
18
 *
 
19
 * Written by:
 
20
 *     Jasper St. Pierre <jstpierre@mecheye.net>
 
21
 */
 
22
 
 
23
#ifndef META_WAYLAND_H
 
24
#define META_WAYLAND_H
 
25
 
 
26
#include <clutter/clutter.h>
 
27
#include <meta/types.h>
 
28
#include "meta-wayland-types.h"
 
29
 
 
30
void                    meta_wayland_override_display_name (char *display_name);
 
31
 
 
32
void                    meta_wayland_pre_clutter_init           (void);
 
33
void                    meta_wayland_init                       (void);
 
34
void                    meta_wayland_finalize                   (void);
 
35
 
 
36
/* We maintain a singleton MetaWaylandCompositor which can be got at via this
 
37
 * API after meta_wayland_init() has been called. */
 
38
MetaWaylandCompositor  *meta_wayland_compositor_get_default     (void);
 
39
 
 
40
void                    meta_wayland_compositor_update          (MetaWaylandCompositor *compositor,
 
41
                                                                 const ClutterEvent    *event);
 
42
gboolean                meta_wayland_compositor_handle_event    (MetaWaylandCompositor *compositor,
 
43
                                                                 const ClutterEvent    *event);
 
44
void                    meta_wayland_compositor_update_key_state (MetaWaylandCompositor *compositor,
 
45
                                                                 char                  *key_vector,
 
46
                                                                  int                    key_vector_len,
 
47
                                                                  int                    offset);
 
48
void                    meta_wayland_compositor_repick          (MetaWaylandCompositor *compositor);
 
49
 
 
50
void                    meta_wayland_compositor_set_input_focus (MetaWaylandCompositor *compositor,
 
51
                                                                 MetaWindow            *window);
 
52
 
 
53
void                    meta_wayland_compositor_paint_finished  (MetaWaylandCompositor *compositor);
 
54
 
 
55
void                    meta_wayland_compositor_destroy_frame_callbacks (MetaWaylandCompositor *compositor,
 
56
                                                                         MetaWaylandSurface    *surface);
 
57
 
 
58
const char             *meta_wayland_get_wayland_display_name   (MetaWaylandCompositor *compositor);
 
59
const char             *meta_wayland_get_xwayland_display_name  (MetaWaylandCompositor *compositor);
 
60
 
 
61
void                    meta_wayland_compositor_restore_shortcuts      (MetaWaylandCompositor *compositor,
 
62
                                                                        ClutterInputDevice    *source);
 
63
gboolean                meta_wayland_compositor_is_shortcuts_inhibited (MetaWaylandCompositor *compositor,
 
64
                                                                        ClutterInputDevice    *source);
 
65
 
 
66
void                    meta_wayland_compositor_flush_clients (MetaWaylandCompositor *compositor);
 
67
 
 
68
#endif
 
69