pub struct WindowInfo {
pub full_exe: String,
pub obs_id: String,
pub handle: HWND,
pub pid: u32,
pub title: Option<String>,
pub class: Option<String>,
pub product_name: Option<String>,
pub monitor: Option<String>,
pub intersects: Option<bool>,
pub cmd_line: Option<String>,
pub is_game: bool,
}Expand description
Represents information about a window.
Fields§
§full_exe: StringThe full path to the executable associated with the window.
obs_id: StringThe unique identifier of the window in OBS.
handle: HWNDThe handle to the window (only enabled when feature serde is disabled).
pid: u32The process ID of the window.
title: Option<String>The title of the window.
class: Option<String>The class name of the window.
product_name: Option<String>The product name of the window.
monitor: Option<String>The monitor on which the window is located.
intersects: Option<bool>Indicates whether the window is between multiple monitors.
cmd_line: Option<String>The command line used to launch the process.
is_game: boolIf this window can be recorded using a game capture source.
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 moreAuto 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