#[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
Keyboard IME candidates event structure (event.edit_candidates.*)
Available Since: This struct is available since SDL 3.2.0.
Fields§
§type_: SDL_EventType< SDL_EVENT_TEXT_EDITING_CANDIDATES
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
windowID: SDL_WindowID< The window with keyboard focus, if any
candidates: *const *const c_char< The list of candidates, or NULL if there are no candidates available
num_candidates: Sint32< The number of strings in candidates
selected_candidate: Sint32< The index of the selected candidate, or -1 if no candidate is selected
horizontal: bool< true if the list is horizontal, false if it’s vertical
padding1: Uint8§padding2: Uint8§padding3: Uint8Trait 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 UnsafeUnpin 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