Struct gtk4::builders::ColumnViewColumnBuilder
source · pub struct ColumnViewColumnBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct ColumnViewColumn
objects.
Implementations§
source§impl ColumnViewColumnBuilder
impl ColumnViewColumnBuilder
sourcepub fn expand(self, expand: bool) -> Self
pub fn expand(self, expand: bool) -> Self
Column gets share of extra width allocated to the view.
sourcepub fn factory(self, factory: &impl IsA<ListItemFactory>) -> Self
pub fn factory(self, factory: &impl IsA<ListItemFactory>) -> Self
Factory for populating list items.
sourcepub fn fixed_width(self, fixed_width: i32) -> Self
pub fn fixed_width(self, fixed_width: i32) -> Self
If not -1, this is the width that the column is allocated, regardless of the size of its content.
Menu model used to create the context menu for the column header.
sourcepub fn id(self, id: impl Into<GString>) -> Self
Available on crate feature v4_10
only.
pub fn id(self, id: impl Into<GString>) -> Self
v4_10
only.An ID for the column.
GTK is not currently using the ID for anything, but it can be used by applications when saving column view configurations.
It is up to applications to ensure uniqueness of IDs.
sourcepub fn sorter(self, sorter: &impl IsA<Sorter>) -> Self
pub fn sorter(self, sorter: &impl IsA<Sorter>) -> Self
Sorter for sorting items according to this column.
sourcepub fn build(self) -> ColumnViewColumn
pub fn build(self) -> ColumnViewColumn
Build the ColumnViewColumn
.
Auto Trait Implementations§
impl RefUnwindSafe for ColumnViewColumnBuilder
impl !Send for ColumnViewColumnBuilder
impl !Sync for ColumnViewColumnBuilder
impl Unpin for ColumnViewColumnBuilder
impl UnwindSafe for ColumnViewColumnBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more