Struct wayland_protocols_plasma::fake_input::generated::client::org_kde_kwin_fake_input::OrgKdeKwinFakeInput
source · pub struct OrgKdeKwinFakeInput {
id: ObjectId,
version: u32,
data: Option<Arc<dyn ObjectData>>,
backend: WeakBackend,
}
Expand description
Fake input manager
This interface allows other processes to provide fake input events. Purpose is on the one hand side to provide testing facilities like XTest on X11. But also to support use case like kdeconnect’s mouse pad interface.
A compositor should not trust the input received from this interface. Clients should not expect that the compositor honors the requests from this interface.
This interface has no events.
Fields§
§id: ObjectId
§version: u32
§data: Option<Arc<dyn ObjectData>>
§backend: WeakBackend
Implementations§
source§impl OrgKdeKwinFakeInput
impl OrgKdeKwinFakeInput
sourcepub fn authenticate(&self, application: String, reason: String)
pub fn authenticate(&self, application: String, reason: String)
Information why the client wants to use the interface
A client should use this request to tell the compositor why it wants to use this interface. The compositor might use the information to decide whether it wants to grant the request. The data might also be passed to the user to decide whether the application should get granted access to this very privileged interface.
pub fn pointer_motion(&self, delta_x: f64, delta_y: f64)
pub fn axis(&self, axis: u32, value: f64)
sourcepub fn touch_down(&self, id: u32, x: f64, y: f64)
pub fn touch_down(&self, id: u32, x: f64, y: f64)
touch down event
A client should use this request to send touch down event at specific coordinates.
sourcepub fn touch_motion(&self, id: u32, x: f64, y: f64)
pub fn touch_motion(&self, id: u32, x: f64, y: f64)
touch motion event
A client should use this request to send touch motion to specific position.
sourcepub fn touch_up(&self, id: u32)
pub fn touch_up(&self, id: u32)
touch up event
A client should use this request to send touch up event.
sourcepub fn touch_cancel(&self)
pub fn touch_cancel(&self)
touch cancel event
A client should use this request to cancel the current touch event.
sourcepub fn touch_frame(&self)
pub fn touch_frame(&self)
touch frame event
A client should use this request to send touch frame event.
pub fn pointer_motion_absolute(&self, x: f64, y: f64)
pub fn keyboard_key(&self, button: u32, state: u32)
Trait Implementations§
source§impl Borrow<ObjectId> for OrgKdeKwinFakeInput
impl Borrow<ObjectId> for OrgKdeKwinFakeInput
source§impl Clone for OrgKdeKwinFakeInput
impl Clone for OrgKdeKwinFakeInput
source§fn clone(&self) -> OrgKdeKwinFakeInput
fn clone(&self) -> OrgKdeKwinFakeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OrgKdeKwinFakeInput
impl Debug for OrgKdeKwinFakeInput
source§impl Hash for OrgKdeKwinFakeInput
impl Hash for OrgKdeKwinFakeInput
source§impl PartialEq<Weak<OrgKdeKwinFakeInput>> for OrgKdeKwinFakeInput
impl PartialEq<Weak<OrgKdeKwinFakeInput>> for OrgKdeKwinFakeInput
source§impl PartialEq for OrgKdeKwinFakeInput
impl PartialEq for OrgKdeKwinFakeInput
source§fn eq(&self, other: &OrgKdeKwinFakeInput) -> bool
fn eq(&self, other: &OrgKdeKwinFakeInput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Proxy for OrgKdeKwinFakeInput
impl Proxy for OrgKdeKwinFakeInput
source§fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
source§fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
source§fn send_constructor<I: Proxy>(
&self,
req: Self::Request<'_>,
data: Arc<dyn ObjectData>,
) -> Result<I, InvalidId>
fn send_constructor<I: Proxy>( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData>, ) -> Result<I, InvalidId>
source§fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
source§fn inert(backend: WeakBackend) -> Self
fn inert(backend: WeakBackend) -> Self
source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Event), DispatchError>
source§fn write_request<'a>(
&self,
conn: &Connection,
msg: Self::Request<'a>,
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: Self::Request<'a>, ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
impl Eq for OrgKdeKwinFakeInput
Auto Trait Implementations§
impl Freeze for OrgKdeKwinFakeInput
impl !RefUnwindSafe for OrgKdeKwinFakeInput
impl Send for OrgKdeKwinFakeInput
impl Sync for OrgKdeKwinFakeInput
impl Unpin for OrgKdeKwinFakeInput
impl !UnwindSafe for OrgKdeKwinFakeInput
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.