Struct wlc::View [] [src]

#[repr(C)]
pub struct View;

A View managed by Wlc

Methods

impl View
[src]

Set no view focused

Safety

Dont call this function on another thread, then the main thread

Focus view

Close view

Get current Output

Set Output

Send behind everything else

Send below another view

Send above another view

Bring to front of everything

Get current visibility bitmask

Set visibility bitmask

Get current geometry. (what client sees)

Get visible geometry. (what wlc displays)

Set geometry. Set edges if the geometry change is caused by interactive resize

Get type bitfield

Set type bit. Toggle indicates whether it is set or not

Get current state bitfield

Set state bit. Toggle indicates whether it is set or not

Get parent view

Set parent view

Get title

Get class. (shell-surface only)

Get instance. (shell-surface only)

Get app id. (xdg-surface only)

Get pid

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.

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]

Formats the value using the given formatter.

impl PartialEq for View
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for View
[src]

impl PartialEq<WeakView> for View
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for View
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Handle for View
[src]

Sets any data as user pointer consuming the data. Read more

Receive a shared reference to the user data of a given type, if user data exists. Read more

Tries to take the userdata exclusively and removes it from the Handle. Read more

Clears currently set user data (Drop gets called, after all references are dropped). Read more