FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TableViewColumn

    struct · ferroui-controls · v0.5.0

    struct TableViewColumn
    

    Defines a column in a TableView.

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

    Returns a strong reference to this object.

    Source

    is_visible_property

    fn is_visible_property() -> &'static StyledProperty<bool>
    

    Defines the IsVisible property.

    Source

    header_theme_property

    fn header_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
    

    Defines the HeaderTheme property.

    Source

    header_template_property

    fn header_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
    

    Defines the HeaderTemplate property.

    Source

    header_property

    fn header_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the Header property.

    Source

    width_property

    fn width_property() -> &'static StyledProperty<GridLength>
    

    Defines the Width property.

    Source

    cell_theme_property

    fn cell_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
    

    Defines the CellTheme property.

    Source

    cell_template_property

    fn cell_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
    

    Defines the CellTemplate property.

    Source

    binding_property

    fn binding_property() -> &'static StyledProperty<Option<AssignedBinding>>
    

    Defines the Binding property.

    Source

    can_user_resize_property

    fn can_user_resize_property() -> &'static StyledProperty<Option<bool>>
    

    Defines the CanUserResize property.

    Source

    horizontal_content_alignment_property

    fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
    

    Defines the HorizontalContentAlignment property.

    Source

    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.

    Source

    actual_width_property

    fn actual_width_property() -> &'static DirectProperty<TableViewColumn, f64>
    

    Defines the ActualWidth property.

    Source

    can_user_effectively_resize_property

    fn can_user_effectively_resize_property() -> &'static DirectProperty<TableViewColumn, bool>
    

    Defines the CanUserEffectivelyResize property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    is_visible

    fn is_visible(self: &Self) -> bool
    

    Gets or sets whether the column is visible. The default is true.

    Source

    set_is_visible

    fn set_is_visible(self: &Self, value: bool)
    

    Source

    header_theme

    fn header_theme(self: &Self) -> Option<Ref<ControlTheme>>
    

    Gets or sets the theme to apply to the header. It must target TableViewColumnHeader.

    Source

    set_header_theme

    fn set_header_theme(self: &Self, value: impl Into<Nullable<ControlTheme>>)
    

    Source

    header_template

    fn header_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    Gets or sets the data template used to display the header.

    Source

    set_header_template

    fn set_header_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    header

    fn header(self: &Self) -> Option<BoxedValue>
    

    Gets or sets the column header content.

    Source

    set_header

    fn set_header(self: &Self, value: Option<BoxedValue>)
    

    Source

    width

    fn width(self: &Self) -> GridLength
    

    Gets or sets the column width. Supports pixel, star (*) and auto sizing.

    Source

    set_width

    fn set_width(self: &Self, value: GridLength)
    

    Source

    cell_theme

    fn cell_theme(self: &Self) -> Option<Ref<ControlTheme>>
    

    Gets or sets the theme to apply to the cells. It must target TableViewCell.

    Source

    set_cell_theme

    fn set_cell_theme(self: &Self, value: impl Into<Nullable<ControlTheme>>)
    

    Source

    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.

    Source

    set_cell_template

    fn set_cell_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    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.

    Source

    set_binding

    fn set_binding(self: &Self, value: Option<AssignedBinding>)
    

    Source

    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.

    Source

    set_can_user_resize

    fn set_can_user_resize(self: &Self, value: Option<bool>)
    

    Source

    horizontal_content_alignment

    fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
    

    Gets or sets the horizontal alignment of the content within a cell.

    Source

    set_horizontal_content_alignment

    fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
    

    Source

    table_view

    fn table_view(self: &Self) -> Option<Ref<TableView>>
    

    Gets the TableView associated with this column.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    Availability

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