[][src]Struct wlroots::output::Output

pub struct Output { /* fields omitted */ }

Methods

impl Output
[src]

Sets the best modesetting for an output.

NOTE You cannot call this when the output will be removed.

I'm still marking it as safe though because we protect against that action in the output destruction callback.

Set this to be the current mode for the Output.

Set a custom mode for this output.

Gets the name of the output in UTF-8.

Gets the make of the output in UTF-8.

Gets the model of the output in UTF-8.

Gets the serial of the output in UTF-8.

Determines if the output is enabled or not.

Get the scale of the output

Determines if the output should have its buffers swapped or not.

Get the refresh rate of the output.

Gets the output position in layout space reported to clients.

Get subpixel information about the output.

Get the transform information about the output.

Renders software cursors. This is a utility function that can be called when compositors render.

If Cursor is used along with an OutputLayout then this is not necessary.

Manually schedules a frame event.

If a frame event is already pending, it is a no-op.

Make this output the current output.

Unsafety

This is done for rendering purposes, and you should really use a GenericRenderer instead in order to do this.

Sometimes however you need to do e.g opengl rendering and we haven't wrapped that. If that's the case, call this first and then swap the buffers.

Returns the drawing buffer age in number of frames in number of frames, or None if unknown. This is useful for damage tracking.

Swaps the buffers and draws whatever is in the back buffer on the screen.

If the time of the frame is not known, set when to None.

If the compositor does not support damage tracking, set damage to None

Unsafety

This is done for rendering purposes, but if called multiple times then you could cause a deadlock.

You should try to use a GenericRenderer, but sometimes it's necessary to do your own manual rendering in a compositor. In that case, call make_current, do your rendering, and then call this function.

Determines if a frame is pending or not.

Get the dimensions of the output as (width, height).

Get the physical dimensions of the output as (width, height).

Computes the transformed output resolution

Computes the transformed and scaled output resolution.

Get the modes associated with this output.

Note that some backends may have zero modes.

Enables or disables an output.

Sets the gamma based on the size.

Get the gamma size.

Sets the position of this output.

Set the scale applied to this output.

Trait Implementations

impl Handleable<*mut wlr_output_damage, wlr_output> for Output
[src]

Creates a weak reference to the resource.

impl Drop for Output
[src]

Executes the destructor for this type. Read more

impl Debug for Output
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Output

impl !Sync for Output

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