#[non_exhaustive]pub enum Request {
Destroy,
Commit {
serial: u32,
},
SetString {
text: String,
},
SetAction {
action: Action,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Destroy
destroy the text input
Destroys the gamescope_text_input object.
This is a destructor, once received this object cannot be used any longer.
Commit
apply state
Apply state changes from set_string and set_action requests.
The state relating to these events is double-buffered, and each one modifies the pending state. This request replaces the current state with the pending state.
The client must set the serial to the last received serial in the done event.
SetString
set string to be committed
Send the string text for insertion to the application.
Inserts a string at current cursor position (see commit event sequence). The string to commit could be either just a single character after a key press or the result of some composing.
Values set with this event are double-buffered. They must be applied and reset to initial on the next gamescope_text_input.commit request.
The initial value of text is an empty string.
SetAction
perform an action
Set the action to be performed on commit.
Values set with this event are double-buffered. They must be applied and reset to initial on the next gamescope_text_input.commit request.
Trait Implementations§
Source§impl MessageGroup for Request
impl MessageGroup for Request
Source§const MESSAGES: &'static [MessageDesc]
const MESSAGES: &'static [MessageDesc]
Source§type Map = ResourceMap
type Map = ResourceMap
Source§fn is_destructor(&self) -> bool
fn is_destructor(&self) -> bool
Source§fn child<Meta: ObjectMetadata>(
opcode: u16,
version: u32,
meta: &Meta,
) -> Option<Object<Meta>>
fn child<Meta: ObjectMetadata>( opcode: u16, version: u32, meta: &Meta, ) -> Option<Object<Meta>>
Object associated with this message if anySource§fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>
fn from_raw(msg: Message, map: &mut Self::Map) -> Result<Self, ()>
Source§unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument,
) -> Result<Request, ()>
unsafe fn from_raw_c( obj: *mut c_void, opcode: u32, args: *const wl_argument, ) -> Result<Request, ()>
Source§fn as_raw_c_in<F, T>(self, f: F) -> T
fn as_raw_c_in<F, T>(self, f: F) -> T
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.