INNER CODE UNIT · Rust

start_dragging

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

    pub fn start_dragging(&self) -> Result<(), Box<ipc_channel::ErrorKind>> {
        self.sender.send(ToVersoMessage::StartDragging)?;
        Ok(())
    }

    /// Bring the window to the front, and capture input focus
    pub fn focus(&self) -> Result<(), Box<ipc_channel::ErrorKind>> {
        self.sender.send(ToVersoMessage::Focus)?;
        Ok(())
    }

    /// Get the window's size
    fn get_size(
        &self,
        size_type: SizeType,
    ) -> Result<PhysicalSize<u32>, Box<ipc_channel::ErrorKind>> {
        let id = uuid::Uuid::new_v4();
        let (sender, receiver) = std::sync::mpsc::channel();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…