INNER CODE UNIT · Rust

get_outer_position

versotile-org/verso · verso/src/lib.rs:387

    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();
        self.event_listeners
            .maximized_response
            .lock()
            .unwrap()
            .insert(id, sender);
        if let Err(error) = self.sender.send(ToVersoMessage::GetMaximized(id)) {
            self.event_listeners
                .maximized_response

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…