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.
The factory must be for configuring ColumnViewCell
objects.
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 Freeze for ColumnViewColumnBuilder
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