Skip to main content

BringIntoViewRequest

Trait BringIntoViewRequest 

Source
pub trait BringIntoViewRequest {
    // Required methods
    fn target(&self) -> Ref<Layoutable>;
    fn try_execute(&self) -> bool;
}
Expand description

A bring-into-view request, processed by the IBringIntoViewLayoutManager at the end of a layout pass.

Required Methods§

Source

fn target(&self) -> Ref<Layoutable>

Gets the control this request is associated with.

Source

fn try_execute(&self) -> bool

Attempts to execute the request.

Returns true if the request has been executed (or abandoned) and should be removed from the queue; false if the target isn’t ready yet and the request should be retained for a following layout pass.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§