//
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi.Wayland
{
///
/// Native handle accessors for the Wayland (Linux/BSD) backend. Add using Brutal.GlfwApi.Wayland; to call
/// these extension methods on / .
///
public static class WaylandExtensions
{
///
/// Returns the wl_display* used by GLFW.
///
/// The wl_display* used by GLFW, or 0 if an error occurred.
///
/// This function is only available on the Wayland native build. Calling it on any other platform will result
/// in an .
///
///
/// ,
///
///
/// This function may be called from any thread. Access is not synchronized.
///
/// glfwGetWaylandDisplay
public static nint GetWaylandDisplay() => Glfw.PInvoke.GetWaylandDisplay();
extension(GlfwMonitor monitor)
{
///
/// Returns the wl_output* of the specified monitor.
///
/// The wl_output* of the specified monitor, or 0 if an error occurred.
///
/// This function is only available on the Wayland native build. Calling it on any other platform will
/// result in an .
///
///
/// ,
///
///
/// This function may be called from any thread. Access is not synchronized.
///
/// glfwGetWaylandMonitor
public nint GetWaylandMonitor() => Glfw.PInvoke.GetWaylandMonitor(monitor);
}
extension(GlfwWindow window)
{
///
/// Returns the main wl_surface* of the specified window.
///
/// The main wl_surface* of the specified window, or 0 if an error
/// occurred.
///
/// This function is only available on the Wayland native build. Calling it on any other platform will
/// result in an .
///
///
/// ,
///
///
/// This function may be called from any thread. Access is not synchronized.
///
/// glfwGetWaylandWindow
public nint GetWaylandWindow() => Glfw.PInvoke.GetWaylandWindow(window);
}
}
}