var searchIndex = {}; searchIndex["window"] = {"doc":"Window storage and interfacing traits.","items":[[3,"NoWindow","window","A window without user interface, often used in server event loops.",null,null],[3,"Size","","Structure to store the window size.",null,null],[12,"width","","The width.",0,null],[12,"height","","The height.",0,null],[3,"Position","","Structure to store the window position.",null,null],[12,"x","","The x coordinate.",1,null],[12,"y","","The y coordinate.",1,null],[3,"WindowSettings","","Settings structure for window behavior.",null,null],[11,"new","","Creates a new `NoWindow`.",2,{"inputs":[{"name":"windowsettings"}],"output":{"name":"nowindow"}}],[11,"should_close","","",2,null],[11,"set_should_close","","",2,null],[11,"size","","",2,null],[11,"swap_buffers","","",2,null],[11,"poll_event","","",2,null],[11,"draw_size","","",2,null],[11,"build_from_window_settings","","# Errors",2,{"inputs":[{"name":"windowsettings"}],"output":{"name":"result"}}],[11,"get_title","","",2,null],[11,"set_title","","",2,null],[11,"get_exit_on_esc","","",2,null],[11,"set_exit_on_esc","","",2,null],[11,"set_capture_cursor","","",2,null],[11,"show","","",2,null],[11,"hide","","",2,null],[11,"get_position","","",2,null],[11,"set_position","","",2,null],[6,"ProcAddress","","The type of an OpenGL function address.",null,null],[8,"BuildFromWindowSettings","","Constructs a window from a [`WindowSettings`](./struct.WindowSettings.html)\nobject.",null,null],[10,"build_from_window_settings","","Builds the window from a `WindowSettings` object.",3,{"inputs":[{"name":"windowsettings"}],"output":{"name":"result"}}],[8,"Window","","Trait representing the minimum requirements for defining a window.",null,null],[16,"Event","","The event type the window uses for incoming input.",4,null],[10,"set_should_close","","Tells the window to close or stay open.",4,null],[10,"should_close","","Returns true if the window should close.",4,null],[10,"size","","Gets the size of the window.",4,null],[10,"swap_buffers","","Swaps render buffers.",4,null],[10,"poll_event","","Polls an event from the window.",4,null],[10,"draw_size","","Gets the draw size of the window.",4,null],[8,"AdvancedWindow","","Trait representing a window with the most features that are still generic.",null,null],[10,"get_title","","Gets a copy of the title of the window.",5,null],[10,"set_title","","Sets the title of the window.",5,null],[11,"title","","Sets title on window.",5,null],[10,"get_exit_on_esc","","Gets whether to exit when pressing esc.",5,null],[10,"set_exit_on_esc","","Sets whether to exit when pressing esc.",5,null],[11,"exit_on_esc","","Sets whether to exit when pressing the Esc button.",5,null],[10,"set_capture_cursor","","Sets whether to capture/grab the cursor.",5,null],[11,"capture_cursor","","Sets whether to capture/grab the cursor.",5,null],[10,"show","","Shows the window.",5,null],[10,"hide","","Hides the window.",5,null],[10,"get_position","","Gets the position of window.",5,null],[10,"set_position","","Sets the position of window.",5,null],[11,"position","","Sets the position of window.",5,null],[8,"OpenGLWindow","","Trait for OpenGL specific operations on a window.",null,null],[10,"get_proc_address","","Returns the address of the specified OpenGL function if it exists.",6,null],[10,"is_current","","Returns true if this window's gl context is the current gl context.",6,null],[10,"make_current","","Make the window's gl context the current gl context.",6,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"from","","",0,null],[11,"from","","",0,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"from","","",1,null],[11,"from","","",1,null],[11,"clone","","",7,null],[11,"new","","Creates window settings with defaults.",7,{"inputs":[{"name":"t"},{"name":"s"}],"output":{"name":"windowsettings"}}],[11,"build","","Builds window from the given settings.",7,null],[11,"get_title","","Gets the title of built windows.",7,null],[11,"set_title","","Sets the title of built windows.",7,null],[11,"title","","Sets the title of built windows.",7,null],[11,"get_size","","Gets the size of built windows.",7,null],[11,"set_size","","Sets the size of built windows.",7,null],[11,"size","","Sets the size of built windows.",7,null],[11,"get_fullscreen","","Gets whether built windows will be fullscreen.",7,null],[11,"set_fullscreen","","Sets whether built windows will be fullscreen.",7,null],[11,"fullscreen","","Sets whether built windows will be fullscreen.",7,null],[11,"get_exit_on_esc","","Gets whether built windows should exit when the Esc key is pressed.",7,null],[11,"set_exit_on_esc","","Sets whether built windows should exit when the Esc key is pressed.",7,null],[11,"exit_on_esc","","Sets whether built windows should exit when the Esc key is pressed.",7,null],[11,"get_samples","","Gets the number of samples to use for anti-aliasing.",7,null],[11,"set_samples","","Sets the number of samples to use for anti-aliasing.",7,null],[11,"samples","","Sets the number of samples to use for anti-aliasing.",7,null],[11,"get_vsync","","Gets whether built windows should use vsync.",7,null],[11,"set_vsync","","Sets whether built windows should use vsync.",7,null],[11,"vsync","","Sets whether built windows should use vsync.",7,null],[11,"get_maybe_opengl","","Gets the OpenGL version of built windows.",7,null],[11,"set_maybe_opengl","","Sets OpenGL version of built windows.",7,null],[11,"maybe_opengl","","Sets OpenGL version of built windows.",7,null],[11,"set_opengl","","Sets OpenGL version of built windows.",7,null],[11,"opengl","","Sets the OpenGL version of built windows.",7,null],[11,"get_srgb","","Gets whether built windows should use hardware accelerated color conversion.",7,null],[11,"set_srgb","","Sets whether built windows should use hardware accelerated color conversion.",7,null],[11,"srgb","","Sets whether built windows should use hardware accelerated color conversion.",7,null],[11,"get_resizable","","Gets whether built windows should be resizable.",7,null],[11,"set_resizable","","Sets whether built windows should be resizable.",7,null],[11,"resizable","","Sets whether built windows should be resizable.",7,null],[11,"get_decorated","","Gets whether built windows should be decorated.",7,null],[11,"set_decorated","","Sets whether built windows should be decorated.",7,null],[11,"decorated","","Sets whether built windows should be decorated.",7,null],[11,"get_controllers","","Gets whether built windows should listen to controller input.",7,null],[11,"set_controllers","","Sets whether built windows should listen to controller input.",7,null],[11,"controllers","","Sets whether build windows should listen to controller input.",7,null]],"paths":[[3,"Size"],[3,"Position"],[3,"NoWindow"],[8,"BuildFromWindowSettings"],[8,"Window"],[8,"AdvancedWindow"],[8,"OpenGLWindow"],[3,"WindowSettings"]]}; initSearch(searchIndex);