pub struct TreeViewColumnBuilder { /* private fields */ }
Expand description

A builder-pattern type to construct TreeViewColumn objects.

Implementations§

source§

impl TreeViewColumnBuilder

source

pub fn new() -> Self

Create a new TreeViewColumnBuilder.

source

pub fn build(self) -> TreeViewColumn

Build the TreeViewColumn.

source

pub fn alignment(self, alignment: f32) -> Self

source

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 gtk_tree_view_column_new_with_area() a horizontally oriented CellAreaBox will be used.

source

pub fn clickable(self, clickable: bool) -> Self

source

pub fn expand(self, expand: bool) -> Self

source

pub fn fixed_width(self, fixed_width: i32) -> Self

source

pub fn max_width(self, max_width: i32) -> Self

source

pub fn min_width(self, min_width: i32) -> Self

source

pub fn reorderable(self, reorderable: bool) -> Self

source

pub fn resizable(self, resizable: bool) -> Self

source

pub fn sizing(self, sizing: TreeViewColumnSizing) -> Self

source

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.

source

pub fn sort_indicator(self, sort_indicator: bool) -> Self

source

pub fn sort_order(self, sort_order: SortType) -> Self

source

pub fn spacing(self, spacing: i32) -> Self

source

pub fn title(self, title: &str) -> Self

source

pub fn visible(self, visible: bool) -> Self

source

pub fn widget(self, widget: &impl IsA<Widget>) -> Self

Trait Implementations§

source§

impl Clone for TreeViewColumnBuilder

source§

fn clone(&self) -> TreeViewColumnBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for TreeViewColumnBuilder

source§

fn default() -> TreeViewColumnBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.