FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GridSplitterImpl

    trait · ferroui-controls · v0.5.0

    trait GridSplitterImpl: ThumbImpl + $crate::Upcast<GridSplitter>
    

    The overridable members introduced by the class.

    View source

    Members

    get_parent_grid

    fn get_parent_grid(this: &Self) -> Option<Ref<Grid>>
    

    Retrieves the Grid that ultimately hosts this splitter in the visual/logical tree.

    A splitter can be placed directly inside a grid or indirectly inside an items control that uses a grid as its items panel. In the latter case the first logical parent is usually a content presenter (or the items control itself), so the method walks these intermediate containers to locate the underlying grid.

    Returns the containing grid if one is found.

    Source

    get_properties_value_source

    fn get_properties_value_source(this: &Self) -> Ref<StyledElement>
    

    Returns the element that carries the grid-attached properties (Grid.Row, Grid.Column, etc.) relevant to this splitter.

    When the splitter is generated as part of an items control template, the attached properties are set on the surrounding content presenter rather than on the splitter itself. This helper selects that presenter when appropriate so subsequent property look-ups read the correct values; otherwise it simply returns the splitter.

    Source

    Trait implementations

    Availability

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