[][src]Struct wlroots::output::layout::Layout

#[repr(C)]
pub struct Layout { /* fields omitted */ }

Methods

impl Layout
[src]

Construct a new OuputLayout.

Get the outputs associated with this output::layout::Layout.

Also returns their absolute position within the layout.

Get the Outputs in the output::layout::Layout coupled with their output information.

For a version that isn't bound by lifetimes, see outputs.

Adds an output to the layout at the given coordinates.

Adds an output to the layout, automatically positioning it with the others that are already there.

Moves the output to the given coordinates.

If the output is not part of this layout this does nothing.

Get the closest point on this layout from the given point from the reference output.

If reference is None, gets the closest point from the entire layout.

Returns the closest point in the format (x, y)

Determines if the output::layout::Layout contains the output::Output at the given point.

Get the box of the layout for the given reference output.

If reference is None, the box will be for the extents of the entire layout.

Get the output closest to the center of the layout extents, if one exists.

Determines if the output::Output in the output::layout::Layout intersects with the provided Area.

Given x and y as pointers to global coordinates, adjusts them to local output coordinates relative to the given reference output.

Remove an output from this layout.

If the output was not in the layout, does nothing.

Get an output's information about its place in the output::layout::Layout, if it's present.

Get the output at the given output layout coordinate location, if there is one there.

Creates a weak reference to an output::layout::Layout.

Panics

If this output::layout::Layout is a previously upgraded output::layout::Handle, then this function will panic.

Trait Implementations

impl Drop for Layout
[src]

Executes the destructor for this type. Read more

impl Debug for Layout
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Layout

impl !Sync for Layout

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more