[−][src]Struct penrose::core::screen::Screen
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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Screen> for Screen
[src]
impl StructuralEq for Screen
[src]
impl StructuralPartialEq for Screen
[src]
Auto Trait Implementations
impl RefUnwindSafe for Screen
[src]
impl Send for Screen
[src]
impl Sync for Screen
[src]
impl Unpin for Screen
[src]
impl UnwindSafe for Screen
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,