pub struct SeatApp {
pub pid: u32,
/* private fields */
}Expand description
One proxied app.
Fields§
§pid: u32The app’s pid (correlates with the computer-use bound target).
Implementations§
Source§impl SeatApp
impl SeatApp
Sourcepub fn capture_frame(&self) -> Result<CapturedFrame, SeatError>
pub fn capture_frame(&self) -> Result<CapturedFrame, SeatError>
Read the app’s current rendered frame (window-scoped capture).
Sourcepub fn has_interactive_frame(&self) -> bool
pub fn has_interactive_frame(&self) -> bool
True once the client has produced a window-sized frame rather than a startup icon or cursor-sized helper surface.
Sourcepub fn inject_click(
&self,
x: f64,
y: f64,
button: u32,
count: u32,
) -> Result<(), SeatError>
pub fn inject_click( &self, x: f64, y: f64, button: u32, count: u32, ) -> Result<(), SeatError>
Click at surface-local (x, y). button is a Linux input code.
Sourcepub fn inject_click_with_modifiers(
&self,
x: f64,
y: f64,
button: u32,
count: u32,
modifiers: Option<&str>,
) -> Result<(), SeatError>
pub fn inject_click_with_modifiers( &self, x: f64, y: f64, button: u32, count: u32, modifiers: Option<&str>, ) -> Result<(), SeatError>
Click while holding an optional +-separated modifier list.
Sourcepub fn inject_scroll(
&self,
x: f64,
y: f64,
dx: i32,
dy: i32,
) -> Result<(), SeatError>
pub fn inject_scroll( &self, x: f64, y: f64, dx: i32, dy: i32, ) -> Result<(), SeatError>
Scroll at surface-local (x, y) by discrete notches.
Sourcepub fn inject_key_raw(
&self,
keycode: u32,
pressed: bool,
) -> Result<(), SeatError>
pub fn inject_key_raw( &self, keycode: u32, pressed: bool, ) -> Result<(), SeatError>
Press/release a raw keycode.
Sourcepub fn inject_key_combo(&self, combination: &str) -> Result<(), SeatError>
pub fn inject_key_combo(&self, combination: &str) -> Result<(), SeatError>
Press a key or +-separated key combination in this app.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SeatApp
impl RefUnwindSafe for SeatApp
impl Send for SeatApp
impl Sync for SeatApp
impl Unpin for SeatApp
impl UnsafeUnpin for SeatApp
impl UnwindSafe for SeatApp
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.