FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ItemsRepeaterScrollHost

    struct · ferroui-controls-repeater · v0.5.0

    struct ItemsRepeaterScrollHost
    

    Compatibility host for a repeater inside a native ScrollViewer. Its candidate selection retains the source host's vertical-edge convention: HorizontalAnchorRatio controls that edge; VerticalAnchorRatio round-trips for compatibility. Ordinary FerroUI scrolling does not require this host.

    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<ItemsRepeaterScrollHost>
    

    Returns a strong reference to this object.

    Source

    scroll_viewer_property

    fn scroll_viewer_property() -> &'static StyledProperty<Option<Ref<ScrollViewer>>>
    

    Source

    horizontal_anchor_ratio_property

    fn horizontal_anchor_ratio_property() -> &'static StyledProperty<f64>
    

    Source

    vertical_anchor_ratio_property

    fn vertical_anchor_ratio_property() -> &'static StyledProperty<f64>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    scroll_viewer

    fn scroll_viewer(self: &Self) -> Option<Ref<ScrollViewer>>
    

    Source

    set_scroll_viewer

    fn set_scroll_viewer(self: &Self, viewer: Option<Ref<ScrollViewer>>)
    

    Source

    horizontal_anchor_ratio

    fn horizontal_anchor_ratio(self: &Self) -> f64
    

    Source

    set_horizontal_anchor_ratio

    fn set_horizontal_anchor_ratio(self: &Self, ratio: f64)
    

    Source

    vertical_anchor_ratio

    fn vertical_anchor_ratio(self: &Self) -> f64
    

    Source

    set_vertical_anchor_ratio

    fn set_vertical_anchor_ratio(self: &Self, ratio: f64)
    

    Source

    is_horizontally_scrollable

    fn is_horizontally_scrollable(self: &Self) -> bool
    

    Source

    is_vertically_scrollable

    fn is_vertically_scrollable(self: &Self) -> bool
    

    Source

    current_anchor

    fn current_anchor(self: &Self) -> Option<Ref<Control>>
    

    Source

    anchor_element

    fn anchor_element(self: &Self) -> Option<Ref<Control>>
    

    Source

    register_anchor_candidate

    fn register_anchor_candidate(self: &Self, element: &Ref<Control>)
    

    Source

    unregister_anchor_candidate

    fn unregister_anchor_candidate(self: &Self, element: &Ref<Control>)
    

    Source

    get_relative_viewport

    fn get_relative_viewport(self: &Self, element: &Ref<Control>) -> Rect
    

    Source

    start_bring_into_view

    fn start_bring_into_view(self: &Self, element: &Ref<Control>, alignment_x: f64, alignment_y: f64, offset_x: f64, offset_y: f64, animate: bool)
    

    Source

    has_pending_bring_into_view

    fn has_pending_bring_into_view(self: &Self) -> bool
    

    Source

    viewport_changed

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

    Source

    post_arrange

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

    Source

    configuration_changed

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

    Source

    Trait implementations

    Availability

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