FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TopLevelGroup

    struct · ferroui-diagnostics · v0.5.0

    struct TopLevelGroup
    

    The object DevTools shows at the root of its trees for a group of top levels: the top levels of the group, and the notifications of the top levels that join and leave it.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TopLevelGroup>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(group: Rc<dyn IDevToolsTopLevelGroup>) -> Self
    

    Source

    new

    fn new(group: Rc<dyn IDevToolsTopLevelGroup>) -> Ref<Self>
    

    C# new TopLevelGroup(group).

    Source

    group

    fn group(self: &Self) -> Rc<dyn IDevToolsTopLevelGroup>
    

    Source

    items

    fn items(self: &Self) -> Vec<Ref<TopLevel>>
    

    Source

    added

    fn added(self: &Self, handler: impl Fn(&Ref<TopLevel>) -> () + 'static) -> Rc<dyn IDisposable>
    

    Raised when a top level joins the group. Disposing the returned handle unsubscribes.

    Source

    removed

    fn removed(self: &Self, handler: impl Fn(&Ref<TopLevel>) -> () + 'static) -> Rc<dyn IDisposable>
    

    Raised when a top level leaves the group. Disposing the returned handle unsubscribes.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.