コード例 #1
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);
        }
コード例 #2
0
        /// <summary>
        /// <p>
        /// Set the destination size of the associated wl_surface. See
        /// wp_viewport for the description, and relation to the wl_buffer
        /// size.
        /// </p>
        /// <p>
        /// If width is -1 and height is -1, the destination size is unset
        /// instead. Any other pair of values for width and height that
        /// contains zero or negative values raises the bad_value protocol
        /// error.
        /// </p>
        /// <p>
        /// The crop and scale state is double-buffered state, and will be
        /// applied on the next wl_surface.commit.
        /// </p>
        /// </summary>
        /// <param name="width">surface width</param>
        /// <param name="height">surface height</param>
        public static void wp_viewport_set_destination(wp_viewport *pointer, int width, int height)
        {
            var args = stackalloc wl_argument[2];

            args[0] = width;
            args[1] = height;
            WaylandClient.wl_proxy_marshal_array((wl_proxy *)pointer, 2, args);
        }
コード例 #3
0
        /// <summary>
        /// <p>
        /// Set the source rectangle of the associated wl_surface. See
        /// wp_viewport for the description, and relation to the wl_buffer
        /// size.
        /// </p>
        /// <p>
        /// If all of x, y, width and height are -1.0, the source rectangle is
        /// unset instead. Any other set of values where width or height are zero
        /// or negative, or x or y are negative, raise the bad_value protocol
        /// error.
        /// </p>
        /// <p>
        /// The crop and scale state is double-buffered state, and will be
        /// applied on the next wl_surface.commit.
        /// </p>
        /// </summary>
        /// <param name="x">source rectangle x</param>
        /// <param name="y">source rectangle y</param>
        /// <param name="width">source rectangle width</param>
        /// <param name="height">source rectangle height</param>
        public static void wp_viewport_set_source(wp_viewport *pointer, wl_fixed x, wl_fixed y, wl_fixed width, wl_fixed height)
        {
            var args = stackalloc wl_argument[4];

            args[0] = x;
            args[1] = y;
            args[2] = width;
            args[3] = height;
            WaylandClient.wl_proxy_marshal_array((wl_proxy *)pointer, 1, args);
        }