FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridColumnarPresenterBase

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TreeDataGridColumnarPresenterBase
    

    The state of the reference's TreeDataGridColumnarPresenterBase<TItem>.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    get_initial_constraint

    fn get_initial_constraint(columns: &dyn IColumns, index: i32, available_size: Size) -> Size
    

    GetInitialConstraint: the actual width of the column when it is known and the column does not need an unconstrained measure, otherwise its maximum width.

    Source

    get_or_estimate_anchor_element_for_viewport

    fn get_or_estimate_anchor_element_for_viewport(self: &Self, base: &TreeDataGridPresenterBase, columns: Option<&dyn IColumns>, viewport_start: f64, viewport_end: f64, item_count: i32) -> (i32, f64)
    

    GetOrEstimateAnchorElementForViewport.

    Source

    estimate_element_size_u

    fn estimate_element_size_u(self: &Self, columns: Option<&dyn IColumns>) -> f64
    

    EstimateElementSizeU: the average width of the measured columns.

    Source

    needs_measure_for_viewport_change

    fn needs_measure_for_viewport_change(base: &TreeDataGridPresenterBase, orientation: Orientation, measure_viewport: Rect, viewport: Rect) -> bool
    

    NeedsMeasureForViewportChange.

    Source

    needs_final_measure_pass

    fn needs_final_measure_pass(columns: &dyn IColumns, first_index: i32, elements: &[Option<Ref<Control>>]) -> bool
    

    NeedsFinalMeasurePass.

    Source

    needs_final_measure

    fn needs_final_measure(columns: &dyn IColumns, element: &Control, index: i32) -> bool
    

    IFinalMeasureSelector.NeedsFinalMeasure: whether the element was measured wider than its column, or at another width than its auto-sized column.

    Source

    get_element_at

    fn get_element_at(columns: &dyn IColumns, position: f64) -> (i32, f64)
    

    GetElementAt.

    Source

    get_final_constraint

    fn get_final_constraint(columns: &dyn IColumns, index: i32) -> Size
    

    GetFinalConstraint: the actual width of the column, with an unconstrained height.

    Source

    measure_column_element

    fn measure_column_element(columns: &dyn IColumns, index: i32, row_index: i32, element: &Control, available_size: Size) -> Size
    

    MeasureColumnElement: measures the element of a column and reports the measure to the columns, which give the size the element gets.

    Source

    calculate_size_u

    fn calculate_size_u(columns: Option<&dyn IColumns>, available_size: Size) -> f64
    

    CalculateSizeU: the estimated width of the columns.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Default

    Availability

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