Struct gtk::builders::TreeViewColumnBuilder
source · [−]pub struct TreeViewColumnBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct TreeViewColumn
objects.
Implementations
sourceimpl TreeViewColumnBuilder
impl TreeViewColumnBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new TreeViewColumnBuilder
.
sourcepub fn build(self) -> TreeViewColumn
pub fn build(self) -> TreeViewColumn
Build the TreeViewColumn
.
pub fn alignment(self, alignment: f32) -> Self
sourcepub fn cell_area(self, cell_area: &impl IsA<CellArea>) -> Self
pub fn cell_area(self, cell_area: &impl IsA<CellArea>) -> Self
The CellArea
used to layout cell renderers for this column.
If no area is specified when creating the tree view column with TreeViewColumn::with_area()
a horizontally oriented CellAreaBox
will be used.
pub fn clickable(self, clickable: bool) -> Self
pub fn expand(self, expand: bool) -> Self
pub fn fixed_width(self, fixed_width: i32) -> Self
pub fn max_width(self, max_width: i32) -> Self
pub fn min_width(self, min_width: i32) -> Self
pub fn reorderable(self, reorderable: bool) -> Self
pub fn resizable(self, resizable: bool) -> Self
pub fn sizing(self, sizing: TreeViewColumnSizing) -> Self
sourcepub fn sort_column_id(self, sort_column_id: i32) -> Self
pub fn sort_column_id(self, sort_column_id: i32) -> Self
Logical sort column ID this column sorts on when selected for sorting. Setting the sort column ID makes the column header clickable. Set to -1 to make the column unsortable.
pub fn sort_indicator(self, sort_indicator: bool) -> Self
pub fn sort_order(self, sort_order: SortType) -> Self
pub fn spacing(self, spacing: i32) -> Self
pub fn title(self, title: &str) -> Self
pub fn visible(self, visible: bool) -> Self
pub fn widget(self, widget: &impl IsA<Widget>) -> Self
Trait Implementations
sourceimpl Clone for TreeViewColumnBuilder
impl Clone for TreeViewColumnBuilder
sourcefn clone(&self) -> TreeViewColumnBuilder
fn clone(&self) -> TreeViewColumnBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for TreeViewColumnBuilder
impl Default for TreeViewColumnBuilder
sourcefn default() -> TreeViewColumnBuilder
fn default() -> TreeViewColumnBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TreeViewColumnBuilder
impl !Send for TreeViewColumnBuilder
impl !Sync for TreeViewColumnBuilder
impl Unpin for TreeViewColumnBuilder
impl UnwindSafe for TreeViewColumnBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more