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.
Members
TYPEto_refscroll_viewer_propertyhorizontal_anchor_ratio_propertyvertical_anchor_ratio_propertyconstructnewscroll_viewerset_scroll_viewerhorizontal_anchor_ratioset_horizontal_anchor_ratiovertical_anchor_ratioset_vertical_anchor_ratiois_horizontally_scrollableis_vertically_scrollablecurrent_anchoranchor_elementregister_anchor_candidateunregister_anchor_candidateget_relative_viewportstart_bring_into_viewhas_pending_bring_into_viewviewport_changedpost_arrangeconfiguration_changed
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ItemsRepeaterScrollHost>
Returns a strong reference to this object.
scroll_viewer_property
fn scroll_viewer_property() -> &'static StyledProperty<Option<Ref<ScrollViewer>>>
horizontal_anchor_ratio_property
fn horizontal_anchor_ratio_property() -> &'static StyledProperty<f64>
vertical_anchor_ratio_property
fn vertical_anchor_ratio_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
scroll_viewer
fn scroll_viewer(self: &Self) -> Option<Ref<ScrollViewer>>
set_scroll_viewer
fn set_scroll_viewer(self: &Self, viewer: Option<Ref<ScrollViewer>>)
horizontal_anchor_ratio
fn horizontal_anchor_ratio(self: &Self) -> f64
set_horizontal_anchor_ratio
fn set_horizontal_anchor_ratio(self: &Self, ratio: f64)
vertical_anchor_ratio
fn vertical_anchor_ratio(self: &Self) -> f64
set_vertical_anchor_ratio
fn set_vertical_anchor_ratio(self: &Self, ratio: f64)
is_horizontally_scrollable
fn is_horizontally_scrollable(self: &Self) -> bool
is_vertically_scrollable
fn is_vertically_scrollable(self: &Self) -> bool
current_anchor
fn current_anchor(self: &Self) -> Option<Ref<Control>>
anchor_element
fn anchor_element(self: &Self) -> Option<Ref<Control>>
register_anchor_candidate
fn register_anchor_candidate(self: &Self, element: &Ref<Control>)
unregister_anchor_candidate
fn unregister_anchor_candidate(self: &Self, element: &Ref<Control>)
get_relative_viewport
fn get_relative_viewport(self: &Self, element: &Ref<Control>) -> Rect
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)
has_pending_bring_into_view
fn has_pending_bring_into_view(self: &Self) -> bool
viewport_changed
fn viewport_changed(self: &Self, handler: impl Fn(bool) -> () + 'static) -> Rc<dyn IDisposable>
post_arrange
fn post_arrange(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
configuration_changed
fn configuration_changed(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyControlImplExtPanelImplExtInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ItemsRepeaterScrollHost>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplControlImplPanelImplVisualImplFerroObjectImplLayoutableImplIScrollAnchorProviderDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.