Trait gtk::prelude::IMContextExt

source ·
pub trait IMContextExt: 'static {
Show 23 methods // Required methods fn delete_surrounding(&self, offset: i32, n_chars: i32) -> bool; fn filter_keypress(&self, event: &EventKey) -> bool; fn focus_in(&self); fn focus_out(&self); fn preedit_string(&self) -> (GString, AttrList, i32); fn surrounding(&self) -> Option<(GString, i32)>; fn reset(&self); fn set_client_window(&self, window: Option<&Window>); fn set_cursor_location(&self, area: &Rectangle); fn set_surrounding(&self, text: &str, cursor_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;
}

Required Methods§

source

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

source

fn filter_keypress(&self, event: &EventKey) -> 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)>

source

fn reset(&self)

source

fn set_client_window(&self, window: Option<&Window>)

source

fn set_cursor_location(&self, area: &Rectangle)

source

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

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

Implementors§