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 new() -> Self
pub fn new() -> Self
Create a new ColumnViewColumnBuilder
.
sourcepub fn build(self) -> ColumnViewColumn
pub fn build(self) -> ColumnViewColumn
Build the ColumnViewColumn
.
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: &str) -> Self
Available on crate feature v4_10
only.
pub fn id(self, id: &str) -> 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.
Trait Implementations§
source§impl Clone for ColumnViewColumnBuilder
impl Clone for ColumnViewColumnBuilder
source§fn clone(&self) -> ColumnViewColumnBuilder
fn clone(&self) -> ColumnViewColumnBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ColumnViewColumnBuilder
impl Default for ColumnViewColumnBuilder
source§fn default() -> ColumnViewColumnBuilder
fn default() -> ColumnViewColumnBuilder
Returns the “default value” for a type. Read more