[][src]Struct leftwm::Window

pub struct Window {
    pub handle: WindowHandle,
    pub transient: Option<WindowHandle>,
    pub never_focus: bool,
    pub debugging: bool,
    pub name: Option<String>,
    pub type_: WindowType,
    pub tags: Vec<String>,
    pub border: i32,
    pub margin: i32,
    pub normal: XYHW,
    pub start_loc: Option<XYHW>,
    pub strut: Option<XYHW>,
    // some fields omitted
}

Fields

handle: WindowHandletransient: Option<WindowHandle>never_focus: booldebugging: boolname: Option<String>type_: WindowTypetags: Vec<String>border: i32margin: i32normal: XYHWstart_loc: Option<XYHW>strut: Option<XYHW>

Implementations

impl Window[src]

pub fn new(h: WindowHandle, name: Option<String>) -> Window[src]

pub fn update_for_theme(&mut self, theme: &ThemeSetting)[src]

pub fn set_visible(&mut self, value: bool)[src]

pub fn visible(&self) -> bool[src]

pub fn set_floating(&mut self, value: bool)[src]

pub fn floating(&self) -> bool[src]

pub fn get_floating_offsets(&self) -> Option<XYHW>[src]

pub fn reset_float_offset(&mut self)[src]

pub fn set_floating_offsets(&mut self, value: Option<XYHW>)[src]

pub fn set_floating_exact(&mut self, value: XYHW)[src]

pub fn is_fullscreen(&self) -> bool[src]

pub fn must_float(&self) -> bool[src]

pub fn can_move(&self) -> bool[src]

pub fn can_resize(&self) -> bool[src]

pub fn set_width(&mut self, width: i32)[src]

pub fn set_height(&mut self, height: i32)[src]

pub fn set_states(&mut self, states: Vec<WindowState>)[src]

pub fn width(&self) -> i32[src]

pub fn height(&self) -> i32[src]

pub fn set_x(&mut self, x: i32)[src]

pub fn set_y(&mut self, y: i32)[src]

pub fn border(&self) -> i32[src]

pub fn x(&self) -> i32[src]

pub fn y(&self) -> i32[src]

pub fn calculated_xyhw(&self) -> XYHW[src]

pub fn tag(&mut self, tag: String)[src]

pub fn clear_tags(&mut self)[src]

pub fn has_tag(&self, tag: String) -> bool[src]

pub fn untag(&mut self, tag: String)[src]

Trait Implementations

impl Clone for Window[src]

impl Debug for Window[src]

impl<'de> Deserialize<'de> for Window[src]

impl Serialize for Window[src]

Auto Trait Implementations

impl RefUnwindSafe for Window

impl Send for Window

impl Sync for Window

impl Unpin for Window

impl UnwindSafe for Window

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,