pub struct IMService {
pub im: InputMethod,
sender: Threaded<Application>,
pending: IMProtocolState,
current: IMProtocolState,
preedit_string: String,
serial: Wrapping<u32>,
}
Fields§
§im: InputMethod
Owned reference (still created and destroyed in C)
sender: Threaded<Application>
§pending: IMProtocolState
§current: IMProtocolState
§preedit_string: String
§serial: Wrapping<u32>
Implementations§
Source§impl IMService
impl IMService
pub fn new(im: InputMethod, sender: Threaded<Application>) -> Box<IMService>
pub fn commit_string(&self, text: &CString) -> Result<(), SubmitError>
pub fn delete_surrounding_text( &self, before: u32, after: u32, ) -> Result<(), SubmitError>
pub fn commit(&mut self) -> Result<(), SubmitError>
pub fn is_active(&self) -> bool
fn send_event(&self)
Auto Trait Implementations§
impl Freeze for IMService
impl RefUnwindSafe for IMService
impl !Send for IMService
impl !Sync for IMService
impl Unpin for IMService
impl UnwindSafe for IMService
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