TreeDataGridColumnHeadersPresenter
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridColumnHeadersPresenter
Presents the column headers of a TreeDataGrid, realizing only the
headers of the columns in the viewport.
Members
TYPEto_refelement_factory_propertyitems_propertyconstructnewpresenter_baseelement_factoryset_element_factoryitemsset_itemsrealized_elementsis_layout_in_progressbring_into_viewget_realized_elementstry_get_elementchild_index_changedget_child_indextry_get_total_count
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TreeDataGridColumnHeadersPresenter>
Returns a strong reference to this object.
element_factory_property
fn element_factory_property() -> &'static DirectProperty<TreeDataGridColumnHeadersPresenter, Option<Rc<TreeDataGridElementFactory>>>
Defines the ElementFactory property.
items_property
fn items_property() -> &'static DirectProperty<TreeDataGridColumnHeadersPresenter, Option<Rc<dyn IColumns>>>
Defines the Items property: the columns.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
presenter_base
fn presenter_base(self: &Self) -> &TreeDataGridPresenterBase
The state of the presenter base.
element_factory
fn element_factory(self: &Self) -> Option<Rc<TreeDataGridElementFactory>>
The factory of the column headers.
set_element_factory
fn set_element_factory(self: &Self, value: Option<Rc<TreeDataGridElementFactory>>)
items
fn items(self: &Self) -> Option<Rc<dyn IColumns>>
The columns whose headers the presenter shows.
set_items
fn set_items(self: &Self, value: Option<Rc<dyn IColumns>>)
realized_elements
fn realized_elements(self: &Self) -> Vec<Option<Ref<Control>>>
The realized column headers, with an empty slot for each column of the realized range that
has no header yet (RealizedElements).
is_layout_in_progress
fn is_layout_in_progress(self: &Self) -> bool
Whether the presenter is in its measure or arrange pass.
bring_into_view
fn bring_into_view(self: &Self, index: i32, rect: Option<Rect>) -> Option<Ref<Control>>
Brings the header of the column at index into view (BringIntoView).
get_realized_elements
fn get_realized_elements(self: &Self) -> Vec<Ref<Control>>
The realized column headers (GetRealizedElements).
try_get_element
fn try_get_element(self: &Self, index: i32) -> Option<Ref<Control>>
The realized header of the column at index, if any (TryGetElement).
child_index_changed
fn child_index_changed(self: &Self, handler: impl Fn(&ChildIndexChangedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
Occurs when the index of a realized header changes (ChildIndexChanged). Disposing the
returned handle unsubscribes.
get_child_index
fn get_child_index(self: &Self, child: &StyledElement) -> i32
The index of a column header (IChildIndexProvider.GetChildIndex).
try_get_total_count
fn try_get_total_count(self: &Self) -> Option<i32>
The number of columns (IChildIndexProvider.TryGetTotalCount).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherControlImplExtDerefUpcast<T>Upcast<TreeDataGridColumnHeadersPresenter>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleInteractiveImplInputElementImplFerroObjectImplStyledElementImplVisualImplLayoutableImplControlImplIFinalMeasureSelectorTreeDataGridPresenterHooks
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.