gtk4::builders

Struct ListBoxBuilder

Source
pub struct ListBoxBuilder { /* private fields */ }
Expand description

A builder-pattern type to construct ListBox objects.

Implementations§

Source§

impl ListBoxBuilder

Source

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

Source

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

Source

pub fn selection_mode(self, selection_mode: SelectionMode) -> Self

Source

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

Source

pub fn tab_behavior(self, tab_behavior: ListTabBehavior) -> Self

Available on crate feature v4_18 only.
Source

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

Source

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

Source

pub fn css_classes(self, css_classes: impl Into<StrV>) -> Self

Source

pub fn css_name(self, css_name: impl Into<GString>) -> Self

Source

pub fn cursor(self, cursor: &Cursor) -> Self

Source

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

Source

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

Source

pub fn halign(self, halign: Align) -> Self

Source

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

Source

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

Source

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

Source

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

Source

pub fn layout_manager(self, layout_manager: &impl IsA<LayoutManager>) -> Self

Source

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

Source

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

Source

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

Source

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

Source

pub fn name(self, name: impl Into<GString>) -> Self

Source

pub fn opacity(self, opacity: f64) -> Self

Source

pub fn overflow(self, overflow: Overflow) -> Self

Source

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

Source

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

Source

pub fn tooltip_markup(self, tooltip_markup: impl Into<GString>) -> Self

Source

pub fn tooltip_text(self, tooltip_text: impl Into<GString>) -> Self

Source

pub fn valign(self, valign: Align) -> Self

Source

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

Source

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

Source

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

Source

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

Source

pub fn accessible_role(self, accessible_role: AccessibleRole) -> Self

Source

pub fn build(self) -> ListBox

Build the ListBox.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.