pub struct WindowOps;Implementations§
Source§impl WindowOps
impl WindowOps
Sourcepub fn list_windows(&self) -> String
pub fn list_windows(&self) -> String
List all open Virtuoso windows. Returns a JSON array string: [{“name”:“ADE Explorer Editing: …”}]
Sourcepub fn dismiss_dialog(&self, action: &str) -> String
pub fn dismiss_dialog(&self, action: &str) -> String
Dismiss the current blocking dialog. action: “cancel” closes via Cancel; “ok” attempts OK/Yes button.
Sourcepub fn get_dialog_info(&self) -> String
pub fn get_dialog_info(&self) -> String
Get the name of the current dialog without dismissing it. Returns “no-dialog” if no dialog is active.
Sourcepub fn screenshot(&self, path: &str) -> String
pub fn screenshot(&self, path: &str) -> String
Capture a screenshot of the current Virtuoso window to a PNG file.
IC23.1 does not have hiGetWindowScreenDump, so we use X11 import
(ImageMagick) via system(). The file path is verified with isFile
after the capture to distinguish success from failure.
Sourcepub fn screenshot_by_pattern(&self, path: &str, pattern: &str) -> String
pub fn screenshot_by_pattern(&self, path: &str, pattern: &str) -> String
Capture a screenshot of the first window whose name matches a regex pattern. Falls back to full-screen root capture (X11 import does not support per-window targeting without xdotool).
Auto Trait Implementations§
impl Freeze for WindowOps
impl RefUnwindSafe for WindowOps
impl Send for WindowOps
impl Sync for WindowOps
impl Unpin for WindowOps
impl UnsafeUnpin for WindowOps
impl UnwindSafe for WindowOps
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more