#[repr(C)]pub struct SDL_DialogFileFilter {
pub name: *const c_char,
pub pattern: *const c_char,
}Expand description
An entry for filters for file dialogs.
name is a user-readable label for the filter (for example, “Office
document”).
pattern is a semicolon-separated list of file extensions (for example,
“doc;docx”). File extensions may only contain alphanumeric characters,
hyphens, underscores and periods. Alternatively, the whole string can be a
single asterisk (“*”), which serves as an “All files” filter.
§Availability
This struct is available since SDL 3.2.0.
§See also
Fields§
§name: *const c_char§pattern: *const c_charTrait Implementations§
Source§impl Clone for SDL_DialogFileFilter
impl Clone for SDL_DialogFileFilter
Source§fn clone(&self) -> SDL_DialogFileFilter
fn clone(&self) -> SDL_DialogFileFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_DialogFileFilter
impl Debug for SDL_DialogFileFilter
Source§impl Default for SDL_DialogFileFilter
impl Default for SDL_DialogFileFilter
impl Copy for SDL_DialogFileFilter
Auto Trait Implementations§
impl Freeze for SDL_DialogFileFilter
impl RefUnwindSafe for SDL_DialogFileFilter
impl !Send for SDL_DialogFileFilter
impl !Sync for SDL_DialogFileFilter
impl Unpin for SDL_DialogFileFilter
impl UnwindSafe for SDL_DialogFileFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more