Struct wlc::View
[−]
[src]
#[repr(C)]pub struct View;
A View managed by Wlc
Methods
impl View
[src]
fn set_no_focus()
fn focus(&self)
Focus view
fn close(&self)
Close view
fn output(&self) -> &Output
Get current Output
fn set_output(&self, output: &Output)
Set Output
fn send_to_back(&self)
Send behind everything else
fn send_below(&self, other: &View)
Send below another view
fn bring_to_front(&self)
Send above another view
fn bring_above(&self, other: &View)
Bring to front of everything
fn visibility(&self) -> Flags
Get current visibility bitmask
fn set_visibility(&self, visibility: Flags)
Set visibility bitmask
fn geometry(&self) -> Geometry
Get current geometry. (what client sees)
fn visible_geometry(&self) -> Geometry
Get visible geometry. (what wlc displays)
fn set_geometry(&self, edge: Flags, geometry: Geometry)
Set geometry. Set edges if the geometry change is caused by interactive resize
fn view_type(&self) -> Flags
Get type bitfield
fn set_view_type(&self, view_type: Flags, toggle: bool)
Set type bit. Toggle indicates whether it is set or not
fn state(&self) -> Flags
Get current state bitfield
fn set_state(&self, state: Flags, toggle: bool)
Set state bit. Toggle indicates whether it is set or not
fn parent(&self) -> Option<&View>
Get parent view
fn set_parent(&self, parent: &View)
Set parent view
fn title(&self) -> Cow<str>
Get title
fn class(&self) -> Cow<str>
Get class. (shell-surface only)
fn instance(&self) -> Cow<str>
Get instance. (shell-surface only)
fn app_id(&self) -> Cow<str>
Get app id. (xdg-surface only)
fn pid(&self) -> pid_t
Get pid
fn positioner(&self) -> Option<&Positioner>
Get the positioner of the View
if one exists
The Positioner
provides a collection of rules for the placement of a
child View
relative to it's parent.
Compositors are expected to value these hints, but technically not
required.
fn weak_reference(&self) -> WeakView
Get a weak reference of the View that may outlive its referenced view
Since View is always limited in its use by its lifetime, it is not very suitable for storing. This function allows you to optain a weak reference, that may outlive the view it is referencing.
Trait Implementations
impl !Sync for View
[src]
impl !Send for View
[src]
impl Debug for View
[src]
impl PartialEq for View
[src]
fn eq(&self, other: &View) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for View
[src]
impl PartialEq<WeakView> for View
[src]
fn eq(&self, other: &WeakView) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Hash for View
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Handle for View
[src]
fn set_user_data<T: Any>(&self, data: T)
Sets any data as user pointer consuming the data. Read more
unsafe fn user_data<T: Any>(&self) -> Option<Rc<T>>
Receive a shared reference to the user data of a given type, if user data exists. Read more
unsafe fn try_take_user_data<T: Any>(&self) -> Option<T>
Tries to take the userdata exclusively and removes it from the Handle. Read more
fn clear_user_data(&self)
Clears currently set user data (Drop
gets called, after all references are dropped). Read more