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

A builder-pattern type to construct EntryCompletion objects.

Implementations§

source§

impl EntryCompletionBuilder

source

pub fn new() -> Self

Create a new EntryCompletionBuilder.

source

pub fn build(self) -> EntryCompletion

Build the EntryCompletion.

source

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

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

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

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

source

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

source

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

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

source

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

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

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 property::EntryCompletion::inline-completion.

source

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

The column of the model containing the strings.

Note that the strings must be UTF-8.

Trait Implementations§

source§

impl Clone for EntryCompletionBuilder

source§

fn clone(&self) -> EntryCompletionBuilder

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 EntryCompletionBuilder

source§

fn default() -> EntryCompletionBuilder

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.