pub struct WindowInfo {
pub hwnd: isize,
pub pid: u32,
pub title: String,
pub class_name: String,
pub process_name: String,
pub process_file: PathBuf,
pub index: usize,
pub position: WindowPosition,
}Expand description
Information about a window.
Fields§
§hwnd: isizeWindow handle.
pid: u32Process ID.
title: StringWindow title.
class_name: StringWindow class name.
process_name: StringProcess name.
process_file: PathBufProcess file path.
index: usizeIndex in the enumeration.
position: WindowPositionWindow position and size.
Implementations§
Source§impl WindowInfo
impl WindowInfo
Source§impl WindowInfo
impl WindowInfo
Sourcepub fn format(&self, config: &FormatConfig) -> String
pub fn format(&self, config: &FormatConfig) -> String
Format this window according to the configuration.
Sourcepub fn format_with(&self, format: OutputFormat) -> String
pub fn format_with(&self, format: OutputFormat) -> String
Format this window with a specific output format.
Trait Implementations§
Source§impl Clone for WindowInfo
impl Clone for WindowInfo
Source§fn clone(&self) -> WindowInfo
fn clone(&self) -> WindowInfo
Returns a duplicate 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 moreSource§impl Debug for WindowInfo
impl Debug for WindowInfo
Source§impl From<&WindowInfo> for WindowInfo
Available on crate feature window-enumerator only.Conversion from window-enumerator types
impl From<&WindowInfo> for WindowInfo
Available on crate feature
window-enumerator only.Conversion from window-enumerator types
Source§fn from(window: &WindowInfo) -> Self
fn from(window: &WindowInfo) -> Self
Converts to this type from the input type.
Source§impl From<WindowInfo> for WindowInfo
Available on crate feature window-enumerator only.
impl From<WindowInfo> for WindowInfo
Available on crate feature
window-enumerator only.Source§fn from(window: WindowInfo) -> Self
fn from(window: WindowInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowInfo
impl RefUnwindSafe for WindowInfo
impl Send for WindowInfo
impl Sync for WindowInfo
impl Unpin for WindowInfo
impl UnwindSafe for WindowInfo
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