<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="Gtk" version="4.0"/>
  <package name="gtk4-layer-shell-0"/>
  <c:include name="gtk4-layer-shell.h"/>
  <namespace name="Gtk4LayerShell"
             version="1.0"
             shared-library="libgtk4-layer-shell.so.0"
             c:identifier-prefixes="GtkLayerShell"
             c:symbol-prefixes="gtk_layer">
    <enumeration name="Edge" c:type="GtkLayerShellEdge">
      <source-position filename="include/gtk4-layer-shell.h" line="72"/>
      <member name="left" value="0" c:identifier="GTK_LAYER_SHELL_EDGE_LEFT">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="59">The left edge of the screen.</doc>
      </member>
      <member name="right" value="1" c:identifier="GTK_LAYER_SHELL_EDGE_RIGHT">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="60">The right edge of the screen.</doc>
      </member>
      <member name="top" value="2" c:identifier="GTK_LAYER_SHELL_EDGE_TOP">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="61">The top edge of the screen.</doc>
      </member>
      <member name="bottom"
              value="3"
              c:identifier="GTK_LAYER_SHELL_EDGE_BOTTOM">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="62">The bottom edge of the screen.</doc>
      </member>
      <member name="entry_number"
              value="4"
              c:identifier="GTK_LAYER_SHELL_EDGE_ENTRY_NUMBER">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="63">Should not be used except to get the number of entries. (NOTE: may change in
future releases as more entries are added)</doc>
      </member>
    </enumeration>
    <enumeration name="KeyboardMode" c:type="GtkLayerShellKeyboardMode">
      <source-position filename="include/gtk4-layer-shell.h" line="88"/>
      <member name="none"
              value="0"
              c:identifier="GTK_LAYER_SHELL_KEYBOARD_MODE_NONE">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="76">This window should not receive keyboard events.</doc>
      </member>
      <member name="exclusive"
              value="1"
              c:identifier="GTK_LAYER_SHELL_KEYBOARD_MODE_EXCLUSIVE">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="77">This window should have exclusive focus if it is on the top or overlay layer.</doc>
      </member>
      <member name="on_demand"
              value="2"
              c:identifier="GTK_LAYER_SHELL_KEYBOARD_MODE_ON_DEMAND">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="78">The user should be able to focus and unfocues this window in an implementation
defined way. Not supported for protocol version &lt; 4.</doc>
      </member>
      <member name="entry_number"
              value="3"
              c:identifier="GTK_LAYER_SHELL_KEYBOARD_MODE_ENTRY_NUMBER">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="80">Should not be used except to get the number of entries. (NOTE: may change in
future releases as more entries are added)</doc>
      </member>
    </enumeration>
    <enumeration name="Layer" c:type="GtkLayerShellLayer">
      <source-position filename="include/gtk4-layer-shell.h" line="55"/>
      <member name="background"
              value="0"
              c:identifier="GTK_LAYER_SHELL_LAYER_BACKGROUND">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="42">The background layer.</doc>
      </member>
      <member name="bottom"
              value="1"
              c:identifier="GTK_LAYER_SHELL_LAYER_BOTTOM">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="43">The bottom layer.</doc>
      </member>
      <member name="top" value="2" c:identifier="GTK_LAYER_SHELL_LAYER_TOP">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="44">The top layer.</doc>
      </member>
      <member name="overlay"
              value="3"
              c:identifier="GTK_LAYER_SHELL_LAYER_OVERLAY">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="45">The overlay layer.</doc>
      </member>
      <member name="entry_number"
              value="4"
              c:identifier="GTK_LAYER_SHELL_LAYER_ENTRY_NUMBER">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="46">Should not be used except to get the number of entries. (NOTE: may change in
future releases as more entries are added)</doc>
      </member>
    </enumeration>
    <function name="auto_exclusive_zone_enable"
              c:identifier="gtk_layer_auto_exclusive_zone_enable">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="295">When auto exclusive zone is enabled, exclusive zone is automatically set to the
size of the @window + relevant margin. To disable auto exclusive zone, just set the
exclusive zone to 0 or any other fixed value.

NOTE: you can control the auto exclusive zone by changing the margin on the non-anchored
edge. This behavior is specific to gtk4-layer-shell and not part of the underlying protocol</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="306"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="297">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="auto_exclusive_zone_is_enabled"
              c:identifier="gtk_layer_auto_exclusive_zone_is_enabled">
      <source-position filename="include/gtk4-layer-shell.h" line="314"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="312">if the surface's exclusive zone is set to change based on the window's size</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="310">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_anchor" c:identifier="gtk_layer_get_anchor">
      <source-position filename="include/gtk4-layer-shell.h" line="249"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="247">if this surface is anchored to the given edge.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="244">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="edge" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="245">the edge to which the surface may or may not be anchored</doc>
          <type name="Edge" c:type="GtkLayerShellEdge"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_exclusive_zone"
              c:identifier="gtk_layer_get_exclusive_zone">
      <source-position filename="include/gtk4-layer-shell.h" line="293"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="291">the window's exclusive zone(which may have been set manually or automatically)</doc>
        <type name="gint" c:type="int"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="289">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_keyboard_mode"
              c:identifier="gtk_layer_get_keyboard_mode">
      <source-position filename="include/gtk4-layer-shell.h" line="334"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="332">current keyboard interactivity mode for @window.</doc>
        <type name="KeyboardMode" c:type="GtkLayerShellKeyboardMode"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="330">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_layer" c:identifier="gtk_layer_get_layer">
      <source-position filename="include/gtk4-layer-shell.h" line="203"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="201">the current layer.</doc>
        <type name="Layer" c:type="GtkLayerShellLayer"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="199">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_major_version"
              c:identifier="gtk_layer_get_major_version">
      <source-position filename="include/gtk4-layer-shell.h" line="95"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="93">the major version number of the GTK Layer Shell library</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
    </function>
    <function name="get_margin" c:identifier="gtk_layer_get_margin">
      <source-position filename="include/gtk4-layer-shell.h" line="271"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="269">the size of the margin for the given edge.</doc>
        <type name="gint" c:type="int"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="266">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="edge" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="267">the margin edge to get</doc>
          <type name="Edge" c:type="GtkLayerShellEdge"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_micro_version"
              c:identifier="gtk_layer_get_micro_version">
      <source-position filename="include/gtk4-layer-shell.h" line="109"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="107">the micro/patch version number of the GTK Layer Shell library</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
    </function>
    <function name="get_minor_version"
              c:identifier="gtk_layer_get_minor_version">
      <source-position filename="include/gtk4-layer-shell.h" line="102"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="100">the minor version number of the GTK Layer Shell library</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
    </function>
    <function name="get_monitor" c:identifier="gtk_layer_get_monitor">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="217">NOTE: To get which monitor the surface is actually on, use
gdk_display_get_monitor_at_window().</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="226"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="224">the monitor this surface will/has requested to be on, can be %NULL.</doc>
        <type name="Gdk.Monitor" c:type="GdkMonitor*"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="219">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_namespace" c:identifier="gtk_layer_get_namespace">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="172">NOTE: this function does not return ownership of the string. Do not free the returned string.
Future calls into the library may invalidate the returned string.</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="182"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="179">a reference to the namespace property. If namespace is unset, returns the
default namespace("gtk4-layer-shell"). Never returns %NULL.</doc>
        <type name="utf8" c:type="const char*"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="174">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_protocol_version"
              c:identifier="gtk_layer_get_protocol_version">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="121">May block for a Wayland roundtrip the first time it's called.</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="129"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="126">version of the zwlr_layer_shell_v1 protocol supported by the
compositor or 0 if the protocol is not supported.</doc>
        <type name="guint" c:type="guint"/>
      </return-value>
    </function>
    <function name="get_zwlr_layer_surface_v1"
              c:identifier="gtk_layer_get_zwlr_layer_surface_v1">
      <source-position filename="include/gtk4-layer-shell.h" line="154"/>
      <return-value transfer-ownership="none" nullable="1">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="152">The underlying layer surface Wayland object</doc>
        <type name="gpointer" c:type="zwlr_layer_surface_v1*"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="150">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <docsection name="gtk4-layer-shell">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="6">[Layer Shell](https://wayland.app/protocols/wlr-layer-shell-unstable-v1)
is a Wayland protocol for desktop shell components,
such as panels, notifications and wallpapers. You can use it to anchor
your windows to a corner or edge of the output, or stretch them across
the entire output. This library aims to support all Layer Shell features,
and supports GTK popups and popovers.

This library only functions on Wayland compositors that the support Layer Shell.
__It does not work on X11 or GNOME on Wayland.__

# Note On Linking
If you link against libwayland you must link this library before libwayland. See
[linking.md](https://github.com/wmww/gtk4-layer-shell/blob/main/linking.md) for details.

# Setting Window Size
If you wish to force your layer surface window to be a different size than it
is by default:
|[&lt;!-- language="C" --&gt;
  gtk_window_set_default_size(layer_gtk_window, width, height);
]|
If width or height is 0, the default is used for that axis. If the window is
anchored to opposite edges of the output(see gtk_layer_set_anchor()), the
size requested here is ignored. If you later wish to use the default window size
repeat the call with both width and height as 0. Setting to 1, 1 is sometimes useful
to keep the window the smallest it can be while still fitting its contents.</doc>
    </docsection>
    <function name="init_for_window" c:identifier="gtk_layer_init_for_window">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="131">Set the @window up to be a layer surface once it is mapped. this must be called before
the @window is realized.</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="138"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="133">A #GtkWindow to be turned into a layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="is_layer_window" c:identifier="gtk_layer_is_layer_window">
      <source-position filename="include/gtk4-layer-shell.h" line="146"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="144">if @window has been initialized as a layer surface.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="142">A #GtkWindow that may or may not have a layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
      </parameters>
    </function>
    <function name="is_supported" c:identifier="gtk_layer_is_supported">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="111">May block for a Wayland roundtrip the first time it's called.</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="119"/>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve"
             filename="include/gtk4-layer-shell.h"
             line="116">%TRUE if the platform is Wayland and Wayland compositor supports the
zwlr_layer_shell_v1 protocol.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
    </function>
    <function name="set_anchor" c:identifier="gtk_layer_set_anchor">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="228">Set whether @window should be anchored to @edge.
- If two perpendicular edges are anchored, the surface with be anchored to that corner
- If two opposite edges are anchored, the window will be stretched across the screen in that direction

Default is %FALSE for each #GtkLayerShellEdge</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="240"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="230">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="edge" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="231">A #GtkLayerShellEdge this layer surface may be anchored to.</doc>
          <type name="Edge" c:type="GtkLayerShellEdge"/>
        </parameter>
        <parameter name="anchor_to_edge" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="232">Whether or not to anchor this layer surface to @edge.</doc>
          <type name="gboolean" c:type="gboolean"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_exclusive_zone"
              c:identifier="gtk_layer_set_exclusive_zone">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="273">Has no effect unless the surface is anchored to an edge. Requests that the compositor
does not place other surfaces within the given exclusive zone of the anchored edge.
For example, a panel can request to not be covered by maximized windows. See
wlr-layer-shell-unstable-v1.xml for details.

Default is 0</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="285"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="275">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="exclusive_zone" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="276">The size of the exclusive zone.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_keyboard_mode"
              c:identifier="gtk_layer_set_keyboard_mode">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="316">Sets if/when @window should receive keyboard events from the compositor, see
GtkLayerShellKeyboardMode for details.

Default is %GTK_LAYER_SHELL_KEYBOARD_MODE_NONE</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="326"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="318">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="mode" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="319">The type of keyboard interactivity requested.</doc>
          <type name="KeyboardMode" c:type="GtkLayerShellKeyboardMode"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_layer" c:identifier="gtk_layer_set_layer">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="184">Set the "layer" on which the surface appears(controls if it is over top of or below other surfaces). The layer may
be changed on-the-fly in the current version of the layer shell protocol, but on compositors that only support an
older version the @window is remapped so the change can take effect.

Default is %GTK_LAYER_SHELL_LAYER_TOP</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="195"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="186">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="layer" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="187">The layer on which this surface appears.</doc>
          <type name="Layer" c:type="GtkLayerShellLayer"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_margin" c:identifier="gtk_layer_set_margin">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="251">Set the margin for a specific @edge of a @window. Effects both surface's distance from
the edge and its exclusive zone size(if auto exclusive zone enabled).

Default is 0 for each #GtkLayerShellEdge</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="262"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="253">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="edge" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="254">The #GtkLayerShellEdge for which to set the margin.</doc>
          <type name="Edge" c:type="GtkLayerShellEdge"/>
        </parameter>
        <parameter name="margin_size" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="255">The margin for @edge to be set.</doc>
          <type name="gint" c:type="int"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_monitor" c:identifier="gtk_layer_set_monitor">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="205">Set the output for the window to be placed on, or %NULL to let the compositor choose.
If the window is currently mapped, it will get remapped so the change can take effect.

Default is %NULL</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="215"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="207">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="monitor" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="208">The output this layer surface will be placed on(%NULL to let the compositor decide).</doc>
          <type name="Gdk.Monitor" c:type="GdkMonitor*"/>
        </parameter>
      </parameters>
    </function>
    <function name="set_namespace" c:identifier="gtk_layer_set_namespace">
      <doc xml:space="preserve"
           filename="include/gtk4-layer-shell.h"
           line="156">Set the "namespace" of the surface.

No one is quite sure what this is for, but it probably should be something generic
("panel", "osk", etc). The @name_space string is copied, and caller maintains
ownership of original. If the window is currently mapped, it will get remapped so
the change can take effect.

Default is "gtk4-layer-shell" (which will be used if set to %NULL)</doc>
      <source-position filename="include/gtk4-layer-shell.h" line="170"/>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="window" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="158">A layer surface.</doc>
          <type name="Gtk.Window" c:type="GtkWindow*"/>
        </parameter>
        <parameter name="name_space" transfer-ownership="none">
          <doc xml:space="preserve"
               filename="include/gtk4-layer-shell.h"
               line="159">The namespace of this layer surface.</doc>
          <type name="utf8" c:type="const char*"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>
