/// <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); }
public ZxdgToplevelDecorationV1(zxdg_toplevel_decoration_v1 *ptr) { Pointer = ptr; _listener = null; _configure = null; }
/// <summary> /// Set the callbacks for the given <see cref="zxdg_toplevel_decoration_v1"/>. /// </summary> /// <param name="mode">the decoration mode</param> public static int zxdg_toplevel_decoration_v1_add_listener(zxdg_toplevel_decoration_v1 *iface, zxdg_toplevel_decoration_v1_listener *listener) { return(WaylandClient.wl_proxy_add_listener((wl_proxy *)iface, listener, null)); }
/// <summary> /// <p> /// Unset the toplevel surface decoration mode. This informs the compositor /// that the client doesn't prefer a particular decoration mode. /// </p> /// <p> /// This request has the same semantics as set_mode. /// </p> /// </summary> public static void zxdg_toplevel_decoration_v1_unset_mode(zxdg_toplevel_decoration_v1 *pointer) { WaylandClient.wl_proxy_marshal((wl_proxy *)pointer, 2); }
/// <summary> /// <p> /// Switch back to a mode without any server-side decorations at the next /// commit. /// </p> /// </summary> public static void zxdg_toplevel_decoration_v1_destroy(zxdg_toplevel_decoration_v1 *pointer) { WaylandClient.wl_proxy_marshal((wl_proxy *)pointer, 0); }