[go: up one dir, main page]

IMContextExt

Trait IMContextExt 

Source
pub trait IMContextExt: IsA<IMContext> + 'static {
Show 27 methods // Provided methods fn activate_osk(&self, event: Option<impl AsRef<Event>>) -> bool { ... } fn delete_surrounding(&self, offset: i32, n_chars: i32) -> bool { ... } fn filter_key( &self, press: bool, surface: &impl IsA<Surface>, device: &Device, time: u32, keycode: u32, state: ModifierType, group: i32, ) -> bool { ... } fn filter_keypress(&self, event: impl AsRef<Event>) -> bool { ... } fn focus_in(&self) { ... } fn focus_out(&self) { ... } fn preedit_string(&self) -> (GString, AttrList, i32) { ... } fn surrounding(&self) -> Option<(GString, i32)> { ... } fn surrounding_with_selection(&self) -> Option<(GString, i32, i32)> { ... } fn reset(&self) { ... } fn set_client_widget(&self, widget: Option<&impl IsA<Widget>>) { ... } fn set_cursor_location(&self, area: &Rectangle) { ... } fn set_surrounding(&self, text: &str, cursor_index: i32) { ... } fn set_surrounding_with_selection( &self, text: &str, cursor_index: i32, anchor_index: i32, ) { ... } fn set_use_preedit(&self, use_preedit: bool) { ... } fn input_hints(&self) -> InputHints { ... } fn set_input_hints(&self, input_hints: InputHints) { ... } fn input_purpose(&self) -> InputPurpose { ... } fn set_input_purpose(&self, input_purpose: InputPurpose) { ... } fn connect_commit<F: Fn(&Self, &str) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_delete_surrounding<F: Fn(&Self, i32, i32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_preedit_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_preedit_end<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_preedit_start<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_retrieve_surrounding<F: Fn(&Self) -> bool + '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 { ... }
}

Provided Methods§

Source

fn activate_osk(&self, event: Option<impl AsRef<Event>>) -> bool

Available on crate feature v4_14 only.
Source

fn delete_surrounding(&self, offset: i32, n_chars: i32) -> bool

Source

fn filter_key( &self, press: bool, surface: &impl IsA<Surface>, device: &Device, time: u32, keycode: u32, state: ModifierType, group: i32, ) -> bool

Source

fn filter_keypress(&self, event: impl AsRef<Event>) -> bool

Source

fn focus_in(&self)

Source

fn focus_out(&self)

Source

fn preedit_string(&self) -> (GString, AttrList, i32)

Source

fn surrounding(&self) -> Option<(GString, i32)>

👎Deprecated: Since 4.2
Source

fn surrounding_with_selection(&self) -> Option<(GString, i32, i32)>

Available on crate feature v4_2 only.
Source

fn reset(&self)

Source

fn set_client_widget(&self, widget: Option<&impl IsA<Widget>>)

Source

fn set_cursor_location(&self, area: &Rectangle)

Source

fn set_surrounding(&self, text: &str, cursor_index: i32)

👎Deprecated: Since 4.2
Source

fn set_surrounding_with_selection( &self, text: &str, cursor_index: i32, anchor_index: i32, )

Available on crate feature v4_2 only.
Source

fn set_use_preedit(&self, use_preedit: bool)

Source

fn input_hints(&self) -> InputHints

Source

fn set_input_hints(&self, input_hints: InputHints)

Source

fn input_purpose(&self) -> InputPurpose

Source

fn set_input_purpose(&self, input_purpose: InputPurpose)

Source

fn connect_commit<F: Fn(&Self, &str) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_delete_surrounding<F: Fn(&Self, i32, i32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_preedit_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_preedit_end<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_preedit_start<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_retrieve_surrounding<F: Fn(&Self) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_input_hints_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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.

Implementors§