#[repr(C)]pub struct SDL_TextEditingCandidatesEvent {
pub type: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub windowID: SDL_WindowID,
pub candidates: *const *const c_char,
pub num_candidates: Sint32,
pub selected_candidate: Sint32,
pub horizontal: bool,
pub padding1: Uint8,
pub padding2: Uint8,
pub padding3: Uint8,
}Expand description
Fields§
§type: SDL_EventType§reserved: Uint32§timestamp: Uint64In nanoseconds, populated using SDL_GetTicksNS()
windowID: SDL_WindowIDThe window with keyboard focus, if any
candidates: *const *const c_charThe list of candidates, or NULL if there are no candidates available
num_candidates: Sint32The number of strings in candidates
selected_candidate: Sint32The index of the selected candidate, or -1 if no candidate is selected
horizontal: booltrue if the list is horizontal, false if it’s vertical
padding1: Uint8👎Deprecated: padding fields are exempt from semver; init with
§..Default::default()padding2: Uint8👎Deprecated: padding fields are exempt from semver; init with
§..Default::default()padding3: Uint8👎Deprecated: padding fields are exempt from semver; init with
..Default::default()Trait Implementations§
Source§impl Clone for SDL_TextEditingCandidatesEvent
impl Clone for SDL_TextEditingCandidatesEvent
Source§fn clone(&self) -> SDL_TextEditingCandidatesEvent
fn clone(&self) -> SDL_TextEditingCandidatesEvent
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 moreimpl Copy for SDL_TextEditingCandidatesEvent
Auto Trait Implementations§
impl Freeze for SDL_TextEditingCandidatesEvent
impl RefUnwindSafe for SDL_TextEditingCandidatesEvent
impl !Send for SDL_TextEditingCandidatesEvent
impl !Sync for SDL_TextEditingCandidatesEvent
impl Unpin for SDL_TextEditingCandidatesEvent
impl UnwindSafe for SDL_TextEditingCandidatesEvent
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