TableViewColumn
struct · ferroui-controls · v0.5.0
struct TableViewColumn
Defines a column in a TableView.
Members
TYPEto_refis_visible_propertyheader_theme_propertyheader_template_propertyheader_propertywidth_propertycell_theme_propertycell_template_propertybinding_propertycan_user_resize_propertyhorizontal_content_alignment_propertytable_view_propertyactual_width_propertycan_user_effectively_resize_propertyconstructnewis_visibleset_is_visibleheader_themeset_header_themeheader_templateset_header_templateheaderset_headerwidthset_widthcell_themeset_cell_themecell_templateset_cell_templatebindingset_bindingcan_user_resizeset_can_user_resizehorizontal_content_alignmentset_horizontal_content_alignmenttable_viewactual_widthcan_user_effectively_resize
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TableViewColumn>
Returns a strong reference to this object.
is_visible_property
fn is_visible_property() -> &'static StyledProperty<bool>
Defines the IsVisible property.
header_theme_property
fn header_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
Defines the HeaderTheme property.
header_template_property
fn header_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the HeaderTemplate property.
header_property
fn header_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the Header property.
width_property
fn width_property() -> &'static StyledProperty<GridLength>
Defines the Width property.
cell_theme_property
fn cell_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
Defines the CellTheme property.
cell_template_property
fn cell_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the CellTemplate property.
binding_property
fn binding_property() -> &'static StyledProperty<Option<AssignedBinding>>
Defines the Binding property.
can_user_resize_property
fn can_user_resize_property() -> &'static StyledProperty<Option<bool>>
Defines the CanUserResize property.
horizontal_content_alignment_property
fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
Defines the HorizontalContentAlignment property.
table_view_property
fn table_view_property() -> &'static DirectProperty<TableViewColumn, Option<Ref<TableView>>>
Defines the TableView property.
The column does not own its table view: the value is held weakly and read as a handle.
actual_width_property
fn actual_width_property() -> &'static DirectProperty<TableViewColumn, f64>
Defines the ActualWidth property.
can_user_effectively_resize_property
fn can_user_effectively_resize_property() -> &'static DirectProperty<TableViewColumn, bool>
Defines the CanUserEffectivelyResize property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
is_visible
fn is_visible(self: &Self) -> bool
Gets or sets whether the column is visible. The default is true.
set_is_visible
fn set_is_visible(self: &Self, value: bool)
header_theme
fn header_theme(self: &Self) -> Option<Ref<ControlTheme>>
Gets or sets the theme to apply to the header. It must target
TableViewColumnHeader.
set_header_theme
fn set_header_theme(self: &Self, value: impl Into<Nullable<ControlTheme>>)
header_template
fn header_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to display the header.
set_header_template
fn set_header_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
header
fn header(self: &Self) -> Option<BoxedValue>
Gets or sets the column header content.
set_header
fn set_header(self: &Self, value: Option<BoxedValue>)
width
fn width(self: &Self) -> GridLength
Gets or sets the column width. Supports pixel, star (*) and auto sizing.
set_width
fn set_width(self: &Self, value: GridLength)
cell_theme
fn cell_theme(self: &Self) -> Option<Ref<ControlTheme>>
Gets or sets the theme to apply to the cells. It must target
TableViewCell.
set_cell_theme
fn set_cell_theme(self: &Self, value: impl Into<Nullable<ControlTheme>>)
cell_template
fn cell_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to display cell content. When set, the whole row data item is passed as the template's data context.
This property takes priority over binding.
set_cell_template
fn set_cell_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
binding
fn binding(self: &Self) -> Option<AssignedBinding>
Gets or sets a binding that retrieves the cell value from the row
data item. Use this for simple property display, such as a binding to
the Name property of the items.
set_binding
fn set_binding(self: &Self, value: Option<AssignedBinding>)
can_user_resize
fn can_user_resize(self: &Self) -> Option<bool>
Gets or sets whether the column can be resized. Set to None to use
the value of TableView::can_user_resize_columns. The default is
None.
set_can_user_resize
fn set_can_user_resize(self: &Self, value: Option<bool>)
horizontal_content_alignment
fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
Gets or sets the horizontal alignment of the content within a cell.
set_horizontal_content_alignment
fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
table_view
fn table_view(self: &Self) -> Option<Ref<TableView>>
Gets the TableView associated with this column.
actual_width
fn actual_width(self: &Self) -> f64
Gets the actual width of the column, in device independent pixels. If the column hasn't yet been measured, returns NaN.
can_user_effectively_resize
fn can_user_effectively_resize(self: &Self) -> bool
Gets whether the column can be effectively resized. The value of
this property depends on both can_user_resize
and TableView::can_user_resize_columns.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<TableViewColumn>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplIHeadered
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.