INNER CODE UNIT · Rust

get_outer_size

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

    pub fn get_outer_size(&self) -> Result<PhysicalSize<u32>, Box<ipc_channel::ErrorKind>> {
        self.get_size(SizeType::Outer)
    }

    /// Get the window's position,
    /// returns [`None`] on unsupported platforms (currently only Wayland)
    fn get_position(
        &self,
        position_type: PositionType,
    ) -> Result<Option<PhysicalPosition<i32>>, Box<ipc_channel::ErrorKind>> {
        let id = uuid::Uuid::new_v4();
        let (sender, receiver) = std::sync::mpsc::channel();
        self.event_listeners
            .position_response
            .lock()
            .unwrap()
            .insert(id, sender);
        if let Err(error) = self

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…