コード例 #1
0
        /// <summary>
        /// <p>
        /// Instantiate an interface extension for the given wl_surface to
        /// crop and scale its content. If the given wl_surface already has
        /// a wp_viewport object associated, the viewport_exists
        /// protocol error is raised.
        /// </p>
        /// </summary>
        /// <param name="id">the new viewport interface id</param>
        /// <param name="surface">the surface</param>
        public static wp_viewport *wp_viewporter_get_viewport(wp_viewporter *pointer, wl_surface *surface)
        {
            var args = stackalloc wl_argument[2];

            args[0] = 0;
            args[1] = surface;
            var ptr = WaylandClient.wl_proxy_marshal_array_constructor((wl_proxy *)pointer, 1, args, wp_viewport.Interface);

            return((wp_viewport *)ptr);
        }
コード例 #2
0
        /// <summary>
        /// <p>
        /// Create a new decoration object associated with the given toplevel.
        /// </p>
        /// <p>
        /// Creating an xdg_toplevel_decoration from an xdg_toplevel which has a
        /// buffer attached or committed is a client error, and any attempts by a
        /// client to attach or manipulate a buffer prior to the first
        /// xdg_toplevel_decoration.configure event must also be treated as
        /// errors.
        /// </p>
        /// </summary>
        public static zxdg_toplevel_decoration_v1 *zxdg_decoration_manager_v1_get_toplevel_decoration(zxdg_decoration_manager_v1 *pointer, xdg_toplevel *toplevel)
        {
            var args = stackalloc wl_argument[2];

            args[0] = 0;
            args[1] = toplevel;
            var ptr = WaylandClient.wl_proxy_marshal_array_constructor((wl_proxy *)pointer, 1, args, zxdg_toplevel_decoration_v1.Interface);

            return((zxdg_toplevel_decoration_v1 *)ptr);
        }