var searchIndex = {}; searchIndex["window"] = {"doc":"Window abstraction","items":[[3,"Size","window","Size in pixels.",null,null],[12,"width","","The width in pixels.",0,null],[12,"height","","The height in pixels.",0,null],[3,"WindowSettings","","Settings for window behavior.",null,null],[3,"NoWindow","","An implementation of Window that runs without a window at all.",null,null],[6,"ProcAddress","","The type of an OpenGL function address.",null,null],[8,"BuildFromWindowSettings","","Builds window from window settings.",null,null],[10,"build_from_window_settings","","Builds window from window settings.",1,{"inputs":[{"name":"windowsettings"}],"output":{"name":"result"}}],[8,"Window","","Required to use the event loop.",null,null],[16,"Event","","The event type emitted by `poll_event`",2,null],[10,"set_should_close","","Tells the window to close or stay open.",2,null],[10,"should_close","","Returns true if window should close.",2,null],[10,"size","","Gets the size of the window in user coordinates.",2,null],[10,"swap_buffers","","Swaps render buffers.",2,null],[10,"poll_event","","Polls event from window.",2,null],[10,"draw_size","","Gets draw size of the window.\nThis is equal to the size of the frame buffer of the inner window,\nexcluding the title bar and borders.",2,null],[8,"AdvancedWindow","","Implemented by fully supported window back-ends.",null,null],[10,"get_title","","Gets a copy of the title of the window.",3,null],[10,"set_title","","Sets the title of the window.",3,null],[11,"title","","Sets title on window.",3,null],[10,"get_exit_on_esc","","Gets whether to exit when pressing esc.",3,null],[10,"set_exit_on_esc","","Sets whether to exit when pressing esc.",3,null],[11,"exit_on_esc","","Sets whether to exit when pressing esc.",3,null],[10,"set_capture_cursor","","Sets whether to capture/grab cursor.\nThis is used to lock and hide cursor to the window,\nfor example in a first-person shooter game.",3,null],[11,"capture_cursor","","Sets whether to capture/grab cursor (see `set_capture_cursor`).",3,null],[8,"OpenGLWindow","","Trait for OpenGL specific operations.",null,null],[10,"get_proc_address","","Returns the address of an OpenGL function if it exist, else returns null pointer.",4,null],[10,"is_current","","Returns true if this context is the current context.",4,null],[10,"make_current","","Make this context current.",4,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"from","","",0,null],[11,"from","","",0,null],[11,"new","","Creates window settings with defaults.\n- samples: 0\n- fullscreen: false\n- exit_on_esc: false",5,{"inputs":[{"name":"t"},{"name":"s"}],"output":{"name":"windowsettings"}}],[11,"build","","Builds window.",5,null],[11,"get_title","","Gets title.",5,null],[11,"title","","Sets title.",5,null],[11,"get_size","","Gets size.",5,null],[11,"size","","Sets size.",5,null],[11,"get_fullscreen","","Gets fullscreen.",5,null],[11,"fullscreen","","Sets fullscreen.",5,null],[11,"get_exit_on_esc","","Gets exit on esc.",5,null],[11,"exit_on_esc","","Sets exit on esc.",5,null],[11,"get_samples","","Gets samples.",5,null],[11,"samples","","Sets samples.",5,null],[11,"get_vsync","","Gets vsync.",5,null],[11,"vsync","","Sets vsync.",5,null],[11,"get_maybe_opengl","","Gets opengl.",5,null],[11,"maybe_opengl","","Sets opengl.",5,null],[11,"opengl","","Sets opengl.",5,null],[11,"new","","Returns a new `NoWindow`.",6,{"inputs":[{"name":"windowsettings"}],"output":{"name":"nowindow"}}],[11,"should_close","","",6,null],[11,"set_should_close","","",6,null],[11,"size","","",6,null],[11,"swap_buffers","","",6,null],[11,"poll_event","","",6,null],[11,"draw_size","","",6,null],[11,"build_from_window_settings","","",6,{"inputs":[{"name":"windowsettings"}],"output":{"name":"result"}}],[11,"get_title","","",6,null],[11,"set_title","","",6,null],[11,"get_exit_on_esc","","",6,null],[11,"set_exit_on_esc","","",6,null],[11,"set_capture_cursor","","",6,null]],"paths":[[3,"Size"],[8,"BuildFromWindowSettings"],[8,"Window"],[8,"AdvancedWindow"],[8,"OpenGLWindow"],[3,"WindowSettings"],[3,"NoWindow"]]}; initSearch(searchIndex);