[][src]Struct penrose::core::screen::Screen

pub struct Screen {
    pub wix: usize,
    // some fields omitted
}

Display information for a connected screen

Fields

wix: usize

The current workspace index being displayed

Implementations

impl Screen[src]

pub fn new(region: Region, wix: usize) -> Screen[src]

Create a new screen instance directly

pub fn update_effective_region(&mut self, bar_height: u32, top_bar: bool)[src]

Cache the current effective region of this screen based on whether or not a bar is displayed and if that bar is positioned at the top or bottom of the screen.

pub fn region(&self, effective_only: bool) -> Region[src]

The available space for displaying clients on this screen. If 'effective_only' then the returned Region will account for space taken up by a bar.

pub fn contains(&self, p: Point) -> bool[src]

Determine whether or not an absolute coordinate Point (relative to the root window) is located on this screen.

Trait Implementations

impl Clone for Screen[src]

impl Copy for Screen[src]

impl Debug for Screen[src]

impl Eq for Screen[src]

impl Hash for Screen[src]

impl PartialEq<Screen> for Screen[src]

impl StructuralEq for Screen[src]

impl StructuralPartialEq for Screen[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.