var searchIndex = {}; searchIndex["minifb"] = {"doc":"","items":[[3,"Menu","minifb","",null,null],[12,"name","","Name of the menu item",0,null],[12,"id","","User-defined Id thot will be sent back to the application in [get_menu_event]",0,null],[12,"key","","Shortcut key for the menu item",0,null],[12,"modifier","","Modifier on Windows for the menu",0,null],[12,"mac_mod","","Modifier on Mac OS",0,null],[12,"enabled","","Menu item should be enabled on grayed out",0,null],[12,"sub_menu","","Sub-menu. Vector of a sub-menu, otherwise None if no sub-menu",0,null],[3,"Window","","",null,null],[3,"WindowOptions","","",null,null],[12,"borderless","","If the window should be borderless (default: false)",1,null],[12,"title","","If the window should have a title (default: true)",1,null],[12,"resize","","If it should be possible to resize the window (default: false)",1,null],[12,"scale","","Scale of the window that used in conjunction with update_with_buffer (default: X1)",1,null],[4,"Scale","","Scale will scale the frame buffer and the window that is being sent in when calling the update\nfunction. This is useful if you for example want to display a 320 x 256 window on a screen with\nmuch higher resolution which would result in that the window is very small.",null,null],[13,"FitScreen","","This mode checks your current screen resolution and will caluclate the largest window size\nthat can be used within that limit and resize it. Useful if you have a small buffer to\ndisplay on a high resolution screen.",2,null],[13,"X1","","1X scale (which means leave the corrdinates sent into Window::new untouched)",2,null],[13,"X2","","2X window scale (Example: 320 x 200 -> 640 x 400)",2,null],[13,"X4","","4X window scale (Example: 320 x 200 -> 1280 x 800)",2,null],[13,"X8","","8X window scale (Example: 320 x 200 -> 2560 x 1600)",2,null],[13,"X16","","16X window scale (Example: 320 x 200 -> 5120 x 3200)",2,null],[13,"X32","","32 window scale (Example: 320 x 200 -> 10240 x 6400)",2,null],[4,"KeyRepeat","","Used for is_key_pressed and get_keys_pressed() to indicated if repeat of presses is wanted",null,null],[13,"Yes","","Use repeat",3,null],[13,"No","","Don't use repeat",3,null],[4,"MouseButton","","The various mouse buttons that are availible",null,null],[13,"Left","","Left mouse button",4,null],[13,"Middle","","Middle mouse button",4,null],[13,"Right","","Right mouse button",4,null],[4,"MouseMode","","Key is used by the get key functions to check if some keys on the keyboard has been pressed",null,null],[13,"Pass","","Return mouse coords from outside of the window (may be negative)",5,null],[13,"Clamp","","Clamp the mouse coordinates within the window",5,null],[13,"Discard","","Discared if the mouse is outside the window",5,null],[4,"Error","","Errors that can be return from various operatiors",null,null],[13,"MenusNotSupported","","Returned if menu Menu function isn't supported",6,null],[13,"MenuExists","","Menu already exists",6,null],[13,"WindowCreate","","Menu already exists",6,null],[11,"fmt","","",6,null],[11,"description","","",6,null],[11,"cause","","",6,null],[11,"fmt","","",6,null],[0,"key","","",null,null],[4,"Key","minifb::key","Key is used by the get key functions to check if some keys on the keyboard has been pressed",null,null],[13,"Key0","","",7,null],[13,"Key1","","",7,null],[13,"Key2","","",7,null],[13,"Key3","","",7,null],[13,"Key4","","",7,null],[13,"Key5","","",7,null],[13,"Key6","","",7,null],[13,"Key7","","",7,null],[13,"Key8","","",7,null],[13,"Key9","","",7,null],[13,"A","","",7,null],[13,"B","","",7,null],[13,"C","","",7,null],[13,"D","","",7,null],[13,"E","","",7,null],[13,"F","","",7,null],[13,"G","","",7,null],[13,"H","","",7,null],[13,"I","","",7,null],[13,"J","","",7,null],[13,"K","","",7,null],[13,"L","","",7,null],[13,"M","","",7,null],[13,"N","","",7,null],[13,"O","","",7,null],[13,"P","","",7,null],[13,"Q","","",7,null],[13,"R","","",7,null],[13,"S","","",7,null],[13,"T","","",7,null],[13,"U","","",7,null],[13,"V","","",7,null],[13,"W","","",7,null],[13,"X","","",7,null],[13,"Y","","",7,null],[13,"Z","","",7,null],[13,"F1","","",7,null],[13,"F2","","",7,null],[13,"F3","","",7,null],[13,"F4","","",7,null],[13,"F5","","",7,null],[13,"F6","","",7,null],[13,"F7","","",7,null],[13,"F8","","",7,null],[13,"F9","","",7,null],[13,"F10","","",7,null],[13,"F11","","",7,null],[13,"F12","","",7,null],[13,"F13","","",7,null],[13,"F14","","",7,null],[13,"F15","","",7,null],[13,"Down","","",7,null],[13,"Left","","",7,null],[13,"Right","","",7,null],[13,"Up","","",7,null],[13,"Apostrophe","","",7,null],[13,"Backquote","","",7,null],[13,"Backslash","","",7,null],[13,"Comma","","",7,null],[13,"Equal","","",7,null],[13,"LeftBracket","","",7,null],[13,"Minus","","",7,null],[13,"Period","","",7,null],[13,"RightBracket","","",7,null],[13,"Semicolon","","",7,null],[13,"Slash","","",7,null],[13,"Backspace","","",7,null],[13,"Delete","","",7,null],[13,"End","","",7,null],[13,"Enter","","",7,null],[13,"Escape","","",7,null],[13,"Home","","",7,null],[13,"Insert","","",7,null],[13,"Menu","","",7,null],[13,"PageDown","","",7,null],[13,"PageUp","","",7,null],[13,"Pause","","",7,null],[13,"Space","","",7,null],[13,"Tab","","",7,null],[13,"NumLock","","",7,null],[13,"CapsLock","","",7,null],[13,"ScrollLock","","",7,null],[13,"LeftShift","","",7,null],[13,"RightShift","","",7,null],[13,"LeftCtrl","","",7,null],[13,"RightCtrl","","",7,null],[13,"NumPad0","","",7,null],[13,"NumPad1","","",7,null],[13,"NumPad2","","",7,null],[13,"NumPad3","","",7,null],[13,"NumPad4","","",7,null],[13,"NumPad5","","",7,null],[13,"NumPad6","","",7,null],[13,"NumPad7","","",7,null],[13,"NumPad8","","",7,null],[13,"NumPad9","","",7,null],[13,"NumPadDot","","",7,null],[13,"NumPadSlash","","",7,null],[13,"NumPadAsterisk","","",7,null],[13,"NumPadMinus","","",7,null],[13,"NumPadPlus","","",7,null],[13,"NumPadEnter","","",7,null],[13,"LeftAlt","","",7,null],[13,"RightAlt","","",7,null],[13,"LeftSuper","","",7,null],[13,"RightSuper","","",7,null],[13,"Unknown","","Used when an Unknown key has been pressed",7,null],[13,"Count","","",7,null],[11,"clone","","",7,null],[11,"eq","","",7,null],[0,"os","minifb","",null,null],[0,"windows","minifb::os","",null,null],[3,"Window","minifb::os::windows","",null,null],[4,"MinifbError","","",null,null],[13,"UnableToCreateWindow","","",8,null],[11,"new","","",9,{"inputs":[{"name":"str"},{"name":"usize"},{"name":"usize"},{"name":"windowoptions"}],"output":{"name":"result"}}],[11,"get_window_handle","","",9,null],[11,"set_position","","",9,null],[11,"get_mouse_pos","","",9,null],[11,"get_mouse_down","","",9,null],[11,"get_scroll_wheel","","",9,null],[11,"get_keys","","",9,null],[11,"get_keys_pressed","","",9,null],[11,"is_key_down","","",9,null],[11,"set_key_repeat_delay","","",9,null],[11,"set_key_repeat_rate","","",9,null],[11,"is_key_pressed","","",9,null],[11,"is_open","","",9,null],[11,"update_with_buffer","","",9,null],[11,"update","","",9,null],[11,"is_active","","",9,null],[11,"menu_exists","","",9,null],[11,"add_menu","","",9,null],[11,"update_menu","","",9,null],[11,"remove_menu","","",9,null],[11,"is_menu_pressed","","",9,null],[11,"drop","","",9,null],[11,"separotor","minifb","",0,{"inputs":[],"output":{"name":"menu"}}],[11,"default","","",0,{"inputs":[],"output":{"name":"menu"}}],[6,"Result","","",null,null],[17,"MENU_KEY_COMMAND","","Command key on Mac OS",null,null],[17,"MENU_KEY_WIN","","Windows key on Windows",null,null],[17,"MENU_KEY_SHIFT","","Shift key",null,null],[17,"MENU_KEY_CTRL","","Control key",null,null],[17,"MENU_KEY_ALT","","Alt key",null,null],[11,"clone","","",2,null],[11,"clone","","",3,null],[11,"eq","","",3,null],[11,"clone","","",4,null],[11,"eq","","",4,null],[11,"clone","","",5,null],[11,"eq","","",5,null],[11,"new","","",10,{"inputs":[{"name":"str"},{"name":"usize"},{"name":"usize"},{"name":"windowoptions"}],"output":{"name":"result"}}],[11,"get_window_handle","","",10,null],[11,"update_with_buffer","","",10,null],[11,"update","","",10,null],[11,"is_open","","",10,null],[11,"set_position","","",10,null],[11,"get_mouse_pos","","",10,null],[11,"get_mouse_down","","",10,null],[11,"get_scroll_wheel","","",10,null],[11,"get_keys","","",10,null],[11,"get_keys_pressed","","",10,null],[11,"is_key_down","","",10,null],[11,"is_key_pressed","","",10,null],[11,"set_key_repeat_delay","","",10,null],[11,"set_key_repeat_rate","","",10,null],[11,"is_active","","",10,null],[11,"add_menu","","",10,null],[11,"update_menu","","",10,null],[11,"remove_menu","","",10,null],[11,"is_menu_pressed","","",10,null]],"paths":[[3,"Menu"],[3,"WindowOptions"],[4,"Scale"],[4,"KeyRepeat"],[4,"MouseButton"],[4,"MouseMode"],[4,"Error"],[4,"Key"],[4,"MinifbError"],[3,"Window"],[3,"Window"]]}; initSearch(searchIndex);