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