gtk4::builders

Struct EntryCompletionBuilder

Source
pub struct EntryCompletionBuilder { /* private fields */ }
👎Deprecated: Since 4.10
Expand description

A builder-pattern type to construct EntryCompletion objects.

Implementations§

Source§

impl EntryCompletionBuilder

Source

pub fn cell_area(self, cell_area: &impl IsA<CellArea>) -> Self

👎Deprecated: Since 4.10

The CellArea used to layout cell renderers in the treeview column.

If no area is specified when creating the entry completion with EntryCompletion::with_area(), a horizontally oriented CellAreaBox will be used.

Source

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

👎Deprecated: Since 4.10

Determines whether the common prefix of the possible completions should be inserted automatically in the entry.

Note that this requires text-column to be set, even if you are using a custom match function.

Source

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

👎Deprecated: Since 4.10

Determines whether the possible completions on the popup will appear in the entry as you navigate through them.

Source

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

👎Deprecated: Since 4.10

The minimum key length as set for completion.

Source

pub fn model(self, model: &impl IsA<TreeModel>) -> Self

👎Deprecated: Since 4.10

The model used as data source.

Source

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

👎Deprecated: Since 4.10

Determines whether the possible completions should be shown in a popup window.

Source

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

👎Deprecated: Since 4.10

Determines whether the completions popup window will be resized to the width of the entry.

Source

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

👎Deprecated: Since 4.10

Determines whether the completions popup window will shown for a single possible completion.

You probably want to set this to false if you are using inline-completion.

Source

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

👎Deprecated: Since 4.10

The column of the model containing the strings.

Note that the strings must be UTF-8.

Source

pub fn build(self) -> EntryCompletion

👎Deprecated: Since 4.10

Build the EntryCompletion.

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.