pub struct Application { /* private fields */ }
Implementations§
Source§impl Application
impl Application
Sourcepub fn owner(&self) -> &ApplicationOwner
pub fn owner(&self) -> &ApplicationOwner
Examples found in repository?
More examples
examples/vscode_click_on_search.rs (line 10)
6fn main() {
7 let ui = UIAutomation::new();
8
9 for app in ui.applications() {
10 println!("App {} {:?}", app.name(), app.owner().pid());
11 if app.name() == "Code" {
12 for window in app.windows() {
13 print_element(window, 0);
14 }
15 }
16 }
17}
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Examples found in repository?
More examples
examples/vscode_click_on_search.rs (line 10)
6fn main() {
7 let ui = UIAutomation::new();
8
9 for app in ui.applications() {
10 println!("App {} {:?}", app.name(), app.owner().pid());
11 if app.name() == "Code" {
12 for window in app.windows() {
13 print_element(window, 0);
14 }
15 }
16 }
17}
pub fn find<P: FnMut(&Element) -> bool>(&self, pred: P) -> Option<Element>
Sourcepub fn windows(&self) -> Vec<Element>
pub fn windows(&self) -> Vec<Element>
Examples found in repository?
More examples
examples/vscode_click_on_search.rs (line 12)
6fn main() {
7 let ui = UIAutomation::new();
8
9 for app in ui.applications() {
10 println!("App {} {:?}", app.name(), app.owner().pid());
11 if app.name() == "Code" {
12 for window in app.windows() {
13 print_element(window, 0);
14 }
15 }
16 }
17}
pub fn try_windows(&self) -> UIResult<Vec<Element>>
Trait Implementations§
Source§impl Clone for Application
impl Clone for Application
Source§fn clone(&self) -> Application
fn clone(&self) -> Application
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Application
impl !RefUnwindSafe for Application
impl !Send for Application
impl !Sync for Application
impl Unpin for Application
impl !UnwindSafe for Application
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