var searchIndex = {}; searchIndex["minifb"] = {"doc":"minifb is a cross platform library written in [Rust](https://www.rust-lang.org) that makes to\nopen windows (usually native to the running operating system) and can optionally show a 32-bit\nbuffer. minifb also support keyboard, mouse input and menus on selected operating systems.","items":[[3,"Window","minifb","",null,null],[3,"WindowOptions","","",null,null],[12,"borderless","","If the window should be borderless (default: false)",0,null],[12,"title","","If the window should have a title (default: true)",0,null],[12,"resize","","If it should be possible to resize the window (default: false)",0,null],[12,"scale","","Scale of the window that used in conjunction with update_with_buffer (default: X1)",0,null],[3,"UnixMenu","","",null,null],[12,"name","","Name of the menu",1,null],[12,"items","","All items of the menu.",1,null],[3,"UnixMenuItem","","",null,null],[12,"sub_menu","","Set to a menu if there is a Item is a sub_menu otherwise None",2,null],[12,"handle","","Handle of the MenuItem",2,null],[12,"id","","Id of the item (set by the user from the outside and should be reported back when pressed)",2,null],[12,"label","","Name of the item",2,null],[12,"enabled","","Set to true if enabled otherwise false",2,null],[12,"key","","Shortcut key",2,null],[12,"modifier","","Modifier for the key (Shift, Ctrl, etc)",2,null],[3,"Menu","","",null,null],[3,"MenuItem","","",null,null],[12,"id","","",3,null],[12,"label","","",3,null],[12,"enabled","","",3,null],[12,"key","","",3,null],[12,"modifier","","",3,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.",4,null],[13,"X1","","1X scale (which means leave the corrdinates sent into Window::new untouched)",4,null],[13,"X2","","2X window scale (Example: 320 x 200 -> 640 x 400)",4,null],[13,"X4","","4X window scale (Example: 320 x 200 -> 1280 x 800)",4,null],[13,"X8","","8X window scale (Example: 320 x 200 -> 2560 x 1600)",4,null],[13,"X16","","16X window scale (Example: 320 x 200 -> 5120 x 3200)",4,null],[13,"X32","","32 window scale (Example: 320 x 200 -> 10240 x 6400)",4,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",5,null],[13,"No","","Don't use repeat",5,null],[4,"MouseButton","","The various mouse buttons that are availible",null,null],[13,"Left","","Left mouse button",6,null],[13,"Middle","","Middle mouse button",6,null],[13,"Right","","Right mouse button",6,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)",7,null],[13,"Clamp","","Clamp the mouse coordinates within the window",7,null],[13,"Discard","","Discared if the mouse is outside the window",7,null],[4,"Error","","Errors that can be return from various operatiors",null,null],[13,"MenusNotSupported","","Returned if menu Menu function isn't supported",8,null],[13,"MenuExists","","Menu already exists",8,null],[13,"WindowCreate","","Menu already exists",8,null],[11,"fmt","","",8,null],[11,"description","","",8,null],[11,"cause","","",8,null],[11,"fmt","","",8,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],[8,"InputCallback","","This trait can be implemented and set with ```set_input_callback``` to reieve a callback\nwhene there is inputs incoming. Currently only support unicode chars.",null,null],[10,"add_char","","",9,null],[11,"clone","","",4,null],[11,"clone","","",5,null],[11,"eq","","",5,null],[11,"clone","","",6,null],[11,"eq","","",6,null],[11,"clone","","",7,null],[11,"eq","","",7,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_size","","",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,"set_input_callback","","",10,null],[11,"add_menu","","",10,null],[11,"remove_menu","","",10,null],[11,"get_unix_menus","","",10,null],[11,"is_menu_pressed","","",10,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"new","","Create a new menu. Returns error if failed",11,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"destroy_menu","","Destroys a menu. Currently not implemented",11,null],[11,"add_sub_menu","","Adds a sub menu to the current menu",11,null],[11,"add_separator","","Adds a menu separator",11,null],[11,"add_menu_item","","Adds an item to the menu",11,null],[11,"add_item","","Adds an item to the menu. Notice that you need to call "build" to finish the add\n# Examples",11,null],[11,"remove_item","","Removes an item from the menu",11,null],[11,"default","","",3,{"inputs":[],"output":{"name":"self"}}],[11,"clone","","",3,null],[11,"new","","Creates a new menu item",3,{"inputs":[{"name":"str"},{"name":"usize"}],"output":{"name":"menuitem"}}],[11,"shortcut","","Sets a shortcut key and modifer (and returns itself)",3,null],[11,"separator","","Sets item to a separator",3,null],[11,"enabled","","Sets the menu item disabled/or not",3,null],[11,"build","","Must be called to finialize building of a menu item when started with ```menu.add_item()```",3,null]],"paths":[[3,"WindowOptions"],[3,"UnixMenu"],[3,"UnixMenuItem"],[3,"MenuItem"],[4,"Scale"],[4,"KeyRepeat"],[4,"MouseButton"],[4,"MouseMode"],[4,"Error"],[8,"InputCallback"],[3,"Window"],[3,"Menu"]]}; initSearch(searchIndex);