VirtualizingLayoutContext
struct · ferroui-controls-repeater · v0.5.0
struct VirtualizingLayoutContext
Members
TYPEto_refitem_count_coreget_item_at_coreget_or_create_element_at_corerecycle_element_corevisible_rect_corerealization_rect_corerecommended_anchor_index_corelayout_origin_coreset_layout_origin_coreconstructnewwith_hostitem_countget_item_atget_or_create_element_atget_or_create_element_at_with_optionsrecycle_elementvisible_rectrealization_rectrecommended_anchor_indexlayout_originset_layout_originis_virtualizing
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<VirtualizingLayoutContext>
Returns a strong reference to this object.
item_count_core
fn item_count_core(self: &Self) -> i32
get_item_at_core
fn get_item_at_core(self: &Self, index: i32) -> Option<BoxedValue>
get_or_create_element_at_core
fn get_or_create_element_at_core(self: &Self, index: i32, options: ElementRealizationOptions) -> Ref<Control>
recycle_element_core
fn recycle_element_core(self: &Self, element: &Ref<Control>)
visible_rect_core
fn visible_rect_core(self: &Self) -> Rect
realization_rect_core
fn realization_rect_core(self: &Self) -> Rect
recommended_anchor_index_core
fn recommended_anchor_index_core(self: &Self) -> i32
layout_origin_core
fn layout_origin_core(self: &Self) -> Point
set_layout_origin_core
fn set_layout_origin_core(self: &Self, value: Point)
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
with_host
fn with_host(host: Rc<dyn LayoutContextHost>) -> Ref<Self>
item_count
fn item_count(self: &Self) -> i32
get_item_at
fn get_item_at(self: &Self, index: i32) -> Option<BoxedValue>
get_or_create_element_at
fn get_or_create_element_at(self: &Self, index: i32) -> Ref<Control>
get_or_create_element_at_with_options
fn get_or_create_element_at_with_options(self: &Self, index: i32, options: ElementRealizationOptions) -> Ref<Control>
recycle_element
fn recycle_element(self: &Self, element: &Ref<Control>)
visible_rect
fn visible_rect(self: &Self) -> Rect
realization_rect
fn realization_rect(self: &Self) -> Rect
recommended_anchor_index
fn recommended_anchor_index(self: &Self) -> i32
layout_origin
fn layout_origin(self: &Self) -> Point
set_layout_origin
fn set_layout_origin(self: &Self, value: Point)
is_virtualizing
fn is_virtualizing(self: &Self) -> bool
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeLayoutContextImplExtVirtualizingLayoutContextImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<VirtualizingLayoutContext>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplLayoutContextImplVirtualizingLayoutContextImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.