INNER CODE UNIT · Rust

get_inner_size

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

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

    /// Returns the physical size of the entire window.
    ///
    /// These dimensions include the title bar and borders.
    /// If you don't want that (and you usually don't), use [`Self::get_inner_size`] instead.
    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>> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…