File: na-xembed.h

package info (click to toggle)
gnome-shell 48.4-1~deb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 22,336 kB
  • sloc: javascript: 74,478; ansic: 65,118; xml: 1,795; sh: 845; python: 666; makefile: 47
file content (69 lines) | stat: -rw-r--r-- 2,022 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* na-xembed.h
 * Copyright (C) 2022 Red Hat Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Carlos Garnacho <carlosg@gnome.org>
 */

#pragma once

#include <meta/meta-x11-display.h>
#include <glib-object.h>
#include <X11/Xlib.h>

G_BEGIN_DECLS

#define NA_TYPE_XEMBED (na_xembed_get_type ())
G_DECLARE_DERIVABLE_TYPE (NaXembed, na_xembed, NA, XEMBED, GObject)

struct _NaXembedClass
{
  GObjectClass parent_class;

  void (* plug_added) (NaXembed *xembed);
  void (* plug_removed) (NaXembed *xembed);
  void (* reconfigured) (NaXembed *xembed);
};

MetaX11Display * na_xembed_get_x11_display (NaXembed *xembed);

void na_xembed_add_id (NaXembed *xembed,
		       Window    window);

Window na_xembed_get_plug_window (NaXembed *xembed);

Window na_xembed_get_socket_window (NaXembed *xembed);

void na_xembed_set_root_position (NaXembed *xembed,
				  int       x,
				  int       y);

void na_xembed_get_root_position (NaXembed *xembed,
				  int      *x,
				  int      *y);

void na_xembed_get_size (NaXembed *xembed,
			 int      *width,
			 int      *height);

void na_xembed_set_available_size (NaXembed *xembed,
				   int       width,
				   int       height);

void na_xembed_set_background_color (NaXembed        *xembed,
                                     const CoglColor *color);

G_END_DECLS