[][src]Struct wlroots::output::Damage

pub struct Damage { /* fields omitted */ }

Tracks damage for an output.

When a frame event is emitted, make_current should be called. If necessary, the output should be repainted and swap_buffers should be called.

No rendering should happen outside a frame event handler.

Methods

impl Damage
[src]

Makes the output rendering context current. Returns true if wlr_output_damage_swap_buffers needs to be called.

The region of the output that needs to be repainted is added to damage.

Swaps the output buffers.

If the time of the frame isn't known, set when to None.

Swapping buffers schedules a frame event.

Accumulates damage and schedules a frame event.

Damages the whole output and schedules a frame event.

Accumulates damage from an Area and schedules a frame event.

Trait Implementations

impl Drop for Damage
[src]

Executes the destructor for this type. Read more

impl Debug for Damage
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Damage

impl !Sync for Damage

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