pub trait InputMethodContextExt:
IsA<InputMethodContext>
+ Sealed
+ 'static {
Show 18 methods
// Provided methods
fn filter_key_event(&self, key_event: &mut EventKey) -> bool { ... }
fn input_hints(&self) -> InputHints { ... }
fn input_purpose(&self) -> InputPurpose { ... }
fn notify_cursor_area(&self, x: i32, y: i32, width: i32, height: i32) { ... }
fn notify_focus_in(&self) { ... }
fn notify_focus_out(&self) { ... }
fn notify_surrounding(
&self,
text: &str,
cursor_index: u32,
selection_index: u32,
) { ... }
fn reset(&self) { ... }
fn set_enable_preedit(&self, enabled: bool) { ... }
fn set_input_hints(&self, hints: InputHints) { ... }
fn set_input_purpose(&self, purpose: InputPurpose) { ... }
fn connect_committed<F: Fn(&Self, &str) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_delete_surrounding<F: Fn(&Self, i32, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_preedit_changed<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_preedit_finished<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_preedit_started<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_input_hints_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_input_purpose_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Available on crate feature
v2_28
only.Provided Methods§
fn filter_key_event(&self, key_event: &mut EventKey) -> bool
fn input_hints(&self) -> InputHints
fn input_purpose(&self) -> InputPurpose
fn notify_cursor_area(&self, x: i32, y: i32, width: i32, height: i32)
fn notify_focus_in(&self)
fn notify_focus_out(&self)
fn notify_surrounding( &self, text: &str, cursor_index: u32, selection_index: u32, )
fn reset(&self)
fn set_enable_preedit(&self, enabled: bool)
fn set_input_hints(&self, hints: InputHints)
fn set_input_purpose(&self, purpose: InputPurpose)
fn connect_committed<F: Fn(&Self, &str) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_delete_surrounding<F: Fn(&Self, i32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_preedit_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_preedit_finished<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_preedit_started<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_input_hints_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_input_purpose_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.