//! Window type and related functions const std = @import("std"); const c = @import("c.zig").c; const Error = @import("errors.zig").Error; const getError = @import("errors.zig").getError; const Window = @This(); /// Resets all window hints to their default values. /// /// This function resets all window hints to their default values. /// /// Possible errors include glfw.Error.NotInitialized. /// /// @thread_safety This function must only be called from the main thread. /// /// see also: window_hints, glfw.Window.hint, glfw.Window.hintString pub fn defaultHints() Error!void { c.glfwDefaultWindowHints(); try getError(); } test "defaultHints" { const glfw = @import("main.zig"); try glfw.init(); defer glfw.terminate(); try defaultHints(); }