var searchIndex = {}; searchIndex["sdl2"] = {"doc":"","items":[[4,"c_void","sdl2::libc","",null,null],[6,"int8_t","","",null,null],[6,"int16_t","","",null,null],[6,"int32_t","","",null,null],[6,"int64_t","","",null,null],[6,"uint8_t","","",null,null],[6,"uint16_t","","",null,null],[6,"uint32_t","","",null,null],[6,"uint64_t","","",null,null],[6,"c_schar","","",null,null],[6,"c_uchar","","",null,null],[6,"c_short","","",null,null],[6,"c_ushort","","",null,null],[6,"c_int","","",null,null],[6,"c_uint","","",null,null],[6,"c_float","","",null,null],[6,"c_double","","",null,null],[6,"c_longlong","","",null,null],[6,"c_ulonglong","","",null,null],[6,"intmax_t","","",null,null],[6,"uintmax_t","","",null,null],[6,"size_t","","",null,null],[6,"ptrdiff_t","","",null,null],[6,"intptr_t","","",null,null],[6,"uintptr_t","","",null,null],[6,"ssize_t","","",null,null],[4,"FILE","","",null,null],[4,"fpos_t","","",null,null],[5,"isalnum","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"isalpha","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"iscntrl","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"isdigit","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"isgraph","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"islower","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"isprint","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"ispunct","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"isspace","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"isupper","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"isxdigit","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"tolower","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"toupper","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"fopen","","",null,null],[5,"freopen","","",null,null],[5,"fflush","","",null,null],[5,"fclose","","",null,null],[5,"remove","","",null,null],[5,"rename","","",null,null],[5,"tmpfile","","",null,null],[5,"setvbuf","","",null,null],[5,"setbuf","","",null,null],[5,"fgetc","","",null,null],[5,"fgets","","",null,null],[5,"fputc","","",null,null],[5,"fputs","","",null,null],[5,"puts","","",null,null],[5,"ungetc","","",null,null],[5,"fread","","",null,null],[5,"fwrite","","",null,null],[5,"fseek","","",null,null],[5,"ftell","","",null,null],[5,"rewind","","",null,null],[5,"fgetpos","","",null,null],[5,"fsetpos","","",null,null],[5,"feof","","",null,null],[5,"ferror","","",null,null],[5,"perror","","",null,null],[5,"atoi","","",null,null],[5,"strtod","","",null,null],[5,"strtol","","",null,null],[5,"strtoul","","",null,null],[5,"calloc","","",null,null],[5,"malloc","","",null,null],[5,"realloc","","",null,null],[5,"free","","",null,null],[5,"abort","","",null,null],[5,"exit","","",null,null],[5,"_exit","","",null,null],[5,"atexit","","",null,null],[5,"system","","",null,null],[5,"getenv","","",null,null],[5,"strcpy","","",null,null],[5,"strncpy","","",null,null],[5,"strcat","","",null,null],[5,"strncat","","",null,null],[5,"strcmp","","",null,null],[5,"strncmp","","",null,null],[5,"strcoll","","",null,null],[5,"strchr","","",null,null],[5,"strrchr","","",null,null],[5,"strspn","","",null,null],[5,"strcspn","","",null,null],[5,"strdup","","",null,null],[5,"strpbrk","","",null,null],[5,"strstr","","",null,null],[5,"strlen","","",null,null],[5,"strnlen","","",null,null],[5,"strerror","","",null,null],[5,"strtok","","",null,null],[5,"strxfrm","","",null,null],[5,"wcslen","","",null,null],[5,"memcmp","","",null,null],[5,"memchr","","",null,null],[5,"abs","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"atof","","",null,null],[5,"labs","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"rand","","",null,{"inputs":[],"output":{"name":"i32"}}],[5,"srand","","",null,null],[6,"c_char","","",null,null],[17,"O_RDONLY","","",null,null],[17,"TMP_MAX","","",null,null],[17,"S_IFCHR","","",null,null],[17,"S_IFREG","","",null,null],[5,"fdopen","","",null,null],[5,"dup","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[17,"FOPEN_MAX","","",null,null],[5,"stat","","",null,null],[5,"commit","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"wutime","","",null,null],[6,"wchar_t","","",null,null],[5,"wrmdir","","",null,null],[5,"write","","",null,null],[6,"c_long","","",null,null],[6,"off_t","","",null,null],[5,"chmod","","",null,null],[5,"creat","","",null,null],[6,"time64_t","","",null,null],[5,"getcwd","","",null,null],[3,"stat","","",null,null],[12,"st_dev","","",0,null],[12,"st_ino","","",0,null],[12,"st_mode","","",0,null],[12,"st_nlink","","",0,null],[12,"st_uid","","",0,null],[12,"st_gid","","",0,null],[12,"st_rdev","","",0,null],[12,"st_size","","",0,null],[12,"st_atime","","",0,null],[12,"st_mtime","","",0,null],[12,"st_ctime","","",0,null],[17,"O_TEXT","","",null,null],[5,"execvpe","","",null,null],[5,"popen","","",null,null],[5,"read","","",null,null],[6,"dev_t","","",null,null],[5,"dup2","","",null,{"inputs":[{"name":"i32"},{"name":"i32"}],"output":{"name":"i32"}}],[17,"_IOLBF","","",null,null],[3,"utimbuf","","",null,null],[12,"actime","","",1,null],[12,"modtime","","",1,null],[17,"SEEK_END","","",null,null],[3,"timeval","","",null,null],[12,"tv_sec","","",2,null],[12,"tv_usec","","",2,null],[17,"O_WRONLY","","",null,null],[17,"RAND_MAX","","",null,null],[5,"wstat","","",null,null],[17,"O_RDWR","","",null,null],[6,"clock_t","","",null,null],[5,"fstat","","",null,null],[4,"timezone","","",null,null],[17,"S_IFMT","","",null,null],[5,"execvp","","",null,null],[5,"getpid","","",null,{"inputs":[],"output":{"name":"i32"}}],[5,"open_osfhandle","","",null,{"inputs":[{"name":"isize"},{"name":"i32"}],"output":{"name":"i32"}}],[5,"wchmod","","",null,null],[5,"execve","","",null,null],[5,"pipe","","",null,null],[17,"_IONBF","","",null,null],[17,"_IOFBF","","",null,null],[17,"EXIT_SUCCESS","","",null,null],[5,"lseek","","",null,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"i32"}],"output":{"name":"i32"}}],[6,"ino_t","","",null,null],[5,"get_osfhandle","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"isize"}}],[17,"O_TRUNC","","",null,null],[17,"S_IWRITE","","",null,null],[17,"EOF","","",null,null],[5,"pclose","","",null,null],[6,"c_ulong","","",null,null],[17,"O_CREAT","","",null,null],[17,"S_IEXEC","","",null,null],[3,"timespec","","",null,null],[12,"tv_sec","","",3,null],[12,"tv_nsec","","",3,null],[17,"O_NOINHERIT","","",null,null],[5,"rmdir","","",null,null],[17,"L_tmpnam","","",null,null],[5,"mkdir","","",null,null],[17,"O_EXCL","","",null,null],[5,"unlink","","",null,null],[17,"EXIT_FAILURE","","",null,null],[5,"fileno","","",null,null],[17,"SEEK_CUR","","",null,null],[5,"access","","",null,null],[17,"O_BINARY","","",null,null],[17,"BUFSIZ","","",null,null],[5,"open","","",null,null],[17,"S_IFDIR","","",null,null],[5,"execv","","",null,null],[17,"FILENAME_MAX","","",null,null],[17,"S_IREAD","","",null,null],[5,"chdir","","",null,null],[5,"close","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[5,"isatty","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"i32"}}],[17,"O_APPEND","","",null,null],[17,"SEEK_SET","","",null,null],[5,"wopen","","",null,null],[6,"time_t","","",null,null],[3,"Sdl","sdl2","The SDL context type. Initialize with `sdl2::init()`.",null,null],[3,"AudioSubsystem","","",null,null],[3,"GameControllerSubsystem","","",null,null],[3,"HapticSubsystem","","",null,null],[3,"JoystickSubsystem","","",null,null],[3,"VideoSubsystem","","",null,null],[3,"TimerSubsystem","","",null,null],[3,"EventSubsystem","","",null,null],[3,"EventPump","","A thread-safe type that encapsulates SDL event-pumping functions.",null,null],[4,"Error","","",null,null],[13,"NoMemError","","",4,null],[13,"ReadError","","",4,null],[13,"WriteError","","",4,null],[13,"SeekError","","",4,null],[13,"UnsupportedError","","",4,null],[4,"IntegerOrSdlError","","A given integer was so big that its representation as a C integer would be\nnegative.",null,null],[13,"IntegerOverflows","","",5,null],[13,"SdlError","","",5,null],[5,"init","","Initializes the SDL library.\nThis must be called before using any other SDL function.",null,{"inputs":[],"output":{"name":"result"}}],[5,"get_error","","",null,{"inputs":[],"output":{"name":"string"}}],[5,"set_error","","",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"set_error_from_code","","",null,{"inputs":[{"name":"error"}],"output":null}],[5,"clear_error","","",null,{"inputs":[],"output":null}],[0,"clipboard","","",null,null],[3,"ClipboardUtil","sdl2::clipboard","Clipboard utility functions. Access with `VideoSubsystem::clipboard()`.",null,null],[11,"clipboard","sdl2","",6,null],[11,"set_clipboard_text","sdl2::clipboard","",7,null],[11,"clipboard_text","","",7,null],[11,"has_clipboard_text","","",7,null],[0,"cpuinfo","sdl2","",null,null],[5,"cpu_count","sdl2::cpuinfo","",null,{"inputs":[],"output":{"name":"i32"}}],[5,"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,"system_ram","","",null,{"inputs":[],"output":{"name":"i32"}}],[17,"CACHELINESIZE","","",null,null],[0,"event","sdl2","Event Handling",null,null],[3,"EventPollIterator","sdl2::event","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","","",8,null],[13,"Quit","","",8,null],[13,"AppTerminating","","",8,null],[13,"AppLowMemory","","",8,null],[13,"AppWillEnterBackground","","",8,null],[13,"AppDidEnterBackground","","",8,null],[13,"AppWillEnterForeground","","",8,null],[13,"AppDidEnterForeground","","",8,null],[13,"Window","","",8,null],[13,"KeyDown","","",8,null],[13,"KeyUp","","",8,null],[13,"TextEditing","","",8,null],[13,"TextInput","","",8,null],[13,"MouseMotion","","",8,null],[13,"MouseButtonDown","","",8,null],[13,"MouseButtonUp","","",8,null],[13,"MouseWheel","","",8,null],[13,"JoyAxisMotion","","",8,null],[13,"JoyBallMotion","","",8,null],[13,"JoyHatMotion","","",8,null],[13,"JoyButtonDown","","",8,null],[13,"JoyButtonUp","","",8,null],[13,"JoyDeviceAdded","","",8,null],[13,"JoyDeviceRemoved","","",8,null],[13,"ControllerAxisMotion","","",8,null],[13,"ControllerButtonDown","","",8,null],[13,"ControllerButtonUp","","",8,null],[13,"ControllerDeviceAdded","","",8,null],[13,"ControllerDeviceRemoved","","",8,null],[13,"ControllerDeviceRemapped","","",8,null],[13,"FingerDown","","",8,null],[13,"FingerUp","","",8,null],[13,"FingerMotion","","",8,null],[13,"DollarGesture","","",8,null],[13,"DollarRecord","","",8,null],[13,"MultiGesture","","",8,null],[13,"ClipboardUpdate","","",8,null],[13,"DropFile","","",8,null],[13,"User","","",8,null],[13,"Last","","",8,null],[4,"WindowEventId","","An enum of window events.",null,null],[13,"None","","",9,null],[13,"Shown","","",9,null],[13,"Hidden","","",9,null],[13,"Exposed","","",9,null],[13,"Moved","","",9,null],[13,"Resized","","",9,null],[13,"SizeChanged","","",9,null],[13,"Minimized","","",9,null],[13,"Maximized","","",9,null],[13,"Restored","","",9,null],[13,"Enter","","",9,null],[13,"Leave","","",9,null],[13,"FocusGained","","",9,null],[13,"FocusLost","","",9,null],[13,"Close","","",9,null],[4,"Event","","Different event types.",null,null],[13,"Quit","","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[13,"AppTerminating","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[13,"AppLowMemory","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[13,"AppWillEnterBackground","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[13,"AppDidEnterBackground","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[13,"AppWillEnterForeground","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[13,"AppDidEnterForeground","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[13,"Window","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"win_event_id","","",10,null],[12,"data1","","",10,null],[12,"data2","","",10,null],[13,"KeyDown","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"keycode","","",10,null],[12,"scancode","","",10,null],[12,"keymod","","",10,null],[12,"repeat","","",10,null],[13,"KeyUp","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"keycode","","",10,null],[12,"scancode","","",10,null],[12,"keymod","","",10,null],[12,"repeat","","",10,null],[13,"TextEditing","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"text","","",10,null],[12,"start","","",10,null],[12,"length","","",10,null],[13,"TextInput","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"text","","",10,null],[13,"MouseMotion","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"which","","",10,null],[12,"mousestate","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[12,"xrel","","",10,null],[12,"yrel","","",10,null],[13,"MouseButtonDown","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"which","","",10,null],[12,"mouse_btn","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[13,"MouseButtonUp","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"which","","",10,null],[12,"mouse_btn","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[13,"MouseWheel","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"which","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[13,"JoyAxisMotion","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[12,"axis_idx","","",10,null],[12,"value","","",10,null],[13,"JoyBallMotion","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[12,"ball_idx","","",10,null],[12,"xrel","","",10,null],[12,"yrel","","",10,null],[13,"JoyHatMotion","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[12,"hat_idx","","",10,null],[12,"state","","",10,null],[13,"JoyButtonDown","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[12,"button_idx","","",10,null],[13,"JoyButtonUp","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[12,"button_idx","","",10,null],[13,"JoyDeviceAdded","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[13,"JoyDeviceRemoved","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[13,"ControllerAxisMotion","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[12,"axis","","",10,null],[12,"value","","",10,null],[13,"ControllerButtonDown","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[12,"button","","",10,null],[13,"ControllerButtonUp","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[12,"button","","",10,null],[13,"ControllerDeviceAdded","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[13,"ControllerDeviceRemoved","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[13,"ControllerDeviceRemapped","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"which","","",10,null],[13,"FingerDown","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"touch_id","","",10,null],[12,"finger_id","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[12,"dx","","",10,null],[12,"dy","","",10,null],[12,"pressure","","",10,null],[13,"FingerUp","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"touch_id","","",10,null],[12,"finger_id","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[12,"dx","","",10,null],[12,"dy","","",10,null],[12,"pressure","","",10,null],[13,"FingerMotion","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"touch_id","","",10,null],[12,"finger_id","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[12,"dx","","",10,null],[12,"dy","","",10,null],[12,"pressure","","",10,null],[13,"DollarGesture","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"touch_id","","",10,null],[12,"gesture_id","","",10,null],[12,"num_fingers","","",10,null],[12,"error","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[13,"DollarRecord","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"touch_id","","",10,null],[12,"gesture_id","","",10,null],[12,"num_fingers","","",10,null],[12,"error","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[13,"MultiGesture","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"touch_id","","",10,null],[12,"d_theta","","",10,null],[12,"d_dist","","",10,null],[12,"x","","",10,null],[12,"y","","",10,null],[12,"num_fingers","","",10,null],[13,"ClipboardUpdate","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[13,"DropFile","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"filename","","",10,null],[13,"User","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"window_id","","",10,null],[12,"type_","","",10,null],[12,"code","","",10,null],[12,"data1","","",10,null],[12,"data2","","",10,null],[13,"Unknown","sdl2::event","",10,null],[12,"timestamp","sdl2::event::Event","",10,null],[12,"type_","","",10,null],[11,"flush_event","sdl2","Removes all events in the event queue that match the specified event type.",11,null],[11,"flush_events","","Removes all events in the event queue that match the specified type range.",11,null],[11,"peek_events","","Reads the events at the front of the event queue, until the maximum amount\nof events is read.",11,null],[11,"push_event","","Pushes an event to the event queue.",11,null],[11,"register_event","","Register a custom SDL event.",11,null],[11,"register_events","","Registers custom SDL events.",11,null],[11,"register_custom_event","","Register a custom event",11,null],[11,"push_custom_event","","Push a custom event",11,null],[11,"fmt","sdl2::event","",8,null],[11,"hash","","",8,null],[11,"eq","","",8,null],[11,"clone","","",8,null],[11,"from_i64","","",8,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",8,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",9,null],[11,"hash","","",9,null],[11,"eq","","",9,null],[11,"clone","","",9,null],[11,"eq","","",10,null],[11,"ne","","",10,null],[11,"clone","","",10,null],[11,"fmt","","",10,null],[11,"is_user_event","","",10,null],[11,"as_user_event_type","","",10,null],[11,"is_event_enabled","sdl2","Query if an event type is enabled.",12,null],[11,"enable_event","","Enable an event type. Returns if the event type was enabled before the call.",12,null],[11,"disable_event","","Disable an event type. Returns if the event type was enabled before the call.",12,null],[11,"poll_event","","Polls for currently pending events.",12,null],[11,"poll_iter","","Returns a polling iterator that calls `poll_event()`.\nThe iterator will terminate once there are no more pending events.",12,null],[11,"pump_events","","Pumps the event loop, gathering events from the input devices.",12,null],[11,"wait_event","","Waits indefinitely for the next available event.",12,null],[11,"wait_event_timeout","","Waits until the specified timeout (in milliseconds) for the next available event.",12,null],[11,"wait_iter","","Returns a waiting iterator that calls `wait_event()`.",12,null],[11,"wait_timeout_iter","","Returns a waiting iterator that calls `wait_event_timeout()`.",12,null],[11,"keyboard_state","","",12,null],[11,"next","sdl2::event","",13,null],[11,"next","","",14,null],[11,"next","","",15,null],[0,"filesystem","sdl2","",null,null],[4,"PrefPathError","sdl2::filesystem","",null,null],[13,"InvalidOrganizationName","","",16,null],[13,"InvalidApplicationName","","",16,null],[13,"SdlError","","",16,null],[5,"base_path","","",null,{"inputs":[],"output":{"name":"result"}}],[5,"pref_path","","Return the preferred directory for the application to write files on this\nsystem, based on the given organization and application name.",null,{"inputs":[{"name":"str"},{"name":"str"}],"output":{"name":"result"}}],[0,"gesture","sdl2","",null,null],[0,"touch","","",null,null],[5,"num_touch_devices","sdl2::touch","",null,{"inputs":[],"output":{"name":"i32"}}],[5,"touch_device","","",null,{"inputs":[{"name":"i32"}],"output":{"name":"touchdevice"}}],[5,"num_touch_fingers","","",null,{"inputs":[{"name":"touchdevice"}],"output":{"name":"i32"}}],[5,"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","","",17,null],[13,"Up","","",17,null],[13,"Right","","",17,null],[13,"Down","","",17,null],[13,"Left","","",17,null],[13,"RightUp","","",17,null],[13,"RightDown","","",17,null],[13,"LeftUp","","",17,null],[13,"Leftdown","","",17,null],[11,"num_joysticks","sdl2","Retreive the total number of attached joysticks *and* controllers identified by SDL.",18,null],[11,"open","","Attempt to open the joystick at number `id` and return it.",18,null],[11,"name_for_index","","Return the name of the joystick at index `id`",18,null],[11,"device_guid","","Get the GUID for the joystick number `id`",18,null],[11,"set_event_state","","If state is `true` joystick events are processed, otherwise\nthey're ignored.",18,null],[11,"event_state","","Return `true` if joystick events are processed.",18,null],[11,"update","","Force joystick update when not using the event loop",18,null],[11,"subsystem","sdl2::joystick","",19,null],[11,"name","","Return the name of the joystick or an empty string if no name\nis found.",19,null],[11,"attached","","Return true if the joystick has been opened and currently\nconnected.",19,null],[11,"instance_id","","",19,null],[11,"guid","","Retreive the joystick's GUID",19,null],[11,"num_axes","","Retreive the number of axes for this joystick",19,null],[11,"axis","","Gets the position of the given `axis`.",19,null],[11,"num_buttons","","Retreive the number of buttons for this joystick",19,null],[11,"button","","Return `Ok(true)` if `button` is pressed.",19,null],[11,"num_balls","","Retreive the number of balls for this joystick",19,null],[11,"ball","","Return a pair `(dx, dy)` containing the difference in axis\nposition since the last poll",19,null],[11,"num_hats","","Retreive the number of balls for this joystick",19,null],[11,"hat","","Return the position of `hat` for this joystick",19,null],[11,"drop","","",19,null],[11,"hash","","",20,null],[11,"eq","","",20,null],[11,"ne","","",20,null],[11,"clone","","",20,null],[11,"from_string","","Create a GUID from a string representation.",20,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"is_zero","","Return `true` if GUID is full 0s",20,null],[11,"string","","Return a String representation of GUID",20,null],[11,"raw","","Return a copy of the internal SDL_JoystickGUID",20,null],[11,"fmt","","",20,null],[11,"fmt","","",17,null],[11,"hash","","",17,null],[11,"eq","","",17,null],[11,"clone","","",17,null],[11,"from_raw","","",17,{"inputs":[{"name":"u8"}],"output":{"name":"hatstate"}}],[0,"controller","sdl2","",null,null],[3,"GameController","sdl2::controller","Wrapper around the SDL_GameController object",null,null],[4,"AddMappingError","","",null,null],[13,"InvalidMapping","","",21,null],[13,"SdlError","","",21,null],[4,"Axis","","",null,null],[13,"LeftX","","",22,null],[13,"LeftY","","",22,null],[13,"RightX","","",22,null],[13,"RightY","","",22,null],[13,"TriggerLeft","","",22,null],[13,"TriggerRight","","",22,null],[4,"Button","","",null,null],[13,"A","","",23,null],[13,"B","","",23,null],[13,"X","","",23,null],[13,"Y","","",23,null],[13,"Back","","",23,null],[13,"Guide","","",23,null],[13,"Start","","",23,null],[13,"LeftStick","","",23,null],[13,"RightStick","","",23,null],[13,"LeftShoulder","","",23,null],[13,"RightShoulder","","",23,null],[13,"DPadUp","","",23,null],[13,"DPadDown","","",23,null],[13,"DPadLeft","","",23,null],[13,"DPadRight","","",23,null],[4,"MappingStatus","","Possible return values for `add_mapping`",null,null],[13,"Added","","",24,null],[13,"Updated","","",24,null],[11,"fmt","","",21,null],[11,"num_joysticks","sdl2","Retreive the total number of attached joysticks *and* controllers identified by SDL.",25,null],[11,"is_game_controller","","Return true if the joystick at index `id` is a game controller.",25,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.",25,null],[11,"name_for_index","","Return the name of the controller at the given index.",25,null],[11,"set_event_state","","If state is `true` controller events are processed, otherwise\nthey're ignored.",25,null],[11,"event_state","","Return `true` if controller events are processed.",25,null],[11,"add_mapping","","Add a new mapping from a mapping string",25,null],[11,"mapping_for_guid","","",25,null],[11,"update","","Force controller update when not using the event loop",25,null],[11,"fmt","sdl2::controller","",22,null],[11,"hash","","",22,null],[11,"eq","","",22,null],[11,"clone","","",22,null],[11,"from_string","","Return the Axis from a string description in the same format\nused by the game controller mapping strings.",22,{"inputs":[{"name":"str"}],"output":{"name":"option"}}],[11,"string","","Return a string for a given axis in the same format using by\nthe game controller mapping strings",22,null],[11,"from_ll","","",22,{"inputs":[{"name":"sdl_gamecontrolleraxis"}],"output":{"name":"option"}}],[11,"fmt","","",23,null],[11,"hash","","",23,null],[11,"eq","","",23,null],[11,"clone","","",23,null],[11,"from_string","","Return the Button from a string description in the same format\nused by the game controller mapping strings.",23,{"inputs":[{"name":"str"}],"output":{"name":"option"}}],[11,"string","","Return a string for a given button in the same format using by\nthe game controller mapping strings",23,null],[11,"from_ll","","",23,{"inputs":[{"name":"sdl_gamecontrollerbutton"}],"output":{"name":"option"}}],[11,"fmt","","",24,null],[11,"hash","","",24,null],[11,"eq","","",24,null],[11,"clone","","",24,null],[11,"subsystem","","",26,null],[11,"name","","Return the name of the controller or an empty string if no\nname is found.",26,null],[11,"mapping","","Return a String describing the controller's button and axis\nmappings",26,null],[11,"attached","","Return true if the controller has been opened and currently\nconnected.",26,null],[11,"axis","","Get the position of the given `axis`",26,null],[11,"button","","Returns `true` if `button` is pressed.",26,null],[11,"drop","","",26,null],[0,"haptic","sdl2","Haptic Functions",null,null],[0,"keyboard","","",null,null],[3,"Mod","sdl2::keyboard","",null,null],[3,"KeyboardState","","",null,null],[3,"ScancodeIterator","","",null,null],[3,"PressedScancodeIterator","","",null,null],[3,"KeyboardUtil","","Keyboard utility functions. Access with `Sdl::keyboard()`.",null,null],[3,"TextInputUtil","","Text input utility functions. Access with `VideoSubsystem::text_input()`.",null,null],[4,"Keycode","","",null,null],[13,"Backspace","","",27,null],[13,"Tab","","",27,null],[13,"Return","","",27,null],[13,"Escape","","",27,null],[13,"Space","","",27,null],[13,"Exclaim","","",27,null],[13,"Quotedbl","","",27,null],[13,"Hash","","",27,null],[13,"Dollar","","",27,null],[13,"Percent","","",27,null],[13,"Ampersand","","",27,null],[13,"Quote","","",27,null],[13,"LeftParen","","",27,null],[13,"RightParen","","",27,null],[13,"Asterisk","","",27,null],[13,"Plus","","",27,null],[13,"Comma","","",27,null],[13,"Minus","","",27,null],[13,"Period","","",27,null],[13,"Slash","","",27,null],[13,"Num0","","",27,null],[13,"Num1","","",27,null],[13,"Num2","","",27,null],[13,"Num3","","",27,null],[13,"Num4","","",27,null],[13,"Num5","","",27,null],[13,"Num6","","",27,null],[13,"Num7","","",27,null],[13,"Num8","","",27,null],[13,"Num9","","",27,null],[13,"Colon","","",27,null],[13,"Semicolon","","",27,null],[13,"Less","","",27,null],[13,"Equals","","",27,null],[13,"Greater","","",27,null],[13,"Question","","",27,null],[13,"At","","",27,null],[13,"LeftBracket","","",27,null],[13,"Backslash","","",27,null],[13,"RightBracket","","",27,null],[13,"Caret","","",27,null],[13,"Underscore","","",27,null],[13,"Backquote","","",27,null],[13,"A","","",27,null],[13,"B","","",27,null],[13,"C","","",27,null],[13,"D","","",27,null],[13,"E","","",27,null],[13,"F","","",27,null],[13,"G","","",27,null],[13,"H","","",27,null],[13,"I","","",27,null],[13,"J","","",27,null],[13,"K","","",27,null],[13,"L","","",27,null],[13,"M","","",27,null],[13,"N","","",27,null],[13,"O","","",27,null],[13,"P","","",27,null],[13,"Q","","",27,null],[13,"R","","",27,null],[13,"S","","",27,null],[13,"T","","",27,null],[13,"U","","",27,null],[13,"V","","",27,null],[13,"W","","",27,null],[13,"X","","",27,null],[13,"Y","","",27,null],[13,"Z","","",27,null],[13,"Delete","","",27,null],[13,"CapsLock","","",27,null],[13,"F1","","",27,null],[13,"F2","","",27,null],[13,"F3","","",27,null],[13,"F4","","",27,null],[13,"F5","","",27,null],[13,"F6","","",27,null],[13,"F7","","",27,null],[13,"F8","","",27,null],[13,"F9","","",27,null],[13,"F10","","",27,null],[13,"F11","","",27,null],[13,"F12","","",27,null],[13,"PrintScreen","","",27,null],[13,"ScrollLock","","",27,null],[13,"Pause","","",27,null],[13,"Insert","","",27,null],[13,"Home","","",27,null],[13,"PageUp","","",27,null],[13,"End","","",27,null],[13,"PageDown","","",27,null],[13,"Right","","",27,null],[13,"Left","","",27,null],[13,"Down","","",27,null],[13,"Up","","",27,null],[13,"NumLockClear","","",27,null],[13,"KpDivide","","",27,null],[13,"KpMultiply","","",27,null],[13,"KpMinus","","",27,null],[13,"KpPlus","","",27,null],[13,"KpEnter","","",27,null],[13,"Kp1","","",27,null],[13,"Kp2","","",27,null],[13,"Kp3","","",27,null],[13,"Kp4","","",27,null],[13,"Kp5","","",27,null],[13,"Kp6","","",27,null],[13,"Kp7","","",27,null],[13,"Kp8","","",27,null],[13,"Kp9","","",27,null],[13,"Kp0","","",27,null],[13,"KpPeriod","","",27,null],[13,"Application","","",27,null],[13,"Power","","",27,null],[13,"KpEquals","","",27,null],[13,"F13","","",27,null],[13,"F14","","",27,null],[13,"F15","","",27,null],[13,"F16","","",27,null],[13,"F17","","",27,null],[13,"F18","","",27,null],[13,"F19","","",27,null],[13,"F20","","",27,null],[13,"F21","","",27,null],[13,"F22","","",27,null],[13,"F23","","",27,null],[13,"F24","","",27,null],[13,"Execute","","",27,null],[13,"Help","","",27,null],[13,"Menu","","",27,null],[13,"Select","","",27,null],[13,"Stop","","",27,null],[13,"Again","","",27,null],[13,"Undo","","",27,null],[13,"Cut","","",27,null],[13,"Copy","","",27,null],[13,"Paste","","",27,null],[13,"Find","","",27,null],[13,"Mute","","",27,null],[13,"VolumeUp","","",27,null],[13,"VolumeDown","","",27,null],[13,"KpComma","","",27,null],[13,"KpEqualsAS400","","",27,null],[13,"AltErase","","",27,null],[13,"Sysreq","","",27,null],[13,"Cancel","","",27,null],[13,"Clear","","",27,null],[13,"Prior","","",27,null],[13,"Return2","","",27,null],[13,"Separator","","",27,null],[13,"Out","","",27,null],[13,"Oper","","",27,null],[13,"ClearAgain","","",27,null],[13,"CrSel","","",27,null],[13,"ExSel","","",27,null],[13,"Kp00","","",27,null],[13,"Kp000","","",27,null],[13,"ThousandsSeparator","","",27,null],[13,"DecimalSeparator","","",27,null],[13,"CurrencyUnit","","",27,null],[13,"CurrencySubUnit","","",27,null],[13,"KpLeftParen","","",27,null],[13,"KpRightParen","","",27,null],[13,"KpLeftBrace","","",27,null],[13,"KpRightBrace","","",27,null],[13,"KpTab","","",27,null],[13,"KpBackspace","","",27,null],[13,"KpA","","",27,null],[13,"KpB","","",27,null],[13,"KpC","","",27,null],[13,"KpD","","",27,null],[13,"KpE","","",27,null],[13,"KpF","","",27,null],[13,"KpXor","","",27,null],[13,"KpPower","","",27,null],[13,"KpPercent","","",27,null],[13,"KpLess","","",27,null],[13,"KpGreater","","",27,null],[13,"KpAmpersand","","",27,null],[13,"KpDblAmpersand","","",27,null],[13,"KpVerticalBar","","",27,null],[13,"KpDblVerticalBar","","",27,null],[13,"KpColon","","",27,null],[13,"KpHash","","",27,null],[13,"KpSpace","","",27,null],[13,"KpAt","","",27,null],[13,"KpExclam","","",27,null],[13,"KpMemStore","","",27,null],[13,"KpMemRecall","","",27,null],[13,"KpMemClear","","",27,null],[13,"KpMemAdd","","",27,null],[13,"KpMemSubtract","","",27,null],[13,"KpMemMultiply","","",27,null],[13,"KpMemDivide","","",27,null],[13,"KpPlusMinus","","",27,null],[13,"KpCear","","",27,null],[13,"KpClearEntry","","",27,null],[13,"KpBinary","","",27,null],[13,"KpOctal","","",27,null],[13,"KpDecimal","","",27,null],[13,"KpHexadecimal","","",27,null],[13,"LCtrl","","",27,null],[13,"LShift","","",27,null],[13,"LAlt","","",27,null],[13,"LGui","","",27,null],[13,"RCtrl","","",27,null],[13,"RShift","","",27,null],[13,"RAlt","","",27,null],[13,"RGui","","",27,null],[13,"Mode","","",27,null],[13,"AudioNext","","",27,null],[13,"AudioPrev","","",27,null],[13,"AudioStop","","",27,null],[13,"AudioPlay","","",27,null],[13,"AudioMute","","",27,null],[13,"MediaSelect","","",27,null],[13,"Www","","",27,null],[13,"Mail","","",27,null],[13,"Calculator","","",27,null],[13,"Computer","","",27,null],[13,"AcSearch","","",27,null],[13,"AcHome","","",27,null],[13,"AcBack","","",27,null],[13,"AcForward","","",27,null],[13,"AcStop","","",27,null],[13,"AcRefresh","","",27,null],[13,"AcBookmarks","","",27,null],[13,"BrightnessDown","","",27,null],[13,"BrightnessUp","","",27,null],[13,"DisplaySwitch","","",27,null],[13,"KbdIllumToggle","","",27,null],[13,"KbdIllumDown","","",27,null],[13,"KbdIllumUp","","",27,null],[13,"Eject","","",27,null],[13,"Sleep","","",27,null],[4,"Scancode","","",null,null],[13,"A","","",28,null],[13,"B","","",28,null],[13,"C","","",28,null],[13,"D","","",28,null],[13,"E","","",28,null],[13,"F","","",28,null],[13,"G","","",28,null],[13,"H","","",28,null],[13,"I","","",28,null],[13,"J","","",28,null],[13,"K","","",28,null],[13,"L","","",28,null],[13,"M","","",28,null],[13,"N","","",28,null],[13,"O","","",28,null],[13,"P","","",28,null],[13,"Q","","",28,null],[13,"R","","",28,null],[13,"S","","",28,null],[13,"T","","",28,null],[13,"U","","",28,null],[13,"V","","",28,null],[13,"W","","",28,null],[13,"X","","",28,null],[13,"Y","","",28,null],[13,"Z","","",28,null],[13,"Num1","","",28,null],[13,"Num2","","",28,null],[13,"Num3","","",28,null],[13,"Num4","","",28,null],[13,"Num5","","",28,null],[13,"Num6","","",28,null],[13,"Num7","","",28,null],[13,"Num8","","",28,null],[13,"Num9","","",28,null],[13,"Num0","","",28,null],[13,"Return","","",28,null],[13,"Escape","","",28,null],[13,"Backspace","","",28,null],[13,"Tab","","",28,null],[13,"Space","","",28,null],[13,"Minus","","",28,null],[13,"Equals","","",28,null],[13,"LeftBracket","","",28,null],[13,"RightBracket","","",28,null],[13,"Backslash","","",28,null],[13,"NonUsHash","","",28,null],[13,"Semicolon","","",28,null],[13,"Apostrophe","","",28,null],[13,"Grave","","",28,null],[13,"Comma","","",28,null],[13,"Period","","",28,null],[13,"Slash","","",28,null],[13,"CapsLock","","",28,null],[13,"F1","","",28,null],[13,"F2","","",28,null],[13,"F3","","",28,null],[13,"F4","","",28,null],[13,"F5","","",28,null],[13,"F6","","",28,null],[13,"F7","","",28,null],[13,"F8","","",28,null],[13,"F9","","",28,null],[13,"F10","","",28,null],[13,"F11","","",28,null],[13,"F12","","",28,null],[13,"PrintScreen","","",28,null],[13,"ScrollLock","","",28,null],[13,"Pause","","",28,null],[13,"Insert","","",28,null],[13,"Home","","",28,null],[13,"PageUp","","",28,null],[13,"Delete","","",28,null],[13,"End","","",28,null],[13,"PageDown","","",28,null],[13,"Right","","",28,null],[13,"Left","","",28,null],[13,"Down","","",28,null],[13,"Up","","",28,null],[13,"NumLockClear","","",28,null],[13,"KpDivide","","",28,null],[13,"KpMultiply","","",28,null],[13,"KpMinus","","",28,null],[13,"KpPlus","","",28,null],[13,"KpEnter","","",28,null],[13,"Kp1","","",28,null],[13,"Kp2","","",28,null],[13,"Kp3","","",28,null],[13,"Kp4","","",28,null],[13,"Kp5","","",28,null],[13,"Kp6","","",28,null],[13,"Kp7","","",28,null],[13,"Kp8","","",28,null],[13,"Kp9","","",28,null],[13,"Kp0","","",28,null],[13,"KpPeriod","","",28,null],[13,"NonUsBackslash","","",28,null],[13,"Application","","",28,null],[13,"Power","","",28,null],[13,"KpEquals","","",28,null],[13,"F13","","",28,null],[13,"F14","","",28,null],[13,"F15","","",28,null],[13,"F16","","",28,null],[13,"F17","","",28,null],[13,"F18","","",28,null],[13,"F19","","",28,null],[13,"F20","","",28,null],[13,"F21","","",28,null],[13,"F22","","",28,null],[13,"F23","","",28,null],[13,"F24","","",28,null],[13,"Execute","","",28,null],[13,"Help","","",28,null],[13,"Menu","","",28,null],[13,"Select","","",28,null],[13,"Stop","","",28,null],[13,"Again","","",28,null],[13,"Undo","","",28,null],[13,"Cut","","",28,null],[13,"Copy","","",28,null],[13,"Paste","","",28,null],[13,"Find","","",28,null],[13,"Mute","","",28,null],[13,"VolumeUp","","",28,null],[13,"VolumeDown","","",28,null],[13,"KpComma","","",28,null],[13,"KpEqualsAS400","","",28,null],[13,"International1","","",28,null],[13,"International2","","",28,null],[13,"International3","","",28,null],[13,"International4","","",28,null],[13,"International5","","",28,null],[13,"International6","","",28,null],[13,"International7","","",28,null],[13,"International8","","",28,null],[13,"International9","","",28,null],[13,"Lang1","","",28,null],[13,"Lang2","","",28,null],[13,"Lang3","","",28,null],[13,"Lang4","","",28,null],[13,"Lang5","","",28,null],[13,"Lang6","","",28,null],[13,"Lang7","","",28,null],[13,"Lang8","","",28,null],[13,"Lang9","","",28,null],[13,"AltErase","","",28,null],[13,"SysReq","","",28,null],[13,"Cancel","","",28,null],[13,"Clear","","",28,null],[13,"Prior","","",28,null],[13,"Return2","","",28,null],[13,"Separator","","",28,null],[13,"Out","","",28,null],[13,"Oper","","",28,null],[13,"ClearAgain","","",28,null],[13,"Crse","","",28,null],[13,"ExseL","","",28,null],[13,"Kp00","","",28,null],[13,"Kp000","","",28,null],[13,"ThousandsSeparator","","",28,null],[13,"DecimalSeparator","","",28,null],[13,"CurrencyUnit","","",28,null],[13,"CurrencySubUnit","","",28,null],[13,"KpLeftParen","","",28,null],[13,"KpRightParen","","",28,null],[13,"KpLeftBrace","","",28,null],[13,"KpRightBrace","","",28,null],[13,"KpTab","","",28,null],[13,"KpBackspace","","",28,null],[13,"KpA","","",28,null],[13,"KpB","","",28,null],[13,"KpC","","",28,null],[13,"KpD","","",28,null],[13,"KpE","","",28,null],[13,"KpF","","",28,null],[13,"KpXor","","",28,null],[13,"KpPower","","",28,null],[13,"KpPercent","","",28,null],[13,"KpLess","","",28,null],[13,"KpGreater","","",28,null],[13,"KpAmpersand","","",28,null],[13,"KpDblAmpersand","","",28,null],[13,"KpVerticalBar","","",28,null],[13,"KpDblVerticalBar","","",28,null],[13,"KpColon","","",28,null],[13,"KpHash","","",28,null],[13,"KpSpace","","",28,null],[13,"KpAt","","",28,null],[13,"KpExclam","","",28,null],[13,"KpMemStore","","",28,null],[13,"KpMemRecall","","",28,null],[13,"KpMemClear","","",28,null],[13,"KpMemAdd","","",28,null],[13,"KpMemSubtract","","",28,null],[13,"KpMemMultiply","","",28,null],[13,"KpMemDivide","","",28,null],[13,"KpPlusMinus","","",28,null],[13,"KpClear","","",28,null],[13,"KpClearEntry","","",28,null],[13,"KpBinary","","",28,null],[13,"KpOoctal","","",28,null],[13,"KpDecimal","","",28,null],[13,"KpHexadecimal","","",28,null],[13,"LCtrl","","",28,null],[13,"LShift","","",28,null],[13,"LAlt","","",28,null],[13,"LGui","","",28,null],[13,"RCtrl","","",28,null],[13,"RShift","","",28,null],[13,"RAlt","","",28,null],[13,"RGui","","",28,null],[13,"Mode","","",28,null],[13,"AudioNext","","",28,null],[13,"AudioPrev","","",28,null],[13,"AudioStop","","",28,null],[13,"AudioPlay","","",28,null],[13,"AudioMute","","",28,null],[13,"MediaSelect","","",28,null],[13,"Www","","",28,null],[13,"Mail","","",28,null],[13,"Calculator","","",28,null],[13,"Computer","","",28,null],[13,"AcSearch","","",28,null],[13,"AcHome","","",28,null],[13,"AcBack","","",28,null],[13,"AcForward","","",28,null],[13,"AcStop","","",28,null],[13,"AcRefresh","","",28,null],[13,"AcBookmarks","","",28,null],[13,"BrightnessDown","","",28,null],[13,"BrightnessUp","","",28,null],[13,"DisplaySwitch","","",28,null],[13,"KbdIllumToggle","","",28,null],[13,"KbdIllumDown","","",28,null],[13,"KbdIllumUp","","",28,null],[13,"Eject","","",28,null],[13,"Sleep","","",28,null],[13,"App1","","",28,null],[13,"App2","","",28,null],[13,"Num","","",28,null],[11,"fmt","","",27,null],[11,"hash","","",27,null],[11,"eq","","",27,null],[11,"clone","","",27,null],[11,"to_i64","","",27,null],[11,"to_u64","","",27,null],[11,"to_isize","","",27,null],[11,"from_i64","","",27,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",27,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",27,null],[11,"from_scancode","","Gets the virtual key from a scancode. Returns None if there is no corresponding virtual key.",27,{"inputs":[{"name":"scancode"}],"output":{"name":"option"}}],[11,"from_name","","",27,{"inputs":[{"name":"str"}],"output":{"name":"option"}}],[11,"name","","",27,null],[11,"fmt","","",28,null],[11,"hash","","",28,null],[11,"eq","","",28,null],[11,"clone","","",28,null],[11,"to_i64","","",28,null],[11,"to_u64","","",28,null],[11,"to_isize","","",28,null],[11,"from_i64","","",28,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",28,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",28,null],[11,"from_keycode","","Gets the scancode from a virtual key. Returns None if there is no corresponding scancode.",28,{"inputs":[{"name":"keycode"}],"output":{"name":"option"}}],[11,"from_name","","",28,{"inputs":[{"name":"str"}],"output":{"name":"option"}}],[11,"name","","",28,null],[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","","",29,null],[11,"cmp","","",29,null],[11,"partial_cmp","","",29,null],[11,"lt","","",29,null],[11,"le","","",29,null],[11,"gt","","",29,null],[11,"ge","","",29,null],[11,"clone","","",29,null],[11,"eq","","",29,null],[11,"ne","","",29,null],[11,"fmt","","",29,null],[11,"empty","","Returns an empty set of flags.",29,{"inputs":[],"output":{"name":"mod"}}],[11,"all","","Returns the set containing all flags.",29,{"inputs":[],"output":{"name":"mod"}}],[11,"bits","","Returns the raw value of the flags currently stored.",29,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",29,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",29,{"inputs":[{"name":"u32"}],"output":{"name":"mod"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",29,null],[11,"is_all","","Returns `true` if all flags are currently set.",29,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",29,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",29,null],[11,"insert","","Inserts the specified flags in-place.",29,null],[11,"remove","","Removes the specified flags in-place.",29,null],[11,"toggle","","Toggles the specified flags in-place.",29,null],[11,"bitor","","Returns the union of the two sets of flags.",29,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",29,null],[11,"bitand","","Returns the intersection between the two sets of flags.",29,null],[11,"sub","","Returns the set difference of the two sets of flags.",29,null],[11,"not","","Returns the complement of this set of flags.",29,null],[11,"from_iter","","",29,{"inputs":[{"name":"t"}],"output":{"name":"mod"}}],[11,"new","","",30,{"inputs":[{"name":"eventpump"}],"output":{"name":"keyboardstate"}}],[11,"is_scancode_pressed","","Returns true if the scancode is pressed.",30,null],[11,"scancodes","","Returns an iterator all scancodes with a boolean indicating if the scancode is pressed.",30,null],[11,"pressed_scancodes","","Returns an iterator of pressed scancodes.",30,null],[11,"next","","",31,null],[11,"next","","",32,null],[11,"keyboard","sdl2","",33,null],[11,"text_input","","",6,null],[11,"focused_window_id","sdl2::keyboard","Gets the id of the window which currently has keyboard focus.",34,null],[11,"mod_state","","",34,null],[11,"set_mod_state","","",34,null],[11,"start","","",35,null],[11,"is_active","","",35,null],[11,"stop","","",35,null],[11,"set_rect","","",35,null],[11,"has_screen_keyboard_support","","",35,null],[11,"is_screen_keyboard_shown","","",35,null],[0,"mouse","sdl2","",null,null],[3,"Cursor","sdl2::mouse","",null,null],[3,"MouseState","","",null,null],[3,"MouseUtil","","Mouse utility functions. Access with `Sdl::mouse()`.",null,null],[4,"SystemCursor","","",null,null],[13,"Arrow","","",36,null],[13,"IBeam","","",36,null],[13,"Wait","","",36,null],[13,"Crosshair","","",36,null],[13,"WaitArrow","","",36,null],[13,"SizeNWSE","","",36,null],[13,"SizeNESW","","",36,null],[13,"SizeWE","","",36,null],[13,"SizeNS","","",36,null],[13,"SizeAll","","",36,null],[13,"No","","",36,null],[13,"Hand","","",36,null],[4,"Mouse","","",null,null],[13,"Left","","",37,null],[13,"Middle","","",37,null],[13,"Right","","",37,null],[13,"X1","","",37,null],[13,"X2","","",37,null],[13,"Unknown","","",37,null],[11,"fmt","","",36,null],[11,"hash","","",36,null],[11,"eq","","",36,null],[11,"clone","","",36,null],[11,"drop","","",38,null],[11,"new","","",38,null],[11,"from_surface","","",38,{"inputs":[{"name":"s"},{"name":"i32"},{"name":"i32"}],"output":{"name":"result"}}],[11,"from_system","","",38,{"inputs":[{"name":"systemcursor"}],"output":{"name":"result"}}],[11,"set","","",38,null],[11,"fmt","","",37,null],[11,"hash","","",37,null],[11,"eq","","",37,null],[11,"ne","","",37,null],[11,"clone","","",37,null],[11,"from_ll","","",37,{"inputs":[{"name":"u8"}],"output":{"name":"mouse"}}],[11,"hash","","",39,null],[11,"eq","","",39,null],[11,"ne","","",39,null],[11,"clone","","",39,null],[11,"button","","Tests if a mouse button was pressed.",39,null],[11,"left","","Tests if the left mouse button was pressed.",39,null],[11,"middle","","Tests if the middle mouse button was pressed.",39,null],[11,"right","","Tests if the right mouse button was pressed.",39,null],[11,"x1","","Tests if the X1 mouse button was pressed.",39,null],[11,"x2","","Tests if the X2 mouse button was pressed.",39,null],[11,"from_flags","","",39,{"inputs":[{"name":"u32"}],"output":{"name":"mousestate"}}],[11,"mouse","sdl2","",33,null],[11,"focused_window_id","sdl2::mouse","Gets the id of the window which currently has mouse focus.",40,null],[11,"mouse_state","","",40,null],[11,"relative_mouse_state","","",40,null],[11,"warp_mouse_in_window","","",40,null],[11,"set_relative_mouse_mode","","",40,null],[11,"relative_mouse_mode","","",40,null],[11,"is_cursor_showing","","",40,null],[11,"show_cursor","","",40,null],[0,"rect","sdl2","Rectangles and points.",null,null],[3,"Rect","sdl2::rect","A rectangle.",null,null],[3,"Point","","Immutable point type, consisting of x and y.",null,null],[5,"max_int_value","","The maximal integer value that can be used for rectangles.",null,{"inputs":[],"output":{"name":"u32"}}],[5,"min_int_value","","The minimal integer value that can be used for rectangle positions\nand points.",null,{"inputs":[],"output":{"name":"i32"}}],[11,"hash","","",41,null],[11,"eq","","",41,null],[11,"ne","","",41,null],[11,"clone","","",41,null],[11,"fmt","","",41,null],[11,"new","","Creates a new rectangle from the given values.",41,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"u32"},{"name":"u32"}],"output":{"name":"rect"}}],[11,"from_center","","Creates a new rectangle centered on the given position.",41,{"inputs":[{"name":"p"},{"name":"u32"},{"name":"u32"}],"output":{"name":"rect"}}],[11,"x","","The horizontal position of this rectangle.",41,null],[11,"y","","The vertical position of this rectangle.",41,null],[11,"width","","The width of this rectangle.",41,null],[11,"height","","The height of this rectangle.",41,null],[11,"set_x","","Sets the horizontal position of this rectangle to the given value,\nclamped to be less than or equal to i32::max_value() / 2.",41,null],[11,"set_y","","Sets the vertical position of this rectangle to the given value,\nclamped to be less than or equal to i32::max_value() / 2.",41,null],[11,"set_width","","Sets the width of this rectangle to the given value,\nclamped to be less than or equal to i32::max_value() / 2.",41,null],[11,"set_height","","Sets the height of this rectangle to the given value,\nclamped to be less than or equal to i32::max_value() / 2.",41,null],[11,"left","","Returns the x-position of the left side of this rectangle.",41,null],[11,"right","","Returns the x-position of the right side of this rectangle.",41,null],[11,"top","","Returns the y-position of the top side of this rectangle.",41,null],[11,"bottom","","Returns the y-position of the bottom side of this rectangle.",41,null],[11,"center","","Returns the center of this rectangle.",41,null],[11,"set_right","","Sets the position of the right side of this rectangle to the given\nvalue, clamped to be less than or equal to i32::max_value() / 2.",41,null],[11,"set_bottom","","Sets the position of the bottom side of this rectangle to the given\nvalue, clamped to be less than or equal to i32::max_value() / 2.",41,null],[11,"center_on","","Centers the rectangle on the given point.",41,null],[11,"offset","","Move this rect and clamp the positions to prevent over/underflow.\nThis also clamps the size to prevent overflow.",41,null],[11,"reposition","","Moves this rect to the given position after clamping the values.",41,null],[11,"resize","","Resizes this rect to the given size after clamping the values.",41,null],[11,"contains","","Checks whether this rect contains a given point.",41,null],[11,"raw","","Returns the underlying C Rect.",41,null],[11,"raw_mut","","",41,null],[11,"raw_slice","","",41,null],[11,"from_ll","","",41,{"inputs":[{"name":"sdl_rect"}],"output":{"name":"rect"}}],[11,"from_enclose_points","","Calculate a minimal rectangle enclosing a set of points.\nIf a clipping rectangle is given, only points that are within it will be\nconsidered.",41,null],[11,"has_intersection","","Determine whether two rectangles intersect.",41,null],[11,"intersection","","Calculate the intersection of two rectangles.\nThe bitwise AND operator `&` can also be used.",41,null],[11,"union","","Calculate the union of two rectangles.\nThe bitwise OR operator `|` can also be used.",41,null],[11,"intersect_line","","Calculates the intersection of a rectangle and a line segment and\nreturns the points of their intersection.",41,null],[11,"into","","",41,null],[11,"from","","",41,null],[11,"bitand","","",41,null],[11,"bitor","","",41,null],[11,"hash","","",42,null],[11,"fmt","","",42,null],[11,"eq","","",42,null],[11,"ne","","",42,null],[11,"clone","","",42,null],[11,"from","","",42,null],[11,"into","","",42,null],[11,"new","","",42,{"inputs":[{"name":"i32"},{"name":"i32"}],"output":{"name":"point"}}],[11,"from_ll","","",42,{"inputs":[{"name":"sdl_point"}],"output":{"name":"point"}}],[11,"raw_slice","","",42,null],[11,"raw","","",42,null],[11,"offset","","",42,null],[11,"x","","",42,null],[11,"y","","",42,null],[0,"surface","sdl2","",null,null],[3,"Surface","sdl2::surface","",null,null],[3,"SurfaceRef","","An unsized Surface reference.",null,null],[11,"drop","","",43,null],[11,"deref","","",43,null],[11,"deref_mut","","",43,null],[11,"as_ref","","",43,null],[11,"as_mut","","",43,null],[11,"from_ll","","",43,null],[11,"new","","Creates a new surface using a pixel format.",43,{"inputs":[{"name":"u32"},{"name":"u32"},{"name":"pixelformatenum"}],"output":{"name":"result"}}],[11,"from_pixelmasks","","Creates a new surface using pixel masks.",43,{"inputs":[{"name":"u32"},{"name":"u32"},{"name":"pixelmasks"}],"output":{"name":"result"}}],[11,"from_data","","Creates a new surface from an existing buffer, using a pixel format.",43,null],[11,"from_data_pixelmasks","","Creates a new surface from an existing buffer, using pixel masks.",43,null],[11,"load_bmp_rw","","",43,{"inputs":[{"name":"rwops"}],"output":{"name":"result"}}],[11,"load_bmp","","",43,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"from_ll","","",44,null],[11,"from_ll_mut","","",44,null],[11,"raw","","",44,null],[11,"width","","",44,null],[11,"height","","",44,null],[11,"pitch","","",44,null],[11,"size","","",44,null],[11,"rect","","",44,null],[11,"pixel_format","","",44,null],[11,"with_lock","","Locks a surface so that the pixels can be directly accessed safely.",44,null],[11,"with_lock_mut","","Locks a surface so that the pixels can be directly accessed safely.",44,null],[11,"without_lock","","Returns the Surface's pixel buffer if the Surface doesn't require locking\n(e.g. it's a software surface).",44,null],[11,"without_lock_mut","","Returns the Surface's pixel buffer if the Surface doesn't require locking\n(e.g. it's a software surface).",44,null],[11,"must_lock","","Returns true if the Surface needs to be locked before accessing the Surface pixels.",44,null],[11,"save_bmp_rw","","",44,null],[11,"save_bmp","","",44,null],[11,"set_palette","","",44,null],[11,"enable_RLE","","",44,null],[11,"disable_RLE","","",44,null],[11,"set_color_key","","",44,null],[11,"color_key","","The function will fail if the surface doesn't have color key enabled.",44,null],[11,"set_color_mod","","",44,null],[11,"color_mod","","",44,null],[11,"fill_rect","","",44,null],[11,"fill_rects","","",44,null],[11,"set_alpha_mod","","",44,null],[11,"alpha_mod","","",44,null],[11,"set_blend_mode","","The function will fail if the blend mode is not supported by SDL.",44,null],[11,"blend_mode","","",44,null],[11,"set_clip_rect","","Sets the clip rectangle for the surface.",44,null],[11,"clip_rect","","Gets the clip rectangle for the surface.",44,null],[11,"convert","","Copies the surface into a new one that is optimized for blitting to a surface of a specified pixel format.",44,null],[11,"blit","","Performs surface blitting (surface copying).",44,null],[11,"lower_blit","","Performs low-level surface blitting.",44,null],[11,"blit_scaled","","Performs scaled surface bliting (surface copying).",44,null],[11,"lower_blit_scaled","","Performs low-level scaled surface blitting.",44,null],[0,"pixels","sdl2","",null,null],[3,"Palette","sdl2::pixels","",null,null],[3,"PixelMasks","","",null,null],[12,"bpp","","Bits per pixel; usually 15, 16, or 32",45,null],[12,"rmask","","The red mask",45,null],[12,"gmask","","The green mask",45,null],[12,"bmask","","The blue mask",45,null],[12,"amask","","The alpha mask",45,null],[3,"PixelFormat","","",null,null],[4,"Color","","",null,null],[13,"RGB","","",46,null],[13,"RGBA","","",46,null],[4,"PixelFormatEnum","","",null,null],[13,"Unknown","","",47,null],[13,"Index1LSB","","",47,null],[13,"Index1MSB","","",47,null],[13,"Index4LSB","","",47,null],[13,"Index4MSB","","",47,null],[13,"Index8","","",47,null],[13,"RGB332","","",47,null],[13,"RGB444","","",47,null],[13,"RGB555","","",47,null],[13,"BGR555","","",47,null],[13,"ARGB4444","","",47,null],[13,"RGBA4444","","",47,null],[13,"ABGR4444","","",47,null],[13,"BGRA4444","","",47,null],[13,"ARGB1555","","",47,null],[13,"RGBA5551","","",47,null],[13,"ABGR1555","","",47,null],[13,"BGRA5551","","",47,null],[13,"RGB565","","",47,null],[13,"BGR565","","",47,null],[13,"RGB24","","",47,null],[13,"BGR24","","",47,null],[13,"RGB888","","",47,null],[13,"RGBX8888","","",47,null],[13,"BGR888","","",47,null],[13,"BGRX8888","","",47,null],[13,"ARGB8888","","",47,null],[13,"RGBA8888","","",47,null],[13,"ABGR8888","","",47,null],[13,"BGRA8888","","",47,null],[13,"ARGB2101010","","",47,null],[13,"YV12","","",47,null],[13,"IYUV","","",47,null],[13,"YUY2","","",47,null],[13,"UYVY","","",47,null],[13,"YVYU","","",47,null],[11,"raw","","",48,null],[11,"fmt","","",46,null],[11,"hash","","",46,null],[11,"eq","","",46,null],[11,"ne","","",46,null],[11,"clone","","",46,null],[11,"to_u32","","",46,null],[11,"from_u32","","",46,{"inputs":[{"name":"pixelformat"},{"name":"u32"}],"output":{"name":"color"}}],[11,"rgb","","",46,null],[11,"rand","","",46,{"inputs":[{"name":"r"}],"output":{"name":"color"}}],[11,"raw","","",49,null],[11,"from_ll","","",49,null],[11,"fmt","","",47,null],[11,"hash","","",47,null],[11,"eq","","",47,null],[11,"clone","","",47,null],[11,"from_masks","","",47,{"inputs":[{"name":"pixelmasks"}],"output":{"name":"pixelformatenum"}}],[11,"into_masks","","",47,null],[11,"byte_size_from_pitch_and_height","","Calculates the total byte size of an image buffer, given its pitch\nand height.",47,null],[11,"byte_size_of_pixels","","",47,null],[11,"byte_size_per_pixel","","",47,null],[11,"from_i64","","",47,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",47,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[0,"video","sdl2","",null,null],[3,"DisplayMode","sdl2::video","",null,null],[12,"format","","",50,null],[12,"w","","",50,null],[12,"h","","",50,null],[12,"refresh_rate","","",50,null],[3,"GLContext","","",null,null],[3,"Window","","",null,null],[3,"WindowRef","","An unsized Window reference.",null,null],[3,"WindowBuilder","","The type that allows you to build windows.",null,null],[3,"DriverIterator","","",null,null],[4,"GLProfile","","",null,null],[13,"Core","","OpenGL core profile - deprecated functions are disabled",51,null],[13,"Compatibility","","OpenGL compatibility profile - deprecated functions are allowed",51,null],[13,"GLES","","OpenGL ES profile - only a subset of the base OpenGL functionality is available",51,null],[4,"FullscreenType","","",null,null],[13,"Off","","",52,null],[13,"True","","",52,null],[13,"Desktop","","",52,null],[4,"WindowPos","","",null,null],[13,"Undefined","","",53,null],[13,"Centered","","",53,null],[13,"Positioned","","",53,null],[4,"WindowBuildError","","",null,null],[13,"HeightOverflows","","",54,null],[13,"WidthOverflows","","",54,null],[13,"InvalidTitle","","",54,null],[13,"SdlError","","",54,null],[5,"drivers","","Gets an iterator of all video drivers compiled into the SDL2 library.",null,{"inputs":[],"output":{"name":"driveriterator"}}],[0,"gl_attr","","OpenGL context getters and setters",null,null],[3,"GLAttr","sdl2::video::gl_attr","OpenGL context getters and setters. Obtain with `VideoSubsystem::gl_attr()`.",null,null],[3,"ContextFlagsBuilder","","The type that allows you to build a OpenGL context configuration.",null,null],[3,"ContextFlags","","",null,null],[11,"gl_attr","sdl2","Obtains access to the OpenGL window attributes.",6,null],[11,"set_red_size","sdl2::video::gl_attr","**Sets** the attribute:\nthe minimum number of bits for the red channel of the color buffer; defaults to 3",55,null],[11,"red_size","","**Gets** the attribute:\nthe minimum number of bits for the red channel of the color buffer; defaults to 3",55,null],[11,"set_green_size","","**Sets** the attribute:\nthe minimum number of bits for the green channel of the color buffer; defaults to 3",55,null],[11,"green_size","","**Gets** the attribute:\nthe minimum number of bits for the green channel of the color buffer; defaults to 3",55,null],[11,"set_blue_size","","**Sets** the attribute:\nthe minimum number of bits for the blue channel of the color buffer; defaults to 2",55,null],[11,"blue_size","","**Gets** the attribute:\nthe minimum number of bits for the blue channel of the color buffer; defaults to 2",55,null],[11,"set_alpha_size","","**Sets** the attribute:\nthe minimum number of bits for the alpha channel of the color buffer; defaults to 0",55,null],[11,"alpha_size","","**Gets** the attribute:\nthe minimum number of bits for the alpha channel of the color buffer; defaults to 0",55,null],[11,"set_buffer_size","","**Sets** the attribute:\nthe minimum number of bits for frame buffer size; defaults to 0",55,null],[11,"buffer_size","","**Gets** the attribute:\nthe minimum number of bits for frame buffer size; defaults to 0",55,null],[11,"set_double_buffer","","**Sets** the attribute:\nwhether the output is single or double buffered; defaults to double buffering on",55,null],[11,"double_buffer","","**Gets** the attribute:\nwhether the output is single or double buffered; defaults to double buffering on",55,null],[11,"set_depth_size","","**Sets** the attribute:\nthe minimum number of bits in the depth buffer; defaults to 16",55,null],[11,"depth_size","","**Gets** the attribute:\nthe minimum number of bits in the depth buffer; defaults to 16",55,null],[11,"set_stencil_size","","**Sets** the attribute:\nthe minimum number of bits in the stencil buffer; defaults to 0",55,null],[11,"stencil_size","","**Gets** the attribute:\nthe minimum number of bits in the stencil buffer; defaults to 0",55,null],[11,"set_accum_red_size","","**Sets** the attribute:\nthe minimum number of bits for the red channel of the accumulation buffer; defaults to 0",55,null],[11,"accum_red_size","","**Gets** the attribute:\nthe minimum number of bits for the red channel of the accumulation buffer; defaults to 0",55,null],[11,"set_accum_green_size","","**Sets** the attribute:\nthe minimum number of bits for the green channel of the accumulation buffer; defaults to 0",55,null],[11,"accum_green_size","","**Gets** the attribute:\nthe minimum number of bits for the green channel of the accumulation buffer; defaults to 0",55,null],[11,"set_accum_blue_size","","**Sets** the attribute:\nthe minimum number of bits for the blue channel of the accumulation buffer; defaults to 0",55,null],[11,"accum_blue_size","","**Gets** the attribute:\nthe minimum number of bits for the blue channel of the accumulation buffer; defaults to 0",55,null],[11,"set_accum_alpha_size","","**Sets** the attribute:\nthe minimum number of bits for the alpha channel of the accumulation buffer; defaults to 0",55,null],[11,"accum_alpha_size","","**Gets** the attribute:\nthe minimum number of bits for the alpha channel of the accumulation buffer; defaults to 0",55,null],[11,"set_stereo","","**Sets** the attribute:\nwhether the output is stereo 3D; defaults to off",55,null],[11,"stereo","","**Gets** the attribute:\nwhether the output is stereo 3D; defaults to off",55,null],[11,"set_multisample_buffers","","**Sets** the attribute:\nthe number of buffers used for multisample anti-aliasing; defaults to 0",55,null],[11,"multisample_buffers","","**Gets** the attribute:\nthe number of buffers used for multisample anti-aliasing; defaults to 0",55,null],[11,"set_multisample_samples","","**Sets** the attribute:\nthe number of samples used around the current pixel used for multisample anti-aliasing; defaults to 0",55,null],[11,"multisample_samples","","**Gets** the attribute:\nthe number of samples used around the current pixel used for multisample anti-aliasing; defaults to 0",55,null],[11,"set_accelerated_visual","","**Sets** the attribute:\nwhether to require hardware acceleration; false to force software rendering; defaults to allow either",55,null],[11,"accelerated_visual","","**Gets** the attribute:\nwhether to require hardware acceleration; false to force software rendering; defaults to allow either",55,null],[11,"set_context_major_version","","**Sets** the attribute:\nOpenGL context major version",55,null],[11,"context_major_version","","**Gets** the attribute:\nOpenGL context major version",55,null],[11,"set_context_minor_version","","**Sets** the attribute:\nOpenGL context minor version",55,null],[11,"context_minor_version","","**Gets** the attribute:\nOpenGL context minor version",55,null],[11,"set_context_profile","","**Sets** the attribute:\ntype of GL context (Core, Compatibility, ES)",55,null],[11,"context_profile","","**Gets** the attribute:\ntype of GL context (Core, Compatibility, ES)",55,null],[11,"set_share_with_current_context","","**Sets** the attribute:\nOpenGL context sharing; defaults to false",55,null],[11,"share_with_current_context","","**Gets** the attribute:\nOpenGL context sharing; defaults to false",55,null],[11,"set_framebuffer_srgb_compatible","","**Sets** the attribute:\nrequests sRGB capable visual; defaults to false (>= SDL 2.0.1)",55,null],[11,"framebuffer_srgb_compatible","","**Gets** the attribute:\nrequests sRGB capable visual; defaults to false (>= SDL 2.0.1)",55,null],[11,"set_context_version","","**Sets** the OpenGL context major and minor versions.",55,null],[11,"context_version","","**Gets** the OpenGL context major and minor versions as a tuple.",55,null],[11,"set","","Finishes the builder and applies the GL context flags to the GL context.",56,null],[11,"debug","","Sets the context into "debug" mode.",56,null],[11,"forward_compatible","","Sets the context into "forward compatible" mode.",56,null],[11,"robust_access","","",56,null],[11,"reset_isolation","","",56,null],[11,"has_debug","","",57,null],[11,"has_forward_compatible","","",57,null],[11,"has_robust_access","","",57,null],[11,"has_reset_isolation","","",57,null],[11,"set_context_flags","","**Sets** any combination of OpenGL context configuration flags.",55,null],[11,"context_flags","","**Gets** the applied OpenGL context configuration flags.",55,null],[11,"fmt","sdl2::video","",51,null],[11,"hash","","",51,null],[11,"eq","","",51,null],[11,"clone","","",51,null],[11,"fmt","","",50,null],[11,"hash","","",50,null],[11,"eq","","",50,null],[11,"ne","","",50,null],[11,"clone","","",50,null],[11,"new","","",50,{"inputs":[{"name":"u32"},{"name":"i32"},{"name":"i32"},{"name":"i32"}],"output":{"name":"displaymode"}}],[11,"from_ll","","",50,{"inputs":[{"name":"sdl_displaymode"}],"output":{"name":"displaymode"}}],[11,"to_ll","","",50,null],[11,"fmt","","",52,null],[11,"hash","","",52,null],[11,"eq","","",52,null],[11,"clone","","",52,null],[11,"fmt","","",53,null],[11,"hash","","",53,null],[11,"eq","","",53,null],[11,"ne","","",53,null],[11,"clone","","",53,null],[11,"drop","","",58,null],[11,"is_current","","Returns true if the OpenGL context is the current one in the thread.",58,null],[11,"raw","","",58,null],[11,"window","sdl2","Initializes a new `WindowBuilder`; a convenience method that calls `WindowBuilder::new()`.",6,null],[11,"current_video_driver","","",6,null],[11,"num_video_displays","","",6,null],[11,"display_name","","",6,null],[11,"display_bounds","","",6,null],[11,"num_display_modes","","",6,null],[11,"display_mode","","",6,null],[11,"desktop_display_mode","","",6,null],[11,"current_display_mode","","",6,null],[11,"closest_display_mode","","",6,null],[11,"is_screen_saver_enabled","","",6,null],[11,"enable_screen_saver","","",6,null],[11,"disable_screen_saver","","",6,null],[11,"gl_load_library_default","","Loads the default OpenGL library.",6,null],[11,"gl_load_library","","Loads the OpenGL library using a platform-dependent OpenGL library name (usually a file path).",6,null],[11,"gl_unload_library","","Unloads the current OpenGL library.",6,null],[11,"gl_get_proc_address","","Gets the pointer to the named OpenGL function.",6,null],[11,"gl_extension_supported","","",6,null],[11,"gl_get_current_window_id","","",6,null],[11,"gl_release_current_context","","Releases the thread's current OpenGL context, i.e. sets the current OpenGL context to nothing.",6,null],[11,"gl_set_swap_interval","","",6,null],[11,"gl_get_swap_interval","","",6,null],[11,"drop","sdl2::video","",59,null],[11,"fmt","","",54,null],[11,"fmt","","",54,null],[11,"description","","",54,null],[11,"fmt","","",60,null],[11,"new","","Initializes a new `WindowBuilder`.",60,{"inputs":[{"name":"videosubsystem"},{"name":"str"},{"name":"u32"},{"name":"u32"}],"output":{"name":"windowbuilder"}}],[11,"build","","Builds the window.",60,null],[11,"window_flags","","Gets the underlying window flags.",60,null],[11,"set_window_flags","","Sets the underlying window flags.\nThis will effectively undo any previous build operations, excluding window size and position.",60,null],[11,"position","","Sets the window position.",60,null],[11,"position_centered","","Centers the window.",60,null],[11,"fullscreen","","Sets the window to fullscreen.",60,null],[11,"fullscreen_desktop","","Sets the window to fullscreen at the current desktop resolution.",60,null],[11,"opengl","","Sets the window to be usable with an OpenGL context",60,null],[11,"hidden","","Hides the window.",60,null],[11,"borderless","","Removes the window decoration.",60,null],[11,"resizable","","Sets the window to be resizable.",60,null],[11,"minimized","","Minimizes the window.",60,null],[11,"maximized","","Maximizes the window.",60,null],[11,"input_grabbed","","Sets the window to have grabbed input focus.",60,null],[11,"allow_highdpi","","Creates the window in high-DPI mode if supported (>= SDL 2.0.1)",60,null],[11,"raw","","",59,null],[11,"from_ll","","",59,null],[11,"subsystem","","",59,null],[11,"renderer","","Initializes a new `RendererBuilder`; a convenience method that calls `RendererBuilder::new()`.",59,null],[11,"deref","","",59,null],[11,"deref_mut","","",59,null],[11,"raw","","",61,null],[11,"from_ll","","",61,null],[11,"from_ll_mut","","",61,null],[11,"id","","",61,null],[11,"gl_create_context","","",61,null],[11,"gl_set_context_to_current","","Set the window's OpenGL context to the current context on the thread.",61,null],[11,"gl_make_current","","",61,null],[11,"gl_swap_window","","",61,null],[11,"display_index","","",61,null],[11,"set_display_mode","","",61,null],[11,"display_mode","","",61,null],[11,"window_pixel_format","","",61,null],[11,"window_flags","","",61,null],[11,"set_title","","",61,null],[11,"title","","",61,null],[11,"set_icon","","",61,null],[11,"set_position","","",61,null],[11,"position","","",61,null],[11,"set_size","","",61,null],[11,"size","","",61,null],[11,"drawable_size","","",61,null],[11,"set_minimum_size","","",61,null],[11,"minimum_size","","",61,null],[11,"set_maximum_size","","",61,null],[11,"maximum_size","","",61,null],[11,"set_bordered","","",61,null],[11,"show","","",61,null],[11,"hide","","",61,null],[11,"raise","","",61,null],[11,"maximize","","",61,null],[11,"minimize","","",61,null],[11,"restore","","",61,null],[11,"set_fullscreen","","",61,null],[11,"surface","","",61,null],[11,"surface_mut","","",61,null],[11,"update_surface","","",61,null],[11,"update_surface_rects","","",61,null],[11,"set_grab","","",61,null],[11,"grab","","",61,null],[11,"set_brightness","","",61,null],[11,"brightness","","",61,null],[11,"set_gamma_ramp","","",61,null],[11,"gamma_ramp","","",61,null],[11,"clone","","",62,null],[11,"next","","",62,null],[11,"size_hint","","",62,null],[0,"timer","sdl2","",null,null],[3,"Timer","sdl2::timer","",null,null],[6,"TimerCallback","","",null,null],[11,"add_timer","sdl2","Constructs a new timer using the boxed closure `callback`.",63,null],[11,"ticks","","Gets the number of milliseconds elapsed since the timer subsystem was initialized.",63,null],[11,"delay","","Sleeps the current thread for the specified amount of milliseconds.",63,null],[11,"performance_counter","","",63,null],[11,"performance_frequency","","",63,null],[11,"into_inner","sdl2::timer","Returns the closure as a trait-object and cancels the timer\nby consuming it...",64,null],[11,"drop","","",64,null],[0,"render","sdl2","2D accelerated rendering",null,null],[3,"RendererInfo","sdl2::render","A structure that contains information on the capabilities of a render driver\nor the current render context.",null,null],[12,"name","","",65,null],[12,"flags","","",65,null],[12,"texture_formats","","",65,null],[12,"max_texture_width","","",65,null],[12,"max_texture_height","","",65,null],[3,"Renderer","","2D rendering context",null,null],[3,"RendererBuilder","","The type that allows you to build Window-based renderers.",null,null],[3,"RenderTarget","","A handle for getting/setting the render target of the render context.",null,null],[3,"TextureQuery","","",null,null],[12,"format","","",66,null],[12,"access","","",66,null],[12,"width","","",66,null],[12,"height","","",66,null],[3,"Texture","","A texture for a rendering context.",null,null],[3,"DriverIterator","","",null,null],[4,"TextureAccess","","",null,null],[13,"Static","","",67,null],[13,"Streaming","","",67,null],[13,"Target","","",67,null],[4,"BlendMode","","",null,null],[13,"None","","",68,null],[13,"Blend","","",68,null],[13,"Add","","",68,null],[13,"Mod","","",68,null],[4,"RendererParent","","",null,null],[13,"Surface","","",69,null],[13,"Window","","",69,null],[4,"TextureValueError","","",null,null],[13,"WidthOverflows","","",70,null],[13,"HeightOverflows","","",70,null],[13,"WidthMustBeMultipleOfTwoForFormat","","",70,null],[13,"SdlError","","",70,null],[4,"UpdateTextureError","","",null,null],[13,"PitchOverflows","","",71,null],[13,"PitchMustBeMultipleOfTwoForFormat","","",71,null],[13,"XMustBeMultipleOfTwoForFormat","","",71,null],[13,"YMustBeMultipleOfTwoForFormat","","",71,null],[13,"WidthMustBeMultipleOfTwoForFormat","","",71,null],[13,"HeightMustBeMultipleOfTwoForFormat","","",71,null],[13,"SdlError","","",71,null],[4,"UpdateTextureYUVError","","",null,null],[13,"PitchOverflows","","",72,null],[12,"plane","sdl2::render::UpdateTextureYUVError","",72,null],[12,"value","","",72,null],[13,"InvalidPlaneLength","sdl2::render","",72,null],[12,"plane","sdl2::render::UpdateTextureYUVError","",72,null],[12,"length","","",72,null],[12,"pitch","","",72,null],[12,"height","","",72,null],[13,"XMustBeMultipleOfTwoForFormat","sdl2::render","",72,null],[13,"YMustBeMultipleOfTwoForFormat","","",72,null],[13,"WidthMustBeMultipleOfTwoForFormat","","",72,null],[13,"HeightMustBeMultipleOfTwoForFormat","","",72,null],[13,"RectNotInsideTexture","","",72,null],[13,"SdlError","","",72,null],[5,"drivers","","Gets an iterator of all render drivers compiled into the SDL2 library.",null,{"inputs":[],"output":{"name":"driveriterator"}}],[11,"fmt","","",67,null],[11,"hash","","",67,null],[11,"eq","","",67,null],[11,"clone","","",67,null],[11,"from_i64","","",67,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",67,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"fmt","","",65,null],[11,"hash","","",65,null],[11,"eq","","",65,null],[11,"ne","","",65,null],[11,"clone","","",65,null],[11,"fmt","","",68,null],[11,"hash","","",68,null],[11,"eq","","",68,null],[11,"clone","","",68,null],[11,"from_i64","","",68,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",68,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"from_ll","","",65,{"inputs":[{"name":"sdl_rendererinfo"}],"output":{"name":"rendererinfo"}}],[11,"drop","","",73,null],[11,"new","","Initializes a new `RendererBuilder`.",74,{"inputs":[{"name":"window"}],"output":{"name":"rendererbuilder"}}],[11,"build","","Builds the renderer.",74,null],[11,"index","","Sets the index of the rendering driver to initialize.",74,null],[11,"software","","Set the renderer to a software fallback.",74,null],[11,"accelerated","","Set the renderer to use hardware acceleration.",74,null],[11,"present_vsync","","Synchronize renderer present with the refresh rate.",74,null],[11,"target_texture","","Set the renderer to support rendering to a texture.",74,null],[11,"from_surface","","Creates a 2D software rendering context for a surface.",73,{"inputs":[{"name":"surface"}],"output":{"name":"result"}}],[11,"info","","Gets information about the rendering context.",73,null],[11,"window","","Gets the associated window reference of the Renderer, if there is one.",73,null],[11,"window_mut","","Gets the associated window reference of the Renderer, if there is one.",73,null],[11,"surface","","Gets the associated surface reference of the Renderer, if there is one.",73,null],[11,"surface_mut","","Gets the associated surface reference of the Renderer, if there is one.",73,null],[11,"into_window","","",73,null],[11,"into_surface","","",73,null],[11,"raw","","Unwraps the window or surface the rendering context was created from.",73,null],[11,"from_ll","","",73,null],[11,"fmt","","",70,null],[11,"create_texture","","Creates a texture for a rendering context.",73,null],[11,"create_texture_static","","Shorthand for `create_texture(format, TextureAccess::Static, size)`",73,null],[11,"create_texture_streaming","","Shorthand for `create_texture(format, TextureAccess::Streaming, size)`",73,null],[11,"create_texture_target","","Shorthand for `create_texture(format, TextureAccess::Target, size)`",73,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`.",73,null],[11,"render_target_supported","","Determine whether a window supports the use of render targets.",73,null],[11,"render_target","","Gets the render target handle.",73,null],[11,"set_draw_color","","Sets the color used for drawing operations (Rect, Line and Clear).",73,null],[11,"draw_color","","Gets the color used for drawing operations (Rect, Line and Clear).",73,null],[11,"set_blend_mode","","Sets the blend mode used for drawing operations (Fill and Line).",73,null],[11,"blend_mode","","Gets the blend mode used for drawing operations.",73,null],[11,"clear","","Clears the current rendering target with the drawing color.",73,null],[11,"present","","Updates the screen with any rendering performed since the previous call.",73,null],[11,"output_size","","Gets the output size of a rendering context.",73,null],[11,"set_logical_size","","Sets a device independent resolution for rendering.",73,null],[11,"logical_size","","Gets device independent resolution for rendering.",73,null],[11,"set_viewport","","Sets the drawing area for rendering on the current target.",73,null],[11,"viewport","","Gets the drawing area for the current target.",73,null],[11,"set_clip_rect","","Sets the clip rectangle for rendering on the specified target.",73,null],[11,"clip_rect","","Gets the clip rectangle for the current target.",73,null],[11,"set_scale","","Sets the drawing scale for rendering on the current target.",73,null],[11,"scale","","Gets the drawing scale for the current target.",73,null],[11,"draw_point","","Draws a point on the current rendering target.\nErrors if drawing fails for any reason (e.g. driver failure)",73,null],[11,"draw_points","","Draws multiple points on the current rendering target.\nErrors if drawing fails for any reason (e.g. driver failure)",73,null],[11,"draw_line","","Draws a line on the current rendering target.\nErrors if drawing fails for any reason (e.g. driver failure)",73,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)",73,null],[11,"draw_rect","","Draws a rectangle on the current rendering target.\nErrors if drawing fails for any reason (e.g. driver failure)",73,null],[11,"draw_rects","","Draws some number of rectangles on the current rendering target.\nErrors if drawing fails for any reason (e.g. driver failure)",73,null],[11,"fill_rect","","Fills a rectangle on the current rendering target with the drawing\ncolor.\nErrors if drawing fails for any reason (e.g. driver failure)",73,null],[11,"fill_rects","","Fills some number of rectangles on the current rendering target with\nthe drawing color.\nErrors if drawing fails for any reason (e.g. driver failure)",73,null],[11,"copy","","Copies a portion of the texture to the current rendering target.",73,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.",73,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.",73,null],[11,"reset","","Resets the render target to the default render target.",75,null],[11,"set","","Sets the render target to the provided texture.\nThe texture must be created with the texture access: `sdl2::render::TextureAccess::Target`.",75,null],[11,"create_and_set","","Creates a new texture and sets it as the render target.",75,null],[11,"fmt","","",66,null],[11,"hash","","",66,null],[11,"eq","","",66,null],[11,"ne","","",66,null],[11,"clone","","",66,null],[11,"drop","","",76,null],[11,"fmt","","",71,null],[11,"fmt","","",72,null],[11,"query","","Queries the attributes of the texture.",76,null],[11,"set_color_mod","","Sets an additional color value multiplied into render copy operations.",76,null],[11,"color_mod","","Gets the additional color value multiplied into render copy operations.",76,null],[11,"set_alpha_mod","","Sets an additional alpha value multiplied into render copy operations.",76,null],[11,"alpha_mod","","Gets the additional alpha value multiplied into render copy operations.",76,null],[11,"set_blend_mode","","Sets the blend mode for a texture, used by `Renderer::copy()`.",76,null],[11,"blend_mode","","Gets the blend mode used for texture copy operations.",76,null],[11,"update","","Updates the given texture rectangle with new pixel data.",76,null],[11,"update_yuv","","Updates a rectangle within a planar YV12 or IYUV texture with new pixel data.",76,null],[11,"with_lock","","Locks the texture for **write-only** pixel access.\nThe texture must have been created with streaming access.",76,null],[11,"gl_bind_texture","","Binds an OpenGL/ES/ES2 texture to the current\ncontext for use with when rendering OpenGL primitives directly.",76,null],[11,"gl_unbind_texture","","Unbinds an OpenGL/ES/ES2 texture from the current context.",76,null],[11,"gl_with_bind","","Binds and unbinds an OpenGL/ES/ES2 texture from the current context.",76,null],[11,"from_ll","","",76,null],[11,"raw","","",76,null],[11,"clone","","",77,null],[11,"next","","",77,null],[11,"size_hint","","",77,null],[0,"rwops","sdl2","",null,null],[3,"RWops","sdl2::rwops","A structure that provides an abstract interface to stream I/O.",null,null],[11,"raw","","",78,null],[11,"from_ll","","",78,null],[11,"from_file","","Creates an SDL file stream.",78,{"inputs":[{"name":"p"},{"name":"str"}],"output":{"name":"result"}}],[11,"from_bytes","","Prepares a read-only memory buffer for use with `RWops`.",78,null],[11,"from_bytes_mut","","Prepares a read-write memory buffer for use with `RWops`.",78,null],[11,"len","","Gets the stream's total size in bytes.",78,null],[11,"drop","","",78,null],[11,"read","","",78,null],[11,"write","","",78,null],[11,"flush","","",78,null],[11,"seek","","",78,null],[11,"fmt","sdl2","",4,null],[11,"hash","","",4,null],[11,"eq","","",4,null],[11,"clone","","",4,null],[11,"clone","","",33,null],[11,"audio","","Initializes the audio subsystem.",33,null],[11,"event","","Initializes the event subsystem.",33,null],[11,"joystick","","Initializes the joystick subsystem.",33,null],[11,"haptic","","Initializes the haptic subsystem.",33,null],[11,"game_controller","","Initializes the game controller subsystem.",33,null],[11,"timer","","Initializes the timer subsystem.",33,null],[11,"video","","Initializes the video subsystem.",33,null],[11,"event_pump","","Obtains the SDL event pump.",33,null],[11,"clone","","",79,null],[11,"fmt","","",79,null],[11,"sdl","","Obtain an SDL context.",79,null],[11,"clone","","",25,null],[11,"fmt","","",25,null],[11,"sdl","","Obtain an SDL context.",25,null],[11,"clone","","",80,null],[11,"fmt","","",80,null],[11,"sdl","","Obtain an SDL context.",80,null],[11,"clone","","",18,null],[11,"fmt","","",18,null],[11,"sdl","","Obtain an SDL context.",18,null],[11,"clone","","",6,null],[11,"fmt","","",6,null],[11,"sdl","","Obtain an SDL context.",6,null],[11,"clone","","",63,null],[11,"sdl","","Obtain an SDL context.",63,null],[11,"clone","","",11,null],[11,"sdl","","Obtain an SDL context.",11,null],[11,"drop","","",12,null],[0,"audio","","Audio Functions",null,null],[3,"DriverIterator","sdl2::audio","",null,null],[3,"AudioSpecWAV","","",null,null],[12,"freq","","",81,null],[12,"format","","",81,null],[12,"channels","","",81,null],[3,"AudioSpecDesired","","",null,null],[12,"freq","","DSP frequency (samples per second). Set to None for the device's fallback frequency.",82,null],[12,"channels","","Number of separate audio channels. Set to None for the device's fallback number of channels.",82,null],[12,"samples","","Audio buffer size in samples (power of 2). Set to None for the device's fallback sample size.",82,null],[3,"AudioSpec","","",null,null],[12,"freq","","",83,null],[12,"format","","",83,null],[12,"channels","","",83,null],[12,"silence","","",83,null],[12,"samples","","",83,null],[12,"size","","",83,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,"AudioFormat","","",null,null],[13,"U8","","Unsigned 8-bit samples",84,null],[13,"S8","","Signed 8-bit samples",84,null],[13,"U16LSB","","Unsigned 16-bit samples, little-endian",84,null],[13,"U16MSB","","Unsigned 16-bit samples, big-endian",84,null],[13,"S16LSB","","Signed 16-bit samples, little-endian",84,null],[13,"S16MSB","","Signed 16-bit samples, big-endian",84,null],[13,"S32LSB","","Signed 32-bit samples, little-endian",84,null],[13,"S32MSB","","Signed 32-bit samples, big-endian",84,null],[13,"F32LSB","","32-bit floating point samples, little-endian",84,null],[13,"F32MSB","","32-bit floating point samples, big-endian",84,null],[4,"AudioStatus","","",null,null],[13,"Stopped","","",85,null],[13,"Playing","","",85,null],[13,"Paused","","",85,null],[5,"drivers","","Gets an iterator of all audio drivers compiled into the SDL2 library.",null,{"inputs":[],"output":{"name":"driveriterator"}}],[8,"AudioCallback","","",null,null],[16,"Channel","","",86,null],[10,"callback","","",86,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,"audio_format","","",87,{"inputs":[],"output":{"name":"audioformat"}}],[10,"zero","","",87,{"inputs":[],"output":{"name":"self"}}],[11,"open_playback","sdl2","Opens a new audio device given the desired parameters and callback.",79,null],[11,"current_audio_driver","","",79,null],[11,"num_audio_playback_devices","","",79,null],[11,"audio_playback_device_name","","",79,null],[11,"hash","sdl2::audio","",84,null],[11,"fmt","","",84,null],[11,"eq","","",84,null],[11,"clone","","",84,null],[11,"u16_sys","","Unsigned 16-bit samples, native endian",84,{"inputs":[],"output":{"name":"audioformat"}}],[11,"s16_sys","","Signed 16-bit samples, native endian",84,{"inputs":[],"output":{"name":"audioformat"}}],[11,"s32_sys","","Signed 32-bit samples, native endian",84,{"inputs":[],"output":{"name":"audioformat"}}],[11,"f32_sys","","32-bit floating point samples, native endian",84,{"inputs":[],"output":{"name":"audioformat"}}],[11,"fmt","","",85,null],[11,"hash","","",85,null],[11,"eq","","",85,null],[11,"clone","","",85,null],[11,"from_i64","","",85,{"inputs":[{"name":"i64"}],"output":{"name":"option"}}],[11,"from_u64","","",85,{"inputs":[{"name":"u64"}],"output":{"name":"option"}}],[11,"clone","","",88,null],[11,"next","","",88,null],[11,"size_hint","","",88,null],[11,"load_wav","","Loads a WAVE from the file path.",81,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"load_wav_rw","","Loads a WAVE from the data source.",81,{"inputs":[{"name":"rwops"}],"output":{"name":"result"}}],[11,"buffer","","",81,null],[11,"drop","","",81,null],[11,"clone","","",82,null],[11,"fmt","","",83,null],[11,"hash","","",83,null],[11,"eq","","",83,null],[11,"ne","","",83,null],[11,"clone","","",83,null],[11,"open_playback","","Opens a new audio device given the desired parameters and callback.",89,{"inputs":[{"name":"audiosubsystem"},{"name":"option"},{"name":"audiospecdesired"},{"name":"f"}],"output":{"name":"result"}}],[11,"subsystem","","",89,null],[11,"status","","",89,null],[11,"pause","","Pauses playback of the audio device.",89,null],[11,"resume","","Starts playback of the audio device.",89,null],[11,"lock","","Locks the audio device using `SDL_LockAudioDevice`.",89,null],[11,"close_and_get_callback","","Closes the audio device and saves the callback data from being dropped.",89,null],[11,"deref","","",90,null],[11,"deref_mut","","",90,null],[11,"drop","","",90,null],[11,"clone","","",91,null],[11,"new","","",91,{"inputs":[{"name":"audioformat"},{"name":"u8"},{"name":"i32"},{"name":"audioformat"},{"name":"u8"},{"name":"i32"}],"output":{"name":"result"}}],[11,"convert","","Convert audio data to a desired audio format.",91,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.",91,null],[11,"capacity","","Gets the buffer capacity that can contain both the original and\nconverted data.",91,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",92,null],[12,"minor","","minor version",92,null],[12,"patch","","update version (patchlevel)",92,null],[5,"version","","Get the version of SDL that is linked against your program.",null,{"inputs":[],"output":{"name":"version"}}],[5,"revision","","Get the code revision of SDL that is linked against your program.",null,{"inputs":[],"output":{"name":"string"}}],[5,"revision_number","","Get the revision number of SDL that is linked against your program.",null,{"inputs":[],"output":{"name":"i32"}}],[11,"fmt","","",92,null],[11,"hash","","",92,null],[11,"eq","","",92,null],[11,"ne","","",92,null],[11,"clone","","",92,null],[11,"from_ll","","Convert a raw *SDL_version to Version.",92,{"inputs":[{"name":"sdl_version"}],"output":{"name":"version"}}],[11,"fmt","","",92,null],[0,"messagebox","sdl2","",null,null],[3,"MessageBoxFlag","sdl2::messagebox","",null,null],[4,"ShowMessageError","","",null,null],[13,"InvalidTitle","","",93,null],[13,"InvalidMessage","","",93,null],[13,"SdlError","","",93,null],[5,"show_simple_message_box","","",null,{"inputs":[{"name":"messageboxflag"},{"name":"str"},{"name":"str"},{"name":"option"}],"output":{"name":"result"}}],[17,"MESSAGEBOX_ERROR","","",null,null],[17,"MESSAGEBOX_WARNING","","",null,null],[17,"MESSAGEBOX_INFORMATION","","",null,null],[11,"hash","","",94,null],[11,"cmp","","",94,null],[11,"partial_cmp","","",94,null],[11,"lt","","",94,null],[11,"le","","",94,null],[11,"gt","","",94,null],[11,"ge","","",94,null],[11,"clone","","",94,null],[11,"eq","","",94,null],[11,"ne","","",94,null],[11,"fmt","","",94,null],[11,"empty","","Returns an empty set of flags.",94,{"inputs":[],"output":{"name":"messageboxflag"}}],[11,"all","","Returns the set containing all flags.",94,{"inputs":[],"output":{"name":"messageboxflag"}}],[11,"bits","","Returns the raw value of the flags currently stored.",94,null],[11,"from_bits","","Convert from underlying bit representation, unless that\nrepresentation contains bits that do not correspond to a flag.",94,{"inputs":[{"name":"u32"}],"output":{"name":"option"}}],[11,"from_bits_truncate","","Convert from underlying bit representation, dropping any bits\nthat do not correspond to flags.",94,{"inputs":[{"name":"u32"}],"output":{"name":"messageboxflag"}}],[11,"is_empty","","Returns `true` if no flags are currently stored.",94,null],[11,"is_all","","Returns `true` if all flags are currently set.",94,null],[11,"intersects","","Returns `true` if there are flags common to both `self` and `other`.",94,null],[11,"contains","","Returns `true` all of the flags in `other` are contained within `self`.",94,null],[11,"insert","","Inserts the specified flags in-place.",94,null],[11,"remove","","Removes the specified flags in-place.",94,null],[11,"toggle","","Toggles the specified flags in-place.",94,null],[11,"bitor","","Returns the union of the two sets of flags.",94,null],[11,"bitxor","","Returns the left flags, but with all the right flags toggled.",94,null],[11,"bitand","","Returns the intersection between the two sets of flags.",94,null],[11,"sub","","Returns the set difference of the two sets of flags.",94,null],[11,"not","","Returns the complement of this set of flags.",94,null],[11,"from_iter","","",94,{"inputs":[{"name":"t"}],"output":{"name":"messageboxflag"}}],[0,"hint","sdl2","",null,null],[4,"Hint","sdl2::hint","",null,null],[13,"Default","","",95,null],[13,"Normal","","",95,null],[13,"Override","","",95,null],[5,"set","","",null,{"inputs":[{"name":"str"},{"name":"str"}],"output":{"name":"bool"}}],[5,"get","","",null,{"inputs":[{"name":"str"}],"output":{"name":"option"}}],[5,"set_with_priority","","",null,{"inputs":[{"name":"str"},{"name":"str"},{"name":"hint"}],"output":{"name":"bool"}}],[11,"fmt","sdl2","",5,null],[11,"fmt","","",5,null],[11,"description","","",5,null],[11,"clone","sdl2::libc","",0,null],[11,"clone","","",1,null],[11,"clone","","",2,null],[11,"clone","","",3,null]],"paths":[[3,"stat"],[3,"utimbuf"],[3,"timeval"],[3,"timespec"],[4,"Error"],[4,"IntegerOrSdlError"],[3,"VideoSubsystem"],[3,"ClipboardUtil"],[4,"EventType"],[4,"WindowEventId"],[4,"Event"],[3,"EventSubsystem"],[3,"EventPump"],[3,"EventPollIterator"],[3,"EventWaitIterator"],[3,"EventWaitTimeoutIterator"],[4,"PrefPathError"],[4,"HatState"],[3,"JoystickSubsystem"],[3,"Joystick"],[3,"Guid"],[4,"AddMappingError"],[4,"Axis"],[4,"Button"],[4,"MappingStatus"],[3,"GameControllerSubsystem"],[3,"GameController"],[4,"Keycode"],[4,"Scancode"],[3,"Mod"],[3,"KeyboardState"],[3,"ScancodeIterator"],[3,"PressedScancodeIterator"],[3,"Sdl"],[3,"KeyboardUtil"],[3,"TextInputUtil"],[4,"SystemCursor"],[4,"Mouse"],[3,"Cursor"],[3,"MouseState"],[3,"MouseUtil"],[3,"Rect"],[3,"Point"],[3,"Surface"],[3,"SurfaceRef"],[3,"PixelMasks"],[4,"Color"],[4,"PixelFormatEnum"],[3,"Palette"],[3,"PixelFormat"],[3,"DisplayMode"],[4,"GLProfile"],[4,"FullscreenType"],[4,"WindowPos"],[4,"WindowBuildError"],[3,"GLAttr"],[3,"ContextFlagsBuilder"],[3,"ContextFlags"],[3,"GLContext"],[3,"Window"],[3,"WindowBuilder"],[3,"WindowRef"],[3,"DriverIterator"],[3,"TimerSubsystem"],[3,"Timer"],[3,"RendererInfo"],[3,"TextureQuery"],[4,"TextureAccess"],[4,"BlendMode"],[4,"RendererParent"],[4,"TextureValueError"],[4,"UpdateTextureError"],[4,"UpdateTextureYUVError"],[3,"Renderer"],[3,"RendererBuilder"],[3,"RenderTarget"],[3,"Texture"],[3,"DriverIterator"],[3,"RWops"],[3,"AudioSubsystem"],[3,"HapticSubsystem"],[3,"AudioSpecWAV"],[3,"AudioSpecDesired"],[3,"AudioSpec"],[4,"AudioFormat"],[4,"AudioStatus"],[8,"AudioCallback"],[8,"AudioFormatNum"],[3,"DriverIterator"],[3,"AudioDevice"],[3,"AudioDeviceLockGuard"],[3,"AudioCVT"],[3,"Version"],[4,"ShowMessageError"],[3,"MessageBoxFlag"],[4,"Hint"]]}; initSearch(searchIndex);