/// <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); }
/// <summary> /// <p> /// Informs the server that the client will not be using this /// protocol object anymore. This does not affect any other objects, /// wp_viewport objects included. /// </p> /// </summary> public static void wp_viewporter_destroy(wp_viewporter *pointer) { WaylandClient.wl_proxy_marshal((wl_proxy *)pointer, 0); }
public WpViewporter(wp_viewporter *ptr) { Pointer = ptr; }