Esempio n. 1
0
 public void SetMode(zxdg_toplevel_decoration_v1_mode mode) => XdgDecorationUnstableV1Bindings.zxdg_toplevel_decoration_v1_set_mode(Pointer, mode);
Esempio n. 2
0
        /// <summary>
        /// <p>
        /// Set the toplevel surface decoration mode. This informs the compositor
        /// that the client prefers the provided decoration mode.
        /// </p>
        /// <p>
        /// After requesting a decoration mode, the compositor will respond by
        /// emitting a xdg_surface.configure event. The client should then update
        /// its content, drawing it without decorations if the received mode is
        /// server-side decorations. The client must also acknowledge the configure
        /// when committing the new content (see xdg_surface.ack_configure).
        /// </p>
        /// <p>
        /// The compositor can decide not to use the client's mode and enforce a
        /// different mode instead.
        /// </p>
        /// <p>
        /// Clients whose decoration mode depend on the xdg_toplevel state may send
        /// a set_mode request in response to a xdg_surface.configure event and wait
        /// for the next xdg_surface.configure event to prevent unwanted state.
        /// Such clients are responsible for preventing configure loops and must
        /// make sure not to send multiple successive set_mode requests with the
        /// same decoration mode.
        /// </p>
        /// </summary>
        /// <param name="mode">the decoration mode</param>
        public static void zxdg_toplevel_decoration_v1_set_mode(zxdg_toplevel_decoration_v1 *pointer, zxdg_toplevel_decoration_v1_mode mode)
        {
            var args = stackalloc wl_argument[1];

            args[0] = (int)mode;
            WaylandClient.wl_proxy_marshal_array((wl_proxy *)pointer, 1, args);
        }