INNER CODE UNIT · Rust
get_inner_position
versotile-org/verso · verso/src/lib.rs:379
pub fn get_inner_position(
&self,
) -> Result<Option<PhysicalPosition<i32>>, Box<ipc_channel::ErrorKind>> {
self.get_position(PositionType::Inner)
}
/// Get the window's outer position,
/// returns [`None`] on unsupported platforms (currently only Wayland)
pub fn get_outer_position(
&self,
) -> Result<Option<PhysicalPosition<i32>>, Box<ipc_channel::ErrorKind>> {
self.get_position(PositionType::Outer)
}
/// Get if the window is currently maximized or not
pub fn is_maximized(&self) -> Result<bool, Box<ipc_channel::ErrorKind>> {
let id = uuid::Uuid::new_v4();
let (sender, receiver) = std::sync::mpsc::channel();