1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ 2 3 /* 4 * Copyright (C) 2013 Red Hat 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 19 * 02111-1307, USA. 20 * 21 * Written by: 22 * Jasper St. Pierre <jstpierre@mecheye.net> 23 */ 24 25 #ifndef __META_SURFACE_ACTOR_WAYLAND_H__ 26 #define __META_SURFACE_ACTOR_WAYLAND_H__ 27 28 #include <glib-object.h> 29 30 #include "backends/meta-monitor-manager-private.h" 31 #include "compositor/meta-surface-actor.h" 32 #include "wayland/meta-wayland-private.h" 33 #include "wayland/meta-wayland.h" 34 35 G_BEGIN_DECLS 36 37 #define META_TYPE_SURFACE_ACTOR_WAYLAND (meta_surface_actor_wayland_get_type ()) 38 G_DECLARE_FINAL_TYPE (MetaSurfaceActorWayland, 39 meta_surface_actor_wayland, 40 META, SURFACE_ACTOR_WAYLAND, 41 MetaSurfaceActor) 42 43 MetaSurfaceActor * meta_surface_actor_wayland_new (MetaWaylandSurface *surface); 44 MetaWaylandSurface * meta_surface_actor_wayland_get_surface (MetaSurfaceActorWayland *self); 45 void meta_surface_actor_wayland_surface_destroyed (MetaSurfaceActorWayland *self); 46 47 double meta_surface_actor_wayland_get_scale (MetaSurfaceActorWayland *actor); 48 49 void meta_surface_actor_wayland_get_subsurface_rect (MetaSurfaceActorWayland *self, 50 MetaRectangle *rect); 51 52 void meta_surface_actor_wayland_add_frame_callbacks (MetaSurfaceActorWayland *self, 53 struct wl_list *frame_callbacks); 54 55 CoglScanout * meta_surface_actor_wayland_try_acquire_scanout (MetaSurfaceActorWayland *self, 56 CoglOnscreen *onscreen); 57 58 ClutterStageView * meta_surface_actor_wayland_get_current_primary_view (MetaSurfaceActor *actor, 59 ClutterStage *stage); 60 61 G_END_DECLS 62 63 #endif /* __META_SURFACE_ACTOR_WAYLAND_H__ */ 64