var searchIndex = {}; searchIndex["sdl2"] = {"doc":"","items":[[0,"keycode","sdl2","",null,null],[4,"KeyCode","sdl2::keycode","",null,null],[13,"Unknown","","",0,null],[13,"Backspace","","",0,null],[13,"Tab","","",0,null],[13,"Return","","",0,null],[13,"Escape","","",0,null],[13,"Space","","",0,null],[13,"Exclaim","","",0,null],[13,"Quotedbl","","",0,null],[13,"Hash","","",0,null],[13,"Dollar","","",0,null],[13,"Percent","","",0,null],[13,"Ampersand","","",0,null],[13,"Quote","","",0,null],[13,"LeftParen","","",0,null],[13,"RightParen","","",0,null],[13,"Asterisk","","",0,null],[13,"Plus","","",0,null],[13,"Comma","","",0,null],[13,"Minus","","",0,null],[13,"Period","","",0,null],[13,"Slash","","",0,null],[13,"Num0","","",0,null],[13,"Num1","","",0,null],[13,"Num2","","",0,null],[13,"Num3","","",0,null],[13,"Num4","","",0,null],[13,"Num5","","",0,null],[13,"Num6","","",0,null],[13,"Num7","","",0,null],[13,"Num8","","",0,null],[13,"Num9","","",0,null],[13,"Colon","","",0,null],[13,"Semicolon","","",0,null],[13,"Less","","",0,null],[13,"Equals","","",0,null],[13,"Greater","","",0,null],[13,"Question","","",0,null],[13,"At","","",0,null],[13,"LeftBracket","","",0,null],[13,"Backslash","","",0,null],[13,"RightBracket","","",0,null],[13,"Caret","","",0,null],[13,"Underscore","","",0,null],[13,"Backquote","","",0,null],[13,"A","","",0,null],[13,"B","","",0,null],[13,"C","","",0,null],[13,"D","","",0,null],[13,"E","","",0,null],[13,"F","","",0,null],[13,"G","","",0,null],[13,"H","","",0,null],[13,"I","","",0,null],[13,"J","","",0,null],[13,"K","","",0,null],[13,"L","","",0,null],[13,"M","","",0,null],[13,"N","","",0,null],[13,"O","","",0,null],[13,"P","","",0,null],[13,"Q","","",0,null],[13,"R","","",0,null],[13,"S","","",0,null],[13,"T","","",0,null],[13,"U","","",0,null],[13,"V","","",0,null],[13,"W","","",0,null],[13,"X","","",0,null],[13,"Y","","",0,null],[13,"Z","","",0,null],[13,"Delete","","",0,null],[13,"CapsLock","","",0,null],[13,"F1","","",0,null],[13,"F2","","",0,null],[13,"F3","","",0,null],[13,"F4","","",0,null],[13,"F5","","",0,null],[13,"F6","","",0,null],[13,"F7","","",0,null],[13,"F8","","",0,null],[13,"F9","","",0,null],[13,"F10","","",0,null],[13,"F11","","",0,null],[13,"F12","","",0,null],[13,"PrintScreen","","",0,null],[13,"ScrollLock","","",0,null],[13,"Pause","","",0,null],[13,"Insert","","",0,null],[13,"Home","","",0,null],[13,"PageUp","","",0,null],[13,"End","","",0,null],[13,"PageDown","","",0,null],[13,"Right","","",0,null],[13,"Left","","",0,null],[13,"Down","","",0,null],[13,"Up","","",0,null],[13,"NumLockClear","","",0,null],[13,"KpDivide","","",0,null],[13,"KpMultiply","","",0,null],[13,"KpMinus","","",0,null],[13,"KpPlus","","",0,null],[13,"KpEnter","","",0,null],[13,"Kp1","","",0,null],[13,"Kp2","","",0,null],[13,"Kp3","","",0,null],[13,"Kp4","","",0,null],[13,"Kp5","","",0,null],[13,"Kp6","","",0,null],[13,"Kp7","","",0,null],[13,"Kp8","","",0,null],[13,"Kp9","","",0,null],[13,"Kp0","","",0,null],[13,"KpPeriod","","",0,null],[13,"Application","","",0,null],[13,"Power","","",0,null],[13,"KpEquals","","",0,null],[13,"F13","","",0,null],[13,"F14","","",0,null],[13,"F15","","",0,null],[13,"F16","","",0,null],[13,"F17","","",0,null],[13,"F18","","",0,null],[13,"F19","","",0,null],[13,"F20","","",0,null],[13,"F21","","",0,null],[13,"F22","","",0,null],[13,"F23","","",0,null],[13,"F24","","",0,null],[13,"Execute","","",0,null],[13,"Help","","",0,null],[13,"Menu","","",0,null],[13,"Select","","",0,null],[13,"Stop","","",0,null],[13,"Again","","",0,null],[13,"Undo","","",0,null],[13,"Cut","","",0,null],[13,"Copy","","",0,null],[13,"Paste","","",0,null],[13,"Find","","",0,null],[13,"Mute","","",0,null],[13,"VolumeUp","","",0,null],[13,"VolumeDown","","",0,null],[13,"KpComma","","",0,null],[13,"KpEqualsAS400","","",0,null],[13,"AltErase","","",0,null],[13,"Sysreq","","",0,null],[13,"Cancel","","",0,null],[13,"Clear","","",0,null],[13,"Prior","","",0,null],[13,"Return2","","",0,null],[13,"Separator","","",0,null],[13,"Out","","",0,null],[13,"Oper","","",0,null],[13,"ClearAgain","","",0,null],[13,"CrSel","","",0,null],[13,"ExSel","","",0,null],[13,"Kp00","","",0,null],[13,"Kp000","","",0,null],[13,"ThousandsSeparator","","",0,null],[13,"DecimalSeparator","","",0,null],[13,"CurrencyUnit","","",0,null],[13,"CurrencySubUnit","","",0,null],[13,"KpLeftParen","","",0,null],[13,"KpRightParen","","",0,null],[13,"KpLeftBrace","","",0,null],[13,"KpRightBrace","","",0,null],[13,"KpTab","","",0,null],[13,"KpBackspace","","",0,null],[13,"KpA","","",0,null],[13,"KpB","","",0,null],[13,"KpC","","",0,null],[13,"KpD","","",0,null],[13,"KpE","","",0,null],[13,"KpF","","",0,null],[13,"KpXor","","",0,null],[13,"KpPower","","",0,null],[13,"KpPercent","","",0,null],[13,"KpLess","","",0,null],[13,"KpGreater","","",0,null],[13,"KpAmpersand","","",0,null],[13,"KpDblAmpersand","","",0,null],[13,"KpVerticalBar","","",0,null],[13,"KpDblVerticalBar","","",0,null],[13,"KpColon","","",0,null],[13,"KpHash","","",0,null],[13,"KpSpace","","",0,null],[13,"KpAt","","",0,null],[13,"KpExclam","","",0,null],[13,"KpMemStore","","",0,null],[13,"KpMemRecall","","",0,null],[13,"KpMemClear","","",0,null],[13,"KpMemAdd","","",0,null],[13,"KpMemSubtract","","",0,null],[13,"KpMemMultiply","","",0,null],[13,"KpMemDivide","","",0,null],[13,"KpPlusMinus","","",0,null],[13,"KpCear","","",0,null],[13,"KpClearEntry","","",0,null],[13,"KpBinary","","",0,null],[13,"KpOctal","","",0,null],[13,"KpDecimal","","",0,null],[13,"KpHexadecimal","","",0,null],[13,"LCtrl","","",0,null],[13,"LShift","","",0,null],[13,"LAlt","","",0,null],[13,"LGui","","",0,null],[13,"RCtrl","","",0,null],[13,"RShift","","",0,null],[13,"RAlt","","",0,null],[13,"RGui","","",0,null],[13,"Mode","","",0,null],[13,"AudioNext","","",0,null],[13,"AudioPrev","","",0,null],[13,"AudioStop","","",0,null],[13,"AudioPlay","","",0,null],[13,"AudioMute","","",0,null],[13,"MediaSelect","","",0,null],[13,"Www","","",0,null],[13,"Mail","","",0,null],[13,"Calculator","","",0,null],[13,"Computer","","",0,null],[13,"AcSearch","","",0,null],[13,"AcHome","","",0,null],[13,"AcBack","","",0,null],[13,"AcForward","","",0,null],[13,"AcStop","","",0,null],[13,"AcRefresh","","",0,null],[13,"AcBookmarks","","",0,null],[13,"BrightnessDown","","",0,null],[13,"BrightnessUp","","",0,null],[13,"DisplaySwitch","","",0,null],[13,"KbdIllumToggle","","",0,null],[13,"KbdIllumDown","","",0,null],[13,"KbdIllumUp","","",0,null],[13,"Eject","","",0,null],[13,"Sleep","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"eq","","",0,null],[11,"hash","","",0,null],[11,"to_i64","","",0,null],[11,"to_u64","","",0,null],[11,"to_isize","","",0,null],[11,"from_i64","","",0,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",0,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[0,"scancode","sdl2","",null,null],[4,"ScanCode","sdl2::scancode","",null,null],[13,"Unknown","","",1,null],[13,"A","","",1,null],[13,"B","","",1,null],[13,"C","","",1,null],[13,"D","","",1,null],[13,"E","","",1,null],[13,"F","","",1,null],[13,"G","","",1,null],[13,"H","","",1,null],[13,"I","","",1,null],[13,"J","","",1,null],[13,"K","","",1,null],[13,"L","","",1,null],[13,"M","","",1,null],[13,"N","","",1,null],[13,"O","","",1,null],[13,"P","","",1,null],[13,"Q","","",1,null],[13,"R","","",1,null],[13,"S","","",1,null],[13,"T","","",1,null],[13,"U","","",1,null],[13,"V","","",1,null],[13,"W","","",1,null],[13,"X","","",1,null],[13,"Y","","",1,null],[13,"Z","","",1,null],[13,"Num1","","",1,null],[13,"Num2","","",1,null],[13,"Num3","","",1,null],[13,"Num4","","",1,null],[13,"Num5","","",1,null],[13,"Num6","","",1,null],[13,"Num7","","",1,null],[13,"Num8","","",1,null],[13,"Num9","","",1,null],[13,"Num0","","",1,null],[13,"Return","","",1,null],[13,"Escape","","",1,null],[13,"Backspace","","",1,null],[13,"Tab","","",1,null],[13,"Space","","",1,null],[13,"Minus","","",1,null],[13,"Equals","","",1,null],[13,"LeftBracket","","",1,null],[13,"RightBracket","","",1,null],[13,"Backslash","","",1,null],[13,"NonUsHash","","",1,null],[13,"Semicolon","","",1,null],[13,"Apostrophe","","",1,null],[13,"Grave","","",1,null],[13,"Comma","","",1,null],[13,"Period","","",1,null],[13,"Slash","","",1,null],[13,"CapsLock","","",1,null],[13,"F1","","",1,null],[13,"F2","","",1,null],[13,"F3","","",1,null],[13,"F4","","",1,null],[13,"F5","","",1,null],[13,"F6","","",1,null],[13,"F7","","",1,null],[13,"F8","","",1,null],[13,"F9","","",1,null],[13,"F10","","",1,null],[13,"F11","","",1,null],[13,"F12","","",1,null],[13,"PrintScreen","","",1,null],[13,"ScrollLock","","",1,null],[13,"Pause","","",1,null],[13,"Insert","","",1,null],[13,"Home","","",1,null],[13,"PageUp","","",1,null],[13,"Delete","","",1,null],[13,"End","","",1,null],[13,"PageDown","","",1,null],[13,"Right","","",1,null],[13,"Left","","",1,null],[13,"Down","","",1,null],[13,"Up","","",1,null],[13,"NumLockClear","","",1,null],[13,"KpDivide","","",1,null],[13,"KpMultiply","","",1,null],[13,"KpMinus","","",1,null],[13,"KpPlus","","",1,null],[13,"KpEnter","","",1,null],[13,"Kp1","","",1,null],[13,"Kp2","","",1,null],[13,"Kp3","","",1,null],[13,"Kp4","","",1,null],[13,"Kp5","","",1,null],[13,"Kp6","","",1,null],[13,"Kp7","","",1,null],[13,"Kp8","","",1,null],[13,"Kp9","","",1,null],[13,"Kp0","","",1,null],[13,"KpPeriod","","",1,null],[13,"NonUsBackslash","","",1,null],[13,"Application","","",1,null],[13,"Power","","",1,null],[13,"KpEquals","","",1,null],[13,"F13","","",1,null],[13,"F14","","",1,null],[13,"F15","","",1,null],[13,"F16","","",1,null],[13,"F17","","",1,null],[13,"F18","","",1,null],[13,"F19","","",1,null],[13,"F20","","",1,null],[13,"F21","","",1,null],[13,"F22","","",1,null],[13,"F23","","",1,null],[13,"F24","","",1,null],[13,"Execute","","",1,null],[13,"Help","","",1,null],[13,"Menu","","",1,null],[13,"Select","","",1,null],[13,"Stop","","",1,null],[13,"Again","","",1,null],[13,"Undo","","",1,null],[13,"Cut","","",1,null],[13,"Copy","","",1,null],[13,"Paste","","",1,null],[13,"Find","","",1,null],[13,"Mute","","",1,null],[13,"VolumeUp","","",1,null],[13,"VolumeDown","","",1,null],[13,"KpComma","","",1,null],[13,"KpEqualsAS400","","",1,null],[13,"International1","","",1,null],[13,"International2","","",1,null],[13,"International3","","",1,null],[13,"International4","","",1,null],[13,"International5","","",1,null],[13,"International6","","",1,null],[13,"International7","","",1,null],[13,"International8","","",1,null],[13,"International9","","",1,null],[13,"Lang1","","",1,null],[13,"Lang2","","",1,null],[13,"Lang3","","",1,null],[13,"Lang4","","",1,null],[13,"Lang5","","",1,null],[13,"Lang6","","",1,null],[13,"Lang7","","",1,null],[13,"Lang8","","",1,null],[13,"Lang9","","",1,null],[13,"AltErase","","",1,null],[13,"SysReq","","",1,null],[13,"Cancel","","",1,null],[13,"Clear","","",1,null],[13,"Prior","","",1,null],[13,"Return2","","",1,null],[13,"Separator","","",1,null],[13,"Out","","",1,null],[13,"Oper","","",1,null],[13,"ClearAgain","","",1,null],[13,"Crse","","",1,null],[13,"ExseL","","",1,null],[13,"Kp00","","",1,null],[13,"Kp000","","",1,null],[13,"ThousandsSeparator","","",1,null],[13,"DecimalSeparator","","",1,null],[13,"CurrencyUnit","","",1,null],[13,"CurrencySubUnit","","",1,null],[13,"KpLeftParen","","",1,null],[13,"KpRightParen","","",1,null],[13,"KpLeftBrace","","",1,null],[13,"KpRightBrace","","",1,null],[13,"KpTab","","",1,null],[13,"KpBackspace","","",1,null],[13,"KpA","","",1,null],[13,"KpB","","",1,null],[13,"KpC","","",1,null],[13,"KpD","","",1,null],[13,"KpE","","",1,null],[13,"KpF","","",1,null],[13,"KpXor","","",1,null],[13,"KpPower","","",1,null],[13,"KpPercent","","",1,null],[13,"KpLess","","",1,null],[13,"KpGreater","","",1,null],[13,"KpAmpersand","","",1,null],[13,"KpDblAmpersand","","",1,null],[13,"KpVerticalBar","","",1,null],[13,"KpDblVerticalBar","","",1,null],[13,"KpColon","","",1,null],[13,"KpHash","","",1,null],[13,"KpSpace","","",1,null],[13,"KpAt","","",1,null],[13,"KpExclam","","",1,null],[13,"KpMemStore","","",1,null],[13,"KpMemRecall","","",1,null],[13,"KpMemClear","","",1,null],[13,"KpMemAdd","","",1,null],[13,"KpMemSubtract","","",1,null],[13,"KpMemMultiply","","",1,null],[13,"KpMemDivide","","",1,null],[13,"KpPlusMinus","","",1,null],[13,"KpClear","","",1,null],[13,"KpClearEntry","","",1,null],[13,"KpBinary","","",1,null],[13,"KpOoctal","","",1,null],[13,"KpDecimal","","",1,null],[13,"KpHexadecimal","","",1,null],[13,"LCtrl","","",1,null],[13,"LShift","","",1,null],[13,"LAlt","","",1,null],[13,"LGui","","",1,null],[13,"RCtrl","","",1,null],[13,"RShift","","",1,null],[13,"RAlt","","",1,null],[13,"RGui","","",1,null],[13,"Mode","","",1,null],[13,"AudioNext","","",1,null],[13,"AudioPrev","","",1,null],[13,"AudioStop","","",1,null],[13,"AudioPlay","","",1,null],[13,"AudioMute","","",1,null],[13,"MediaSelect","","",1,null],[13,"Www","","",1,null],[13,"Mail","","",1,null],[13,"Calculator","","",1,null],[13,"Computer","","",1,null],[13,"AcSearch","","",1,null],[13,"AcHome","","",1,null],[13,"AcBack","","",1,null],[13,"AcForward","","",1,null],[13,"AcStop","","",1,null],[13,"AcRefresh","","",1,null],[13,"AcBookmarks","","",1,null],[13,"BrightnessDown","","",1,null],[13,"BrightnessUp","","",1,null],[13,"DisplaySwitch","","",1,null],[13,"KbdIllumToggle","","",1,null],[13,"KbdIllumDown","","",1,null],[13,"KbdIllumUp","","",1,null],[13,"Eject","","",1,null],[13,"Sleep","","",1,null],[13,"App1","","",1,null],[13,"App2","","",1,null],[13,"Num","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"eq","","",1,null],[11,"hash","","",1,null],[11,"to_i64","","",1,null],[11,"to_u64","","",1,null],[11,"to_isize","","",1,null],[11,"from_i64","","",1,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",1,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[0,"clipboard","sdl2","",null,null],[5,"set_clipboard_text","sdl2::clipboard","",null,{"inputs":[{"name":"string"}],"output":{"name":"sdlresult"}}],[5,"get_clipboard_text","","",null,{"inputs":[],"output":{"name":"sdlresult"}}],[5,"has_clipboard_text","","",null,{"inputs":[],"output":{"name":"bool"}}],[0,"cpuinfo","sdl2","",null,null],[5,"get_cpu_count","sdl2::cpuinfo","",null,{"inputs":[],"output":{"name":"i32"}}],[5,"get_cpu_cache_line_size","","",null,{"inputs":[],"output":{"name":"i32"}}],[5,"has_rdtsc","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_alti_vec","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_mmx","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_3d_now","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_sse","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_sse2","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_sse3","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_sse41","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_sse42","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"has_avx","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"get_system_ram","","",null,{"inputs":[],"output":{"name":"i32"}}],[17,"CACHELINESIZE","","",null,null],[0,"event","sdl2","Event Handling",null,null],[3,"EventPump","sdl2::event","A thread-safe type that encapsulates SDL event-pumping functions.",null,null],[3,"EventPollIterator","","An iterator that calls `EventPump::poll_event()`.",null,null],[3,"EventWaitIterator","","An iterator that calls `EventPump::wait_event()`.",null,null],[3,"EventWaitTimeoutIterator","","An iterator that calls `EventPump::wait_event_timeout()`.",null,null],[4,"EventType","","Types of events that can be delivered.",null,null],[13,"First","","",2,null],[13,"Quit","","",2,null],[13,"AppTerminating","","",2,null],[13,"AppLowMemory","","",2,null],[13,"AppWillEnterBackground","","",2,null],[13,"AppDidEnterBackground","","",2,null],[13,"AppWillEnterForeground","","",2,null],[13,"AppDidEnterForeground","","",2,null],[13,"Window","","",2,null],[13,"KeyDown","","",2,null],[13,"KeyUp","","",2,null],[13,"TextEditing","","",2,null],[13,"TextInput","","",2,null],[13,"MouseMotion","","",2,null],[13,"MouseButtonDown","","",2,null],[13,"MouseButtonUp","","",2,null],[13,"MouseWheel","","",2,null],[13,"JoyAxisMotion","","",2,null],[13,"JoyBallMotion","","",2,null],[13,"JoyHatMotion","","",2,null],[13,"JoyButtonDown","","",2,null],[13,"JoyButtonUp","","",2,null],[13,"JoyDeviceAdded","","",2,null],[13,"JoyDeviceRemoved","","",2,null],[13,"ControllerAxisMotion","","",2,null],[13,"ControllerButtonDown","","",2,null],[13,"ControllerButtonUp","","",2,null],[13,"ControllerDeviceAdded","","",2,null],[13,"ControllerDeviceRemoved","","",2,null],[13,"ControllerDeviceRemapped","","",2,null],[13,"FingerDown","","",2,null],[13,"FingerUp","","",2,null],[13,"FingerMotion","","",2,null],[13,"DollarGesture","","",2,null],[13,"DollarRecord","","",2,null],[13,"MultiGesture","","",2,null],[13,"ClipboardUpdate","","",2,null],[13,"DropFile","","",2,null],[13,"User","","",2,null],[13,"Last","","",2,null],[4,"WindowEventId","","An enum of window events.",null,null],[13,"None","","",3,null],[13,"Shown","","",3,null],[13,"Hidden","","",3,null],[13,"Exposed","","",3,null],[13,"Moved","","",3,null],[13,"Resized","","",3,null],[13,"SizeChanged","","",3,null],[13,"Minimized","","",3,null],[13,"Maximized","","",3,null],[13,"Restored","","",3,null],[13,"Enter","","",3,null],[13,"Leave","","",3,null],[13,"FocusGained","","",3,null],[13,"FocusLost","","",3,null],[13,"Close","","",3,null],[4,"Event","","Different event types.",null,null],[13,"Quit","","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[13,"AppTerminating","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[13,"AppLowMemory","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[13,"AppWillEnterBackground","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[13,"AppDidEnterBackground","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[13,"AppWillEnterForeground","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[13,"AppDidEnterForeground","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[13,"Window","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"win_event_id","","",4,null],[12,"data1","","",4,null],[12,"data2","","",4,null],[13,"KeyDown","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"keycode","","",4,null],[12,"scancode","","",4,null],[12,"keymod","","",4,null],[12,"repeat","","",4,null],[13,"KeyUp","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"keycode","","",4,null],[12,"scancode","","",4,null],[12,"keymod","","",4,null],[12,"repeat","","",4,null],[13,"TextEditing","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"text","","",4,null],[12,"start","","",4,null],[12,"length","","",4,null],[13,"TextInput","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"text","","",4,null],[13,"MouseMotion","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"which","","",4,null],[12,"mousestate","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[12,"xrel","","",4,null],[12,"yrel","","",4,null],[13,"MouseButtonDown","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"which","","",4,null],[12,"mouse_btn","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[13,"MouseButtonUp","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"which","","",4,null],[12,"mouse_btn","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[13,"MouseWheel","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"which","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[13,"JoyAxisMotion","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[12,"axis_idx","","",4,null],[12,"value","","",4,null],[13,"JoyBallMotion","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[12,"ball_idx","","",4,null],[12,"xrel","","",4,null],[12,"yrel","","",4,null],[13,"JoyHatMotion","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[12,"hat_idx","","",4,null],[12,"state","","",4,null],[13,"JoyButtonDown","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[12,"button_idx","","",4,null],[13,"JoyButtonUp","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[12,"button_idx","","",4,null],[13,"JoyDeviceAdded","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[13,"JoyDeviceRemoved","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[13,"ControllerAxisMotion","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[12,"axis","","",4,null],[12,"value","","",4,null],[13,"ControllerButtonDown","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[12,"button","","",4,null],[13,"ControllerButtonUp","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[12,"button","","",4,null],[13,"ControllerDeviceAdded","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[13,"ControllerDeviceRemoved","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[13,"ControllerDeviceRemapped","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"which","","",4,null],[13,"FingerDown","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"touch_id","","",4,null],[12,"finger_id","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[12,"dx","","",4,null],[12,"dy","","",4,null],[12,"pressure","","",4,null],[13,"FingerUp","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"touch_id","","",4,null],[12,"finger_id","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[12,"dx","","",4,null],[12,"dy","","",4,null],[12,"pressure","","",4,null],[13,"FingerMotion","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"touch_id","","",4,null],[12,"finger_id","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[12,"dx","","",4,null],[12,"dy","","",4,null],[12,"pressure","","",4,null],[13,"DollarGesture","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"touch_id","","",4,null],[12,"gesture_id","","",4,null],[12,"num_fingers","","",4,null],[12,"error","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[13,"DollarRecord","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"touch_id","","",4,null],[12,"gesture_id","","",4,null],[12,"num_fingers","","",4,null],[12,"error","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[13,"MultiGesture","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"touch_id","","",4,null],[12,"d_theta","","",4,null],[12,"d_dist","","",4,null],[12,"x","","",4,null],[12,"y","","",4,null],[12,"num_fingers","","",4,null],[13,"ClipboardUpdate","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[13,"DropFile","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"filename","","",4,null],[13,"User","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"window_id","","",4,null],[12,"type_","","",4,null],[12,"code","","",4,null],[13,"Unknown","sdl2::event","",4,null],[12,"timestamp","sdl2::event::Event","",4,null],[12,"type_","","",4,null],[5,"flush_event","sdl2::event","Removes all events in the event queue that match the specified event type.",null,{"inputs":[{"name":"eventtype"}],"output":null}],[5,"flush_events","","Removes all events in the event queue that match the specified type range.",null,{"inputs":[{"name":"u32"},{"name":"u32"}],"output":null}],[5,"peek_events","","Reads the events at the front of the event queue, until the maximum amount\nof events is read.",null,{"inputs":[{"name":"u32"}],"output":{"name":"b"}}],[5,"push_event","","Pushes an event to the event queue.",null,{"inputs":[{"name":"event"}],"output":{"name":"sdlresult"}}],[11,"clone","","",2,null],[11,"from_i64","","",2,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",2,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"eq","","",3,null],[11,"fmt","","",4,null],[11,"poll_event","","Polls for currently pending events.",5,null],[11,"poll_iter","","Returns a polling iterator that calls `poll_event()`.\nThe iterator will terminate once there are no more pending events.",5,null],[11,"pump_events","","Pumps the event loop, gathering events from the input devices.",5,null],[11,"wait_event","","Waits indefinitely for the next available event.",5,null],[11,"wait_event_timeout","","Waits until the specified timeout (in milliseconds) for the next available event.",5,null],[11,"wait_iter","","Returns a waiting iterator that calls `wait_event()`.",5,null],[11,"wait_timeout_iter","","Returns a waiting iterator that calls `wait_event_timeout()`.",5,null],[11,"next","","",6,null],[11,"next","","",7,null],[11,"next","","",8,null],[0,"filesystem","sdl2","",null,null],[5,"get_base_path","sdl2::filesystem","",null,{"inputs":[],"output":{"name":"sdlresult"}}],[5,"get_pref_path","","",null,{"inputs":[{"name":"str"},{"name":"str"}],"output":{"name":"sdlresult"}}],[0,"gesture","sdl2","",null,null],[0,"touch","","",null,null],[5,"get_num_touch_devices","sdl2::touch","",null,{"inputs":[],"output":{"name":"i32"}}],[5,"get_touch_device","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"touchdevice"}}],[5,"get_num_touch_fingers","","",null,{"inputs":[{"name":"touchdevice"}],"output":{"name":"i32"}}],[5,"get_touch_finger","","",null,{"inputs":[{"name":"touchdevice"},{"name":"i32"}],"output":{"name":"option"}}],[6,"Finger","","",null,null],[6,"TouchDevice","","",null,null],[0,"joystick","sdl2","",null,null],[3,"Joystick","sdl2::joystick","Wrapper around the SDL_Joystick object",null,null],[3,"Guid","","Wrapper around a SDL_JoystickGUID, a globally unique identifier\nfor a joystick.",null,null],[4,"HatState","","This is represented in SDL2 as a bitfield but obviously not all\ncombinations make sense: 5 for instance would mean up and down at\nthe same time... To simplify things I turn it into an enum which\nis how the SDL2 docs present it anyway (using macros).",null,null],[13,"Centered","","",9,null],[13,"Up","","",9,null],[13,"Right","","",9,null],[13,"Down","","",9,null],[13,"Left","","",9,null],[13,"RightUp","","",9,null],[13,"RightDown","","",9,null],[13,"LeftUp","","",9,null],[13,"Leftdown","","",9,null],[5,"num_joysticks","","Retreive the total number of attached joysticks *and* controllers\nidentified by SDL.",null,{"inputs":[],"output":{"name":"sdlresult"}}],[5,"get_device_guid","","Get the GUID for the joystick number `id`",null,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[5,"set_event_state","","If state is `true` joystick events are processed, otherwise\nthey're ignored.",null,{"inputs":[{"name":"bool"}],"output":null}],[5,"get_event_state","","Return `true` if joystick events are processed.",null,{"inputs":[],"output":{"name":"bool"}}],[5,"name_for_index","","Return the name of the joystick at index `id`",null,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[5,"update","","Force joystick update when not using the event loop",null,{"inputs":[],"output":null}],[11,"open","","Attempt to open the joystick at number `id` and return it.",10,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[11,"name","","Return the name of the joystick or an empty string if no name\nis found.",10,null],[11,"get_attached","","Return true if the joystick has been opened and currently\nconnected.",10,null],[11,"get_instance_id","","",10,null],[11,"get_guid","","Retreive the joystick's GUID",10,null],[11,"get_num_axis","","Retreive the number of axes for this joystick",10,null],[11,"get_axis","","Get the position of the given `axis`",10,null],[11,"get_num_buttons","","Retreive the number of buttons for this joystick",10,null],[11,"get_button","","Return `Ok(true)` if `button` is pressed.",10,null],[11,"get_num_balls","","Retreive the number of balls for this joystick",10,null],[11,"get_ball","","Return a pair `(dx, dy)` containing the difference in axis\nposition since the last poll",10,null],[11,"get_num_hats","","Retreive the number of balls for this joystick",10,null],[11,"get_hat","","Return the position of `hat` for this joystick",10,null],[11,"drop","","",10,null],[11,"clone","","",11,null],[11,"from_string","","Create a GUID from a string representation.",11,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"is_zero","","Return `true` if GUID is full 0s",11,null],[11,"get_string","","Return a String representation of GUID",11,null],[11,"raw","","Return a copy of the internal SDL_JoystickGUID",11,null],[11,"fmt","","",11,null],[11,"fmt","","",9,null],[11,"clone","","",9,null],[11,"from_raw","","",9,{"inputs":[{"name":"u8"}],"output":{"name":"hatstate"}}],[0,"controller","sdl2","",null,null],[3,"GameController","sdl2::controller","Wrapper around the SDL_GameController object",null,null],[4,"Axis","","",null,null],[13,"Invalid","","",12,null],[13,"LeftX","","",12,null],[13,"LeftY","","",12,null],[13,"RightX","","",12,null],[13,"RightY","","",12,null],[13,"TriggerLeft","","",12,null],[13,"TriggerRight","","",12,null],[4,"Button","","",null,null],[13,"Invalid","","",13,null],[13,"A","","",13,null],[13,"B","","",13,null],[13,"X","","",13,null],[13,"Y","","",13,null],[13,"Back","","",13,null],[13,"Guide","","",13,null],[13,"Start","","",13,null],[13,"LeftStick","","",13,null],[13,"RightStick","","",13,null],[13,"LeftShoulder","","",13,null],[13,"RightShoulder","","",13,null],[13,"DPadUp","","",13,null],[13,"DPadDown","","",13,null],[13,"DPadLeft","","",13,null],[13,"DPadRight","","",13,null],[4,"MappingStatus","","Possible return values for `add_mapping`",null,null],[13,"Added","","",14,null],[13,"Updated","","",14,null],[5,"wrap_controller_axis","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"axis"}}],[5,"wrap_controller_button","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"button"}}],[5,"is_game_controller","","Return true if the joystick at index `id` is a game controller.",null,{"inputs":[{"name":"i32"}],"output":{"name":"bool"}}],[5,"name_for_index","","Return the name of the controller at index `id`",null,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[5,"update","","Force controller update when not using the event loop",null,{"inputs":[],"output":null}],[5,"set_event_state","","If state is `true` controller events are processed, otherwise\nthey're ignored.",null,{"inputs":[{"name":"bool"}],"output":null}],[5,"get_event_state","","Return `true` if controller events are processed.",null,{"inputs":[],"output":{"name":"bool"}}],[5,"add_mapping","","Add a new mapping from a mapping string",null,{"inputs":[{"name":"str"}],"output":{"name":"sdlresult"}}],[5,"mapping_for_guid","","",null,{"inputs":[{"name":"guid"}],"output":{"name":"sdlresult"}}],[11,"fmt","","",12,null],[11,"eq","","",12,null],[11,"clone","","",12,null],[11,"from_string","","Return the Axis from a string description in the same format\nused by the game controller mapping strings.",12,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"get_string","","Return a string for a given axis in the same format using by\nthe game controller mapping strings",12,null],[11,"fmt","","",13,null],[11,"eq","","",13,null],[11,"clone","","",13,null],[11,"from_string","","Return the Button from a string description in the same format\nused by the game controller mapping strings.",13,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"get_string","","Return a string for a given button in the same format using by\nthe game controller mapping strings",13,null],[11,"clone","","",14,null],[11,"open","","Attempt to open the controller number `id` and return\nit. Controller IDs are the same as joystick IDs and the\nmaximum number can be retreived using the `SDL_NumJoysticks`\nfunction.",15,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[11,"name","","Return the name of the controller or an empty string if no\nname is found.",15,null],[11,"mapping","","Return a String describing the controller's button and axis\nmappings",15,null],[11,"get_attached","","Return true if the controller has been opened and currently\nconnected.",15,null],[11,"get_axis","","Get the position of the given `axis`",15,null],[11,"get_button","","Return `Ok(true)` if `button` is pressed.",15,null],[11,"drop","","",15,null],[0,"haptic","sdl2","Haptic Functions",null,null],[0,"keyboard","","",null,null],[3,"Mod","sdl2::keyboard","",null,null],[5,"get_keyboard_focus","","",null,{"inputs":[],"output":{"name":"option"}}],[5,"get_keyboard_state","","",null,{"inputs":[],"output":{"name":"hashmap"}}],[5,"get_mod_state","","",null,{"inputs":[],"output":{"name":"mod"}}],[5,"set_mod_state","","",null,{"inputs":[{"name":"mod"}],"output":null}],[5,"get_key_from_scancode","","",null,{"inputs":[{"name":"scancode"}],"output":{"name":"keycode"}}],[5,"get_scancode_from_key","","",null,{"inputs":[{"name":"keycode"}],"output":{"name":"scancode"}}],[5,"get_scancode_name","","",null,{"inputs":[{"name":"scancode"}],"output":{"name":"string"}}],[5,"get_scancode_from_name","","",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"get_key_name","","",null,{"inputs":[{"name":"keycode"}],"output":{"name":"string"}}],[5,"get_key_from_name","","",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"start_text_input","","",null,{"inputs":[],"output":null}],[5,"is_text_input_active","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"stop_text_input","","",null,{"inputs":[],"output":null}],[5,"set_text_input_rect","","",null,{"inputs":[{"name":"rect"}],"output":null}],[5,"has_screen_keyboard_support","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"is_screen_keyboard_shown","","",null,{"inputs":[{"name":"window"}],"output":{"name":"bool"}}],[17,"NOMOD","","",null,null],[17,"LSHIFTMOD","","",null,null],[17,"RSHIFTMOD","","",null,null],[17,"LCTRLMOD","","",null,null],[17,"RCTRLMOD","","",null,null],[17,"LALTMOD","","",null,null],[17,"RALTMOD","","",null,null],[17,"LGUIMOD","","",null,null],[17,"RGUIMOD","","",null,null],[17,"NUMMOD","","",null,null],[17,"CAPSMOD","","",null,null],[17,"MODEMOD","","",null,null],[17,"RESERVEDMOD","","",null,null],[11,"hash","","",16,null],[11,"cmp","","",16,null],[11,"partial_cmp","","",16,null],[11,"lt","","",16,null],[11,"le","","",16,null],[11,"gt","","",16,null],[11,"ge","","",16,null],[11,"clone","","",16,null],[11,"eq","","",16,null],[11,"ne","","",16,null],[11,"empty","","Returns an empty set of flags.",16,{"inputs":[],"output":{"name":"mod"}}],[11,"all","","Returns the set containing all flags.",16,{"inputs":[],"output":{"name":"mod"}}],[11,"bits","","Returns the raw value of the flags currently stored.",16,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",16,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",16,{"inputs":[{"name":"u32"}],"output":{"name":"mod"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",16,null],[11,"is_all","","Returns `true` if all flags are currently set.",16,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",16,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",16,null],[11,"insert","","Inserts the specified flags in-place.",16,null],[11,"remove","","Removes the specified flags in-place.",16,null],[11,"toggle","","Toggles the specified flags in-place.",16,null],[11,"bitor","","Returns the union of the two sets of flags.",16,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",16,null],[11,"bitand","","Returns the intersection between the two sets of flags.",16,null],[11,"sub","","Returns the set difference of the two sets of flags.",16,null],[11,"not","","Returns the complement of this set of flags.",16,null],[0,"mouse","sdl2","",null,null],[3,"Cursor","sdl2::mouse","",null,null],[3,"MouseState","","",null,null],[4,"SystemCursor","","",null,null],[13,"Arrow","","",17,null],[13,"IBeam","","",17,null],[13,"Wait","","",17,null],[13,"Crosshair","","",17,null],[13,"WaitArrow","","",17,null],[13,"SizeNWSE","","",17,null],[13,"SizeNESW","","",17,null],[13,"SizeWE","","",17,null],[13,"SizeNS","","",17,null],[13,"SizeAll","","",17,null],[13,"No","","",17,null],[13,"Hand","","",17,null],[4,"Mouse","","",null,null],[13,"Left","","",18,null],[13,"Middle","","",18,null],[13,"Right","","",18,null],[13,"X1","","",18,null],[13,"X2","","",18,null],[13,"Unknown","","",18,null],[5,"wrap_mouse","","",null,{"inputs":[{"name":"u8"}],"output":{"name":"mouse"}}],[5,"get_mouse_focus","","",null,{"inputs":[],"output":{"name":"option"}}],[5,"get_mouse_state","","",null,null],[5,"get_relative_mouse_state","","",null,null],[5,"warp_mouse_in_window","","",null,{"inputs":[{"name":"window"},{"name":"i32"},{"name":"i32"}],"output":null}],[5,"set_relative_mouse_mode","","",null,{"inputs":[{"name":"bool"}],"output":null}],[5,"get_relative_mouse_mode","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"get_cursor","","",null,{"inputs":[],"output":{"name":"option"}}],[5,"get_default_cursor","","",null,{"inputs":[],"output":{"name":"option"}}],[5,"is_cursor_showing","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"show_cursor","","",null,{"inputs":[{"name":"bool"}],"output":null}],[17,"LEFTMOUSESTATE","","",null,null],[17,"MIDDLEMOUSESTATE","","",null,null],[17,"RIGHTMOUSESTATE","","",null,null],[17,"X1MOUSESTATE","","",null,null],[17,"X2MOUSESTATE","","",null,null],[11,"eq","","",17,null],[11,"clone","","",17,null],[11,"eq","","",19,null],[11,"ne","","",19,null],[11,"drop","","",19,null],[11,"new","","",19,null],[11,"from_surface","","",19,{"inputs":[{"name":"surface"},{"name":"i32"},{"name":"i32"}],"output":{"name":"sdlresult"}}],[11,"from_system","","",19,{"inputs":[{"name":"systemcursor"}],"output":{"name":"sdlresult"}}],[11,"set","","",19,null],[11,"eq","","",18,null],[11,"ne","","",18,null],[11,"clone","","",18,null],[11,"hash","","",20,null],[11,"cmp","","",20,null],[11,"partial_cmp","","",20,null],[11,"lt","","",20,null],[11,"le","","",20,null],[11,"gt","","",20,null],[11,"ge","","",20,null],[11,"clone","","",20,null],[11,"eq","","",20,null],[11,"ne","","",20,null],[11,"empty","","Returns an empty set of flags.",20,{"inputs":[],"output":{"name":"mousestate"}}],[11,"all","","Returns the set containing all flags.",20,{"inputs":[],"output":{"name":"mousestate"}}],[11,"bits","","Returns the raw value of the flags currently stored.",20,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",20,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",20,{"inputs":[{"name":"u32"}],"output":{"name":"mousestate"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",20,null],[11,"is_all","","Returns `true` if all flags are currently set.",20,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",20,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",20,null],[11,"insert","","Inserts the specified flags in-place.",20,null],[11,"remove","","Removes the specified flags in-place.",20,null],[11,"toggle","","Toggles the specified flags in-place.",20,null],[11,"bitor","","Returns the union of the two sets of flags.",20,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",20,null],[11,"bitand","","Returns the intersection between the two sets of flags.",20,null],[11,"sub","","Returns the set difference of the two sets of flags.",20,null],[11,"not","","Returns the complement of this set of flags.",20,null],[0,"rect","sdl2","",null,null],[0,"surface","","",null,null],[3,"SurfaceFlag","sdl2::surface","",null,null],[3,"Surface","","",null,null],[17,"SWSURFACE","","",null,null],[17,"PREALLOC","","",null,null],[17,"RLEACCEL","","",null,null],[17,"DONTFREE","","",null,null],[11,"hash","","",21,null],[11,"cmp","","",21,null],[11,"partial_cmp","","",21,null],[11,"lt","","",21,null],[11,"le","","",21,null],[11,"gt","","",21,null],[11,"ge","","",21,null],[11,"clone","","",21,null],[11,"eq","","",21,null],[11,"ne","","",21,null],[11,"empty","","Returns an empty set of flags.",21,{"inputs":[],"output":{"name":"surfaceflag"}}],[11,"all","","Returns the set containing all flags.",21,{"inputs":[],"output":{"name":"surfaceflag"}}],[11,"bits","","Returns the raw value of the flags currently stored.",21,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",21,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",21,{"inputs":[{"name":"u32"}],"output":{"name":"surfaceflag"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",21,null],[11,"is_all","","Returns `true` if all flags are currently set.",21,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",21,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",21,null],[11,"insert","","Inserts the specified flags in-place.",21,null],[11,"remove","","Removes the specified flags in-place.",21,null],[11,"toggle","","Toggles the specified flags in-place.",21,null],[11,"bitor","","Returns the union of the two sets of flags.",21,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",21,null],[11,"bitand","","Returns the intersection between the two sets of flags.",21,null],[11,"sub","","Returns the set difference of the two sets of flags.",21,null],[11,"not","","Returns the complement of this set of flags.",21,null],[11,"drop","","",22,null],[11,"raw","","",22,null],[11,"owned","","",22,null],[11,"from_ll","","",22,null],[11,"new","","",22,{"inputs":[{"name":"surfaceflag"},{"name":"i32"},{"name":"i32"},{"name":"i32"},{"name":"u32"},{"name":"u32"},{"name":"u32"},{"name":"u32"}],"output":{"name":"sdlresult"}}],[11,"from_data","","",22,null],[11,"get_width","","",22,null],[11,"get_height","","",22,null],[11,"get_pitch","","",22,null],[11,"get_size","","",22,null],[11,"get_rect","","",22,null],[11,"get_pixel_format","","",22,null],[11,"lock","","",22,null],[11,"with_lock","","Locks a surface so that the pixels can be directly accessed safely.",22,null],[11,"unlock","","",22,null],[11,"from_bmp","","",22,{"inputs":[{"name":"path"}],"output":{"name":"sdlresult"}}],[11,"save_bmp","","",22,null],[11,"set_palette","","",22,null],[11,"enable_RLE","","",22,null],[11,"disable_RLE","","",22,null],[11,"set_color_key","","",22,null],[11,"get_color_key","","",22,null],[11,"set_color_mod","","",22,null],[11,"get_color_mod","","",22,null],[11,"blit","","",22,null],[11,"fill_rect","","",22,null],[11,"fill_rects","","",22,null],[11,"set_alpha_mod","","",22,null],[11,"get_alpha_mod","","",22,null],[11,"set_blend_mode","","",22,null],[11,"get_blend_mode","","",22,null],[11,"set_clip_rect","","",22,null],[11,"get_clip_rect","","",22,null],[11,"convert","","",22,null],[11,"convert_format","","",22,null],[11,"lower_blit","","",22,null],[11,"soft_stretch","","",22,null],[11,"blit_scaled","","",22,null],[11,"upper_blit_scaled","","This function is deprecated",22,null],[11,"lower_blit_scaled","","",22,null],[0,"pixels","sdl2","",null,null],[3,"Palette","sdl2::pixels","",null,null],[3,"PixelFormat","","",null,null],[4,"Color","","",null,null],[13,"RGB","","",23,null],[13,"RGBA","","",23,null],[4,"PixelFormatEnum","","",null,null],[13,"Unknown","","",24,null],[13,"Index1LSB","","",24,null],[13,"Index1MSB","","",24,null],[13,"Index4LSB","","",24,null],[13,"Index4MSB","","",24,null],[13,"Index8","","",24,null],[13,"RGB332","","",24,null],[13,"RGB444","","",24,null],[13,"RGB555","","",24,null],[13,"BGR555","","",24,null],[13,"ARGB4444","","",24,null],[13,"RGBA4444","","",24,null],[13,"ABGR4444","","",24,null],[13,"BGRA4444","","",24,null],[13,"ARGB1555","","",24,null],[13,"RGBA5551","","",24,null],[13,"ABGR1555","","",24,null],[13,"BGRA5551","","",24,null],[13,"RGB565","","",24,null],[13,"BGR565","","",24,null],[13,"RGB24","","",24,null],[13,"BGR24","","",24,null],[13,"RGB888","","",24,null],[13,"RGBX8888","","",24,null],[13,"BGR888","","",24,null],[13,"BGRX8888","","",24,null],[13,"ARGB8888","","",24,null],[13,"RGBA8888","","",24,null],[13,"ABGR8888","","",24,null],[13,"BGRA8888","","",24,null],[13,"ARGB2101010","","",24,null],[13,"YV12","","",24,null],[13,"IYUV","","",24,null],[13,"YUY2","","",24,null],[13,"UYVY","","",24,null],[13,"YVYU","","",24,null],[11,"eq","","",25,null],[11,"ne","","",25,null],[11,"raw","","",25,null],[11,"clone","","",23,null],[11,"eq","","",23,null],[11,"ne","","",23,null],[11,"to_u32","","",23,null],[11,"from_u32","","",23,{"inputs":[{"name":"pixelformat"},{"name":"u32"}],"output":{"name":"color"}}],[11,"get_rgb","","",23,null],[11,"rand","","",23,{"inputs":[{"name":"r"}],"output":{"name":"color"}}],[11,"eq","","",26,null],[11,"ne","","",26,null],[11,"raw","","",26,null],[11,"from_ll","","",26,null],[11,"fmt","","",24,null],[11,"eq","","",24,null],[11,"clone","","",24,null],[11,"byte_size_from_pitch_and_height","","Calculates the total byte size of an image buffer, given its pitch\nand height.",24,null],[11,"byte_size_of_pixels","","",24,null],[11,"byte_size_per_pixel","","",24,null],[11,"from_i64","","",24,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",24,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[0,"video","sdl2","",null,null],[3,"GLContexFlag","sdl2::video","",null,null],[3,"DisplayMode","","",null,null],[12,"format","","",27,null],[12,"w","","",27,null],[12,"h","","",27,null],[12,"refresh_rate","","",27,null],[3,"WindowFlags","","",null,null],[3,"GLContext","","",null,null],[3,"Window","","",null,null],[3,"WindowProperties","","Contains accessors to a `Window`'s properties.",null,null],[3,"WindowPropertiesGetters","","Contains getters to a `Window`'s properties.",null,null],[4,"GLAttr","","",null,null],[13,"GLRedSize","","",28,null],[13,"GLGreenSize","","",28,null],[13,"GLBlueSize","","",28,null],[13,"GLAlphaSize","","",28,null],[13,"GLBufferSize","","",28,null],[13,"GLDoubleBuffer","","",28,null],[13,"GLDepthSize","","",28,null],[13,"GLStencilSize","","",28,null],[13,"GLAccumRedSize","","",28,null],[13,"GLAccumGreenSize","","",28,null],[13,"GLAccumBlueSize","","",28,null],[13,"GLAccumAlphaSize","","",28,null],[13,"GLStereo","","",28,null],[13,"GLMultiSampleBuffers","","",28,null],[13,"GLMultiSampleSamples","","",28,null],[13,"GLAcceleratedVisual","","",28,null],[13,"GLRetailedBacking","","",28,null],[13,"GLContextMajorVersion","","",28,null],[13,"GLContextMinorVersion","","",28,null],[13,"GLContextEGL","","",28,null],[13,"GLContextFlags","","",28,null],[13,"GLContextProfileMask","","",28,null],[13,"GLShareWithCurrentContext","","",28,null],[13,"GLFramebufferSRGBCapable","","",28,null],[4,"GLProfile","","",null,null],[13,"GLCoreProfile","","",29,null],[13,"GLCompatibilityProfile","","",29,null],[13,"GLESProfile","","",29,null],[4,"FullscreenType","","",null,null],[13,"FTOff","","",30,null],[13,"FTTrue","","",30,null],[13,"FTDesktop","","",30,null],[4,"WindowPos","","",null,null],[13,"PosUndefined","","",31,null],[13,"PosCentered","","",31,null],[13,"Positioned","","",31,null],[5,"get_num_video_drivers","","",null,{"inputs":[],"output":{"name":"sdlresult"}}],[5,"get_video_driver","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"string"}}],[5,"video_init","","",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"video_quit","","",null,{"inputs":[],"output":null}],[5,"get_current_video_driver","","",null,{"inputs":[],"output":{"name":"string"}}],[5,"get_num_video_displays","","",null,{"inputs":[],"output":{"name":"sdlresult"}}],[5,"get_display_name","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"string"}}],[5,"get_display_bounds","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[5,"get_num_display_modes","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[5,"get_display_mode","","",null,{"inputs":[{"name":"i32"},{"name":"i32"}],"output":{"name":"sdlresult"}}],[5,"get_desktop_display_mode","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[5,"get_current_display_mode","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[5,"get_closest_display_mode","","",null,{"inputs":[{"name":"i32"},{"name":"displaymode"}],"output":{"name":"sdlresult"}}],[5,"is_screen_saver_enabled","","",null,{"inputs":[],"output":{"name":"bool"}}],[5,"enable_screen_saver","","",null,{"inputs":[],"output":null}],[5,"disable_screen_saver","","",null,{"inputs":[],"output":null}],[5,"gl_load_library","","",null,{"inputs":[{"name":"str"}],"output":{"name":"sdlresult"}}],[5,"gl_unload_library","","",null,{"inputs":[],"output":null}],[5,"gl_get_proc_address","","",null,{"inputs":[{"name":"str"}],"output":{"name":"option"}}],[5,"gl_extension_supported","","",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"gl_set_attribute","","",null,{"inputs":[{"name":"glattr"},{"name":"i32"}],"output":{"name":"bool"}}],[5,"gl_get_attribute","","",null,{"inputs":[{"name":"glattr"}],"output":{"name":"sdlresult"}}],[5,"gl_get_current_window","","",null,{"inputs":[],"output":{"name":"sdlresult"}}],[5,"gl_get_current_context","","",null,{"inputs":[],"output":{"name":"sdlresult"}}],[5,"gl_set_swap_interval","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"bool"}}],[5,"gl_get_swap_interval","","",null,{"inputs":[],"output":{"name":"i32"}}],[17,"GL_CONTEXT_DEBUG","","",null,null],[17,"GL_CONTEXT_FORWARD_COMPATIBLE","","",null,null],[17,"GL_CONTEXT_ROBUST_ACCESS","","",null,null],[17,"GL_CONTEXT_RESET_ISOLATION","","",null,null],[17,"FULLSCREEN","","",null,null],[17,"OPENGL","","",null,null],[17,"SHOWN","","",null,null],[17,"HIDDEN","","",null,null],[17,"BORDERLESS","","",null,null],[17,"RESIZABLE","","",null,null],[17,"MINIMIZED","","",null,null],[17,"MAXIMIZED","","",null,null],[17,"INPUT_GRABBED","","",null,null],[17,"INPUT_FOCUS","","",null,null],[17,"MOUSE_FOCUS","","",null,null],[17,"FULLSCREEN_DESKTOP","","",null,null],[17,"FOREIGN","","",null,null],[17,"ALLOW_HIGHDPI","","",null,null],[11,"eq","","",28,null],[11,"clone","","",28,null],[11,"eq","","",29,null],[11,"clone","","",29,null],[11,"hash","","",32,null],[11,"cmp","","",32,null],[11,"partial_cmp","","",32,null],[11,"lt","","",32,null],[11,"le","","",32,null],[11,"gt","","",32,null],[11,"ge","","",32,null],[11,"clone","","",32,null],[11,"eq","","",32,null],[11,"ne","","",32,null],[11,"empty","","Returns an empty set of flags.",32,{"inputs":[],"output":{"name":"glcontexflag"}}],[11,"all","","Returns the set containing all flags.",32,{"inputs":[],"output":{"name":"glcontexflag"}}],[11,"bits","","Returns the raw value of the flags currently stored.",32,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",32,{"inputs":[{"name":"i32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",32,{"inputs":[{"name":"i32"}],"output":{"name":"glcontexflag"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",32,null],[11,"is_all","","Returns `true` if all flags are currently set.",32,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",32,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",32,null],[11,"insert","","Inserts the specified flags in-place.",32,null],[11,"remove","","Removes the specified flags in-place.",32,null],[11,"toggle","","Toggles the specified flags in-place.",32,null],[11,"bitor","","Returns the union of the two sets of flags.",32,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",32,null],[11,"bitand","","Returns the intersection between the two sets of flags.",32,null],[11,"sub","","Returns the set difference of the two sets of flags.",32,null],[11,"not","","Returns the complement of this set of flags.",32,null],[11,"eq","","",27,null],[11,"ne","","",27,null],[11,"clone","","",27,null],[11,"new","","",27,{"inputs":[{"name":"u32"},{"name":"i32"},{"name":"i32"},{"name":"i32"}],"output":{"name":"displaymode"}}],[11,"from_ll","","",27,{"inputs":[{"name":"sdl_displaymode"}],"output":{"name":"displaymode"}}],[11,"to_ll","","",27,null],[11,"hash","","",33,null],[11,"cmp","","",33,null],[11,"partial_cmp","","",33,null],[11,"lt","","",33,null],[11,"le","","",33,null],[11,"gt","","",33,null],[11,"ge","","",33,null],[11,"clone","","",33,null],[11,"eq","","",33,null],[11,"ne","","",33,null],[11,"empty","","Returns an empty set of flags.",33,{"inputs":[],"output":{"name":"windowflags"}}],[11,"all","","Returns the set containing all flags.",33,{"inputs":[],"output":{"name":"windowflags"}}],[11,"bits","","Returns the raw value of the flags currently stored.",33,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",33,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",33,{"inputs":[{"name":"u32"}],"output":{"name":"windowflags"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",33,null],[11,"is_all","","Returns `true` if all flags are currently set.",33,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",33,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",33,null],[11,"insert","","Inserts the specified flags in-place.",33,null],[11,"remove","","Removes the specified flags in-place.",33,null],[11,"toggle","","Toggles the specified flags in-place.",33,null],[11,"bitor","","Returns the union of the two sets of flags.",33,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",33,null],[11,"bitand","","Returns the intersection between the two sets of flags.",33,null],[11,"sub","","Returns the set difference of the two sets of flags.",33,null],[11,"not","","Returns the complement of this set of flags.",33,null],[11,"eq","","",30,null],[11,"clone","","",30,null],[11,"clone","","",31,null],[11,"eq","","",31,null],[11,"ne","","",31,null],[11,"eq","","",34,null],[11,"ne","","",34,null],[11,"drop","","",34,null],[11,"raw","","",34,null],[11,"raw","","",35,null],[11,"owned","","",34,null],[11,"owned","","",35,null],[11,"from_ll","","",35,null],[11,"drop","","",35,null],[11,"deref","","",36,null],[11,"new","","Creates a new Window.",35,{"inputs":[{"name":"sdl"},{"name":"str"},{"name":"windowpos"},{"name":"windowpos"},{"name":"i32"},{"name":"i32"},{"name":"windowflags"}],"output":{"name":"sdlresult"}}],[11,"new_with_init","","Creates a new Window, and initializes the Window with other properties.",35,{"inputs":[{"name":"sdl"},{"name":"str"},{"name":"windowpos"},{"name":"windowpos"},{"name":"i32"},{"name":"i32"},{"name":"windowflags"},{"name":"f"}],"output":{"name":"sdlresult"}}],[11,"properties","","Accesses the Window properties, such as the position, size and title of a Window.",35,null],[11,"properties_getters","","",35,null],[11,"from_id","","Get a Window from a stored ID.",35,{"inputs":[{"name":"u32"}],"output":{"name":"sdlresult"}}],[11,"get_id","","",35,null],[11,"gl_create_context","","",35,null],[11,"gl_make_current","","",35,null],[11,"gl_swap_window","","",35,null],[11,"get_display_index","","",37,null],[11,"set_display_mode","","",37,null],[11,"get_display_mode","","",37,null],[11,"get_window_pixel_format","","",37,null],[11,"get_flags","","",37,null],[11,"set_title","","",37,null],[11,"get_title","","",37,null],[11,"set_icon","","",37,null],[11,"set_position","","",37,null],[11,"get_position","","",37,null],[11,"set_size","","",37,null],[11,"get_size","","",37,null],[11,"get_drawable_size","","",37,null],[11,"set_minimum_size","","",37,null],[11,"get_minimum_size","","",37,null],[11,"set_maximum_size","","",37,null],[11,"get_maximum_size","","",37,null],[11,"set_bordered","","",37,null],[11,"show","","",37,null],[11,"hide","","",37,null],[11,"raise","","",37,null],[11,"maximize","","",37,null],[11,"minimize","","",37,null],[11,"restore","","",37,null],[11,"set_fullscreen","","",37,null],[11,"get_surface","","",37,null],[11,"update_surface","","",37,null],[11,"update_surface_rects","","",37,null],[11,"set_grab","","",37,null],[11,"get_grab","","",37,null],[11,"set_brightness","","",37,null],[11,"get_brightness","","",37,null],[11,"set_gamma_ramp","","",37,null],[11,"get_gamma_ramp","","",37,null],[0,"timer","sdl2","",null,null],[3,"Timer","sdl2::timer","Unstable because of move to unboxed closures and `box` syntax",null,null],[5,"get_ticks","","",null,{"inputs":[],"output":{"name":"u32"}}],[5,"get_performance_counter","","",null,{"inputs":[],"output":{"name":"u64"}}],[5,"get_performance_frequency","","",null,{"inputs":[],"output":{"name":"u64"}}],[5,"delay","","",null,{"inputs":[{"name":"u32"}],"output":null}],[6,"TimerCallback","","",null,null],[11,"new","","Constructs a new timer using the boxed closure `callback`.\nThe timer is started immediately, it will be cancelled either:\n * when the timer is dropped\n * or when the callback returns a non-positive continuation interval",38,{"inputs":[{"name":"u32"},{"name":"timercallback"}],"output":{"name":"timer"}}],[11,"into_inner","","Returns the closure as a trait-object and cancels the timer\nby consuming it...",38,null],[11,"drop","","",38,null],[0,"render","sdl2","2D accelerated rendering",null,null],[3,"RendererFlags","sdl2::render","",null,null],[3,"RendererInfo","","A structure that contains information on the capabilities of a render driver\nor the current render context.",null,null],[12,"name","","",39,null],[12,"flags","","",39,null],[12,"texture_formats","","",39,null],[12,"max_texture_width","","",39,null],[12,"max_texture_height","","",39,null],[3,"Renderer","","2D rendering context",null,null],[3,"RenderDrawer","","Drawing functionality for the render context.",null,null],[3,"RenderTarget","","A handle for getting/setting the render target of the render context.",null,null],[3,"TextureQuery","","",null,null],[12,"format","","",40,null],[12,"access","","",40,null],[12,"width","","",40,null],[12,"height","","",40,null],[3,"Texture","","A texture for a rendering context.",null,null],[4,"RenderDriverIndex","","",null,null],[13,"Auto","","",41,null],[13,"Index","","",41,null],[4,"TextureAccess","","",null,null],[13,"Static","","",42,null],[13,"Streaming","","",42,null],[13,"Target","","",42,null],[4,"BlendMode","","",null,null],[13,"None","","",43,null],[13,"Blend","","",43,null],[13,"Add","","",43,null],[13,"Mod","","",43,null],[4,"RendererParent","","",null,null],[13,"Surface","","",44,null],[13,"Window","","",44,null],[5,"get_num_render_drivers","","",null,{"inputs":[],"output":{"name":"sdlresult"}}],[5,"get_render_driver_info","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"sdlresult"}}],[17,"SOFTWARE","","",null,null],[17,"ACCELERATED","","",null,null],[17,"PRESENTVSYNC","","",null,null],[17,"TARGETTEXTURE","","",null,null],[11,"clone","","",41,null],[11,"eq","","",42,null],[11,"clone","","",42,null],[11,"from_i64","","",42,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",42,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"hash","","",45,null],[11,"cmp","","",45,null],[11,"partial_cmp","","",45,null],[11,"lt","","",45,null],[11,"le","","",45,null],[11,"gt","","",45,null],[11,"ge","","",45,null],[11,"clone","","",45,null],[11,"eq","","",45,null],[11,"ne","","",45,null],[11,"empty","","Returns an empty set of flags.",45,{"inputs":[],"output":{"name":"rendererflags"}}],[11,"all","","Returns the set containing all flags.",45,{"inputs":[],"output":{"name":"rendererflags"}}],[11,"bits","","Returns the raw value of the flags currently stored.",45,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",45,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",45,{"inputs":[{"name":"u32"}],"output":{"name":"rendererflags"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",45,null],[11,"is_all","","Returns `true` if all flags are currently set.",45,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",45,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",45,null],[11,"insert","","Inserts the specified flags in-place.",45,null],[11,"remove","","Removes the specified flags in-place.",45,null],[11,"toggle","","Toggles the specified flags in-place.",45,null],[11,"bitor","","Returns the union of the two sets of flags.",45,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",45,null],[11,"bitand","","Returns the intersection between the two sets of flags.",45,null],[11,"sub","","Returns the set difference of the two sets of flags.",45,null],[11,"not","","Returns the complement of this set of flags.",45,null],[11,"eq","","",39,null],[11,"ne","","",39,null],[11,"eq","","",43,null],[11,"clone","","",43,null],[11,"from_i64","","",43,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",43,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"from_ll","","",39,{"inputs":[{"name":"sdl_rendererinfo"}],"output":{"name":"rendererinfo"}}],[11,"drop","","",46,null],[11,"from_window","","Creates a 2D rendering context for a window.",46,{"inputs":[{"name":"window"},{"name":"renderdriverindex"},{"name":"rendererflags"}],"output":{"name":"sdlresult"}}],[11,"new_with_window","","Creates a window and default renderer.",46,{"inputs":[{"name":"sdl"},{"name":"i32"},{"name":"i32"},{"name":"windowflags"}],"output":{"name":"sdlresult"}}],[11,"from_surface","","Creates a 2D software rendering context for a surface.",46,{"inputs":[{"name":"surface"}],"output":{"name":"sdlresult"}}],[11,"get_info","","Gets information about the rendering context.",46,null],[11,"get_parent","","Gets the window or surface the rendering context was created from.",46,null],[11,"get_parent_as_window","","",46,null],[11,"get_parent_as_surface","","",46,null],[11,"window_properties","","Accesses the Window properties, such as the position, size and title of a Window.\nReturns None if the renderer is not associated with a Window.",46,null],[11,"window_properties_getters","","Accesses the Window getters, such as the position, size and title of a Window.\nReturns None if the renderer is not associated with a Window.",46,null],[11,"unwrap_parent","","",46,null],[11,"unwrap_parent_as_window","","",46,null],[11,"unwrap_parent_as_surface","","",46,null],[11,"drawer","","Provides drawing methods for the renderer.",46,null],[11,"raw","","Unwraps the window or surface the rendering context was created from.",46,null],[11,"from_ll","","",46,null],[11,"create_texture","","Creates a texture for a rendering context.",46,null],[11,"create_texture_static","","Shorthand for `create_texture(format, TextureAccess::Static, size)`",46,null],[11,"create_texture_streaming","","Shorthand for `create_texture(format, TextureAccess::Streaming, size)`",46,null],[11,"create_texture_target","","Shorthand for `create_texture(format, TextureAccess::Target, size)`",46,null],[11,"create_texture_from_surface","","Creates a texture from an existing surface.\n# Remarks\nThe access hint for the created texture is `TextureAccess::Static`.",46,null],[11,"render_target_supported","","Determine whether a window supports the use of render targets.",47,null],[11,"render_target","","Gets the render target handle.",47,null],[11,"set_draw_color","","Sets the color used for drawing operations (Rect, Line and Clear).",47,null],[11,"get_draw_color","","Gets the color used for drawing operations (Rect, Line and Clear).",47,null],[11,"set_blend_mode","","Sets the blend mode used for drawing operations (Fill and Line).",47,null],[11,"get_blend_mode","","Gets the blend mode used for drawing operations.",47,null],[11,"clear","","Clears the current rendering target with the drawing color.",47,null],[11,"present","","Updates the screen with any rendering performed since the previous call.",47,null],[11,"get_output_size","","Gets the output size of a rendering context.",47,null],[11,"set_logical_size","","Sets a device independent resolution for rendering.",47,null],[11,"get_logical_size","","Gets device independent resolution for rendering.",47,null],[11,"set_viewport","","Sets the drawing area for rendering on the current target.",47,null],[11,"get_viewport","","Gets the drawing area for the current target.",47,null],[11,"set_clip_rect","","Sets the clip rectangle for rendering on the specified target.",47,null],[11,"get_clip_rect","","Gets the clip rectangle for the current target.",47,null],[11,"set_scale","","Sets the drawing scale for rendering on the current target.",47,null],[11,"get_scale","","Gets the drawing scale for the current target.",47,null],[11,"draw_point","","Draws a point on the current rendering target.\n# Panics\nPanics if drawing fails for any reason (e.g. driver failure)",47,null],[11,"draw_points","","Draws multiple points on the current rendering target.\n# Panics\nPanics if drawing fails for any reason (e.g. driver failure)",47,null],[11,"draw_line","","# Panics\nPanics if drawing fails for any reason (e.g. driver failure)",47,null],[11,"draw_lines","","Draws a series of connected lines on the current rendering target.\n# Panics\nPanics if drawing fails for any reason (e.g. driver failure)",47,null],[11,"draw_rect","","Draws a rectangle on the current rendering target.\n# Panics\nPanics if drawing fails for any reason (e.g. driver failure)",47,null],[11,"draw_rects","","Draws some number of rectangles on the current rendering target.\n# Panics\nPanics if drawing fails for any reason (e.g. driver failure)",47,null],[11,"fill_rect","","Fills a rectangle on the current rendering target with the drawing\ncolor.\n# Panics\nPanics if drawing fails for any reason (e.g. driver failure)",47,null],[11,"fill_rects","","Fills some number of rectangles on the current rendering target with\nthe drawing color.\n# Panics\nPanics if drawing fails for any reason (e.g. driver failure)",47,null],[11,"copy","","Copies a portion of the texture to the current rendering target.",47,null],[11,"copy_ex","","Copies a portion of the texture to the current rendering target,\noptionally rotating it by angle around the given center and also\nflipping it top-bottom and/or left-right.",47,null],[11,"read_pixels","","Reads pixels from the current rendering target.\n# Remarks\nWARNING: This is a very slow operation, and should not be used frequently.",47,null],[11,"reset","","Resets the render target to the default render target.",48,null],[11,"set","","Sets the render target to the provided texture.\nThe texture must be created with the texture access: `sdl2::render::TextureAccess::Target`.",48,null],[11,"create_and_set","","Creates a new texture and sets it as the render target.",48,null],[11,"clone","","",40,null],[11,"drop","","",49,null],[11,"query","","Queries the attributes of the texture.",49,null],[11,"set_color_mod","","Sets an additional color value multiplied into render copy operations.",49,null],[11,"get_color_mod","","Gets the additional color value multiplied into render copy operations.",49,null],[11,"set_alpha_mod","","Sets an additional alpha value multiplied into render copy operations.",49,null],[11,"get_alpha_mod","","Gets the additional alpha value multiplied into render copy operations.",49,null],[11,"set_blend_mode","","Sets the blend mode for a texture, used by `RenderDrawer::copy()`.",49,null],[11,"get_blend_mode","","Gets the blend mode used for texture copy operations.",49,null],[11,"update","","Updates the given texture rectangle with new pixel data.",49,null],[11,"update_yuv","","Updates a rectangle within a planar YV12 or IYUV texture with new pixel data.",49,null],[11,"with_lock","","Locks the texture for **write-only** pixel access.\nThe texture must have been created with streaming access.",49,null],[11,"gl_bind_texture","","Binds an OpenGL/ES/ES2 texture to the current\ncontext for use with when rendering OpenGL primitives directly.",49,null],[11,"gl_unbind_texture","","Unbinds an OpenGL/ES/ES2 texture from the current context.",49,null],[11,"gl_with_bind","","Binds and unbinds an OpenGL/ES/ES2 texture from the current context.",49,null],[11,"from_ll","","",49,null],[11,"raw","","",49,null],[0,"rwops","sdl2","",null,null],[3,"RWops","sdl2::rwops","",null,null],[11,"eq","","",50,null],[11,"ne","","",50,null],[11,"raw","","",50,null],[11,"close_on_drop","","",50,null],[11,"from_file","","",50,{"inputs":[{"name":"path"},{"name":"str"}],"output":{"name":"sdlresult"}}],[11,"from_bytes","","",50,null],[11,"len","","",50,null],[11,"drop","","",50,null],[11,"read","","",50,null],[11,"write","","",50,null],[11,"flush","","",50,null],[11,"seek","","",50,null],[0,"sdl","sdl2","",null,null],[3,"InitFlag","sdl2::sdl","",null,null],[3,"Sdl","","The SDL context type. Initialize with `sdl2::init()`.",null,null],[3,"Subsystem","","A RAII value representing initalized SDL subsystems. See `sdl2::Sdl::init_subsystem()`.",null,null],[4,"Error","","",null,null],[13,"NoMemError","","",51,null],[13,"ReadError","","",51,null],[13,"WriteError","","",51,null],[13,"SeekError","","",51,null],[13,"UnsupportedError","","",51,null],[5,"init","","Initializes the SDL library.\nThis must be called before using any other SDL function.",null,{"inputs":[{"name":"initflag"}],"output":{"name":"sdlresult"}}],[5,"get_error","","",null,{"inputs":[],"output":{"name":"string"}}],[5,"set_error","","",null,{"inputs":[{"name":"str"}],"output":null}],[5,"set_error_from_code","","",null,{"inputs":[{"name":"error"}],"output":null}],[5,"clear_error","","",null,{"inputs":[],"output":null}],[5,"get_ticks","","",null,{"inputs":[],"output":{"name":"u32"}}],[6,"SdlResult","","",null,null],[17,"INIT_TIMER","","",null,null],[17,"INIT_AUDIO","","",null,null],[17,"INIT_VIDEO","","",null,null],[17,"INIT_JOYSTICK","","",null,null],[17,"INIT_HAPTIC","","",null,null],[17,"INIT_GAME_CONTROLLER","","",null,null],[17,"INIT_EVENTS","","",null,null],[17,"INIT_NOPARACHUTE","","",null,null],[17,"INIT_EVERYTHING","","",null,null],[11,"hash","","",52,null],[11,"cmp","","",52,null],[11,"partial_cmp","","",52,null],[11,"lt","","",52,null],[11,"le","","",52,null],[11,"gt","","",52,null],[11,"ge","","",52,null],[11,"clone","","",52,null],[11,"eq","","",52,null],[11,"ne","","",52,null],[11,"empty","","Returns an empty set of flags.",52,{"inputs":[],"output":{"name":"initflag"}}],[11,"all","","Returns the set containing all flags.",52,{"inputs":[],"output":{"name":"initflag"}}],[11,"bits","","Returns the raw value of the flags currently stored.",52,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",52,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",52,{"inputs":[{"name":"u32"}],"output":{"name":"initflag"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",52,null],[11,"is_all","","Returns `true` if all flags are currently set.",52,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",52,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",52,null],[11,"insert","","Inserts the specified flags in-place.",52,null],[11,"remove","","Removes the specified flags in-place.",52,null],[11,"toggle","","Toggles the specified flags in-place.",52,null],[11,"bitor","","Returns the union of the two sets of flags.",52,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",52,null],[11,"bitand","","Returns the intersection between the two sets of flags.",52,null],[11,"sub","","Returns the set difference of the two sets of flags.",52,null],[11,"not","","Returns the complement of this set of flags.",52,null],[11,"eq","","",51,null],[11,"clone","","",51,null],[11,"init_subsystem","","Initializes specific SDL subsystems.",53,null],[11,"was_init","","Returns the mask of the specified subsystems which have previously been initialized.",53,null],[11,"event_pump","","Obtains the SDL event pump.",53,null],[11,"drop","","",53,null],[11,"drop","","",54,null],[0,"audio","sdl2","Audio Functions",null,null],[3,"AudioSpecWAV","sdl2::audio","",null,null],[12,"freq","","",55,null],[12,"format","","",55,null],[12,"channels","","",55,null],[3,"AudioSpecDesired","","",null,null],[12,"freq","","DSP frequency (samples per second). Set to None for the device's fallback frequency.",56,null],[12,"channels","","Number of separate audio channels. Set to None for the device's fallback number of channels.",56,null],[12,"samples","","Audio buffer size in samples (power of 2). Set to None for the device's fallback sample size.",56,null],[3,"AudioSpec","","",null,null],[12,"freq","","",57,null],[12,"format","","",57,null],[12,"channels","","",57,null],[12,"silence","","",57,null],[12,"samples","","",57,null],[12,"size","","",57,null],[3,"AudioDevice","","Wraps SDL_AudioDeviceID and owns the callback data used by the audio device.",null,null],[3,"AudioDeviceLockGuard","","Similar to `std::sync::MutexGuard`, but for use with `AudioDevice::lock()`.",null,null],[3,"AudioCVT","","",null,null],[4,"AudioStatus","","",null,null],[13,"Stopped","","",58,null],[13,"Playing","","",58,null],[13,"Paused","","",58,null],[5,"get_num_audio_drivers","","",null,{"inputs":[],"output":{"name":"i32"}}],[5,"get_audio_driver","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"string"}}],[5,"get_num_audio_devices","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"get_audio_device_name","","",null,{"inputs":[{"name":"i32"},{"name":"i32"}],"output":{"name":"string"}}],[5,"audio_init","","",null,{"inputs":[{"name":"str"}],"output":{"name":"sdlresult"}}],[5,"audio_quit","","",null,{"inputs":[],"output":null}],[5,"get_current_audio_driver","","",null,{"inputs":[],"output":{"name":"string"}}],[6,"AudioFormat","","",null,null],[17,"AUDIOU8","","",null,null],[17,"AUDIOS8","","",null,null],[17,"AUDIOU16LSB","","",null,null],[17,"AUDIOS16LSB","","",null,null],[17,"AUDIOU16MSB","","",null,null],[17,"AUDIOS16MSB","","",null,null],[17,"AUDIOU16","","",null,null],[17,"AUDIOS16","","",null,null],[17,"AUDIOS32LSB","","",null,null],[17,"AUDIOS32MSB","","",null,null],[17,"AUDIOS32","","",null,null],[17,"AUDIOF32LSB","","",null,null],[17,"AUDIOF32MSB","","",null,null],[17,"AUDIOF32","","",null,null],[17,"AUDIOU16SYS","","",null,null],[17,"AUDIOS16SYS","","",null,null],[17,"AUDIOS32SYS","","",null,null],[17,"AUDIOF32SYS","","",null,null],[8,"AudioCallback","","",null,null],[16,"Channel","","",59,null],[10,"callback","","",59,null],[8,"AudioFormatNum","","A phantom type for retreiving the SDL_AudioFormat of a given generic type.\nAll format types are returned as native-endian.",null,null],[10,"get_audio_format","","",60,{"inputs":[],"output":{"name":"sdl_audioformat"}}],[10,"zero","","",60,{"inputs":[],"output":{"name":"self"}}],[11,"fmt","","",58,null],[11,"hash","","",58,null],[11,"eq","","",58,null],[11,"clone","","",58,null],[11,"from_i64","","",58,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",58,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"load_wav","","Loads a WAVE from the file path. Uses `SDL_LoadWAV_RW`.",55,{"inputs":[{"name":"path"}],"output":{"name":"sdlresult"}}],[11,"load_wav_rw","","Loads a WAVE from the data source. Uses `SDL_LoadWAV_RW`.",55,{"inputs":[{"name":"rwops"}],"output":{"name":"sdlresult"}}],[11,"get_buffer","","",55,null],[11,"drop","","",55,null],[11,"fmt","","",57,null],[11,"open_playback","","Opens a new audio device given the desired parameters and callback.\nUses `SDL_OpenAudioDevice`.",61,{"inputs":[{"name":"option"},{"name":"audiospecdesired"},{"name":"f"}],"output":{"name":"sdlresult"}}],[11,"get_status","","",61,null],[11,"pause","","Pauses playback of the audio device.",61,null],[11,"resume","","Starts playback of the audio device.",61,null],[11,"lock","","Locks the audio device using `SDL_LockAudioDevice`.",61,null],[11,"close_and_get_callback","","Closes the audio device and saves the callback data from being dropped.",61,null],[11,"deref","","",62,null],[11,"deref_mut","","",62,null],[11,"drop","","",62,null],[11,"clone","","",63,null],[11,"new","","",63,{"inputs":[{"name":"sdl_audioformat"},{"name":"u8"},{"name":"i32"},{"name":"sdl_audioformat"},{"name":"u8"},{"name":"i32"}],"output":{"name":"sdlresult"}}],[11,"convert","","Convert audio data to a desired audio format.",63,null],[11,"is_conversion_needed","","Checks if any conversion is needed. i.e. if the buffer that goes\ninto `convert()` is unchanged from the result.",63,null],[11,"get_capacity","","Gets the buffer capacity that can contain both the original and\nconverted data.",63,null],[0,"version","sdl2","Querying SDL Version",null,null],[3,"Version","sdl2::version","A structure that contains information about the version of SDL in use.",null,null],[12,"major","","major version",64,null],[12,"minor","","minor version",64,null],[12,"patch","","update version (patchlevel)",64,null],[5,"get_version","","Get the version of SDL that is linked against your program.",null,{"inputs":[],"output":{"name":"version"}}],[5,"get_revision","","Get the code revision of SDL that is linked against your program.",null,{"inputs":[],"output":{"name":"string"}}],[5,"get_revision_number","","Get the revision number of SDL that is linked against your program.",null,{"inputs":[],"output":{"name":"i32"}}],[11,"clone","","",64,null],[11,"eq","","",64,null],[11,"ne","","",64,null],[11,"from_ll","","Convert a raw *SDL_version to Version.",64,{"inputs":[{"name":"sdl_version"}],"output":{"name":"version"}}],[11,"fmt","","",64,null],[0,"messagebox","sdl2","",null,null],[3,"MessageBoxFlag","sdl2::messagebox","",null,null],[5,"show_simple_message_box","","",null,{"inputs":[{"name":"messageboxflag"},{"name":"str"},{"name":"str"},{"name":"option"}],"output":{"name":"sdlresult"}}],[17,"MESSAGEBOX_ERROR","","",null,null],[17,"MESSAGEBOX_WARNING","","",null,null],[17,"MESSAGEBOX_INFORMATION","","",null,null],[11,"hash","","",65,null],[11,"cmp","","",65,null],[11,"partial_cmp","","",65,null],[11,"lt","","",65,null],[11,"le","","",65,null],[11,"gt","","",65,null],[11,"ge","","",65,null],[11,"clone","","",65,null],[11,"eq","","",65,null],[11,"ne","","",65,null],[11,"empty","","Returns an empty set of flags.",65,{"inputs":[],"output":{"name":"messageboxflag"}}],[11,"all","","Returns the set containing all flags.",65,{"inputs":[],"output":{"name":"messageboxflag"}}],[11,"bits","","Returns the raw value of the flags currently stored.",65,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",65,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",65,{"inputs":[{"name":"u32"}],"output":{"name":"messageboxflag"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",65,null],[11,"is_all","","Returns `true` if all flags are currently set.",65,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",65,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",65,null],[11,"insert","","Inserts the specified flags in-place.",65,null],[11,"remove","","Removes the specified flags in-place.",65,null],[11,"toggle","","Toggles the specified flags in-place.",65,null],[11,"bitor","","Returns the union of the two sets of flags.",65,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",65,null],[11,"bitand","","Returns the intersection between the two sets of flags.",65,null],[11,"sub","","Returns the set difference of the two sets of flags.",65,null],[11,"not","","Returns the complement of this set of flags.",65,null]],"paths":[[4,"KeyCode"],[4,"ScanCode"],[4,"EventType"],[4,"WindowEventId"],[4,"Event"],[3,"EventPump"],[3,"EventPollIterator"],[3,"EventWaitIterator"],[3,"EventWaitTimeoutIterator"],[4,"HatState"],[3,"Joystick"],[3,"Guid"],[4,"Axis"],[4,"Button"],[4,"MappingStatus"],[3,"GameController"],[3,"Mod"],[4,"SystemCursor"],[4,"Mouse"],[3,"Cursor"],[3,"MouseState"],[3,"SurfaceFlag"],[3,"Surface"],[4,"Color"],[4,"PixelFormatEnum"],[3,"Palette"],[3,"PixelFormat"],[3,"DisplayMode"],[4,"GLAttr"],[4,"GLProfile"],[4,"FullscreenType"],[4,"WindowPos"],[3,"GLContexFlag"],[3,"WindowFlags"],[3,"GLContext"],[3,"Window"],[3,"WindowPropertiesGetters"],[3,"WindowProperties"],[3,"Timer"],[3,"RendererInfo"],[3,"TextureQuery"],[4,"RenderDriverIndex"],[4,"TextureAccess"],[4,"BlendMode"],[4,"RendererParent"],[3,"RendererFlags"],[3,"Renderer"],[3,"RenderDrawer"],[3,"RenderTarget"],[3,"Texture"],[3,"RWops"],[4,"Error"],[3,"InitFlag"],[3,"Sdl"],[3,"Subsystem"],[3,"AudioSpecWAV"],[3,"AudioSpecDesired"],[3,"AudioSpec"],[4,"AudioStatus"],[8,"AudioCallback"],[8,"AudioFormatNum"],[3,"AudioDevice"],[3,"AudioDeviceLockGuard"],[3,"AudioCVT"],[3,"Version"],[3,"MessageBoxFlag"]]}; initSearch(searchIndex);