[]Struct gtk::SearchEntry

pub struct SearchEntry(_, _);

SearchEntry is a subclass of Entry that has been tailored for use as a search entry.

It will show an inactive symbolic “find” icon when the search entry is empty, and a symbolic “clear” icon when there is text. Clicking on the “clear” icon will empty the search entry.

Note that the search/clear icon is shown using a secondary icon, and thus does not work if you are using the secondary icon position for some other purpose.

To make filtering appear more reactive, it is a good idea to not react to every change in the entry text immediately, but only after a short delay. To support this, SearchEntry emits the SearchEntry::search-changed signal which can be used instead of the Editable::changed signal.

The SearchEntry::previous-match, SearchEntry::next-match and SearchEntry::stop-search signals can be used to implement moving between search results and ending the search.

Often, SearchEntry will be fed events by means of being placed inside a SearchBar. If that is not the case, you can use SearchEntryExt::handle_event to pass events.

Implements

SearchEntryExt, EntryExt, WidgetExt, glib::object::ObjectExt, BuildableExt, CellEditableExt, EditableExt, WidgetExtManual, BuildableExtManual, EditableSignals

Implementations

impl SearchEntry[src]

pub fn new() -> SearchEntry[src]

Creates a SearchEntry, with a find icon when the search field is empty, and a clear icon when it isn't.

Returns

a new SearchEntry

Trait Implementations

impl Clone for SearchEntry

impl Debug for SearchEntry

impl Default for SearchEntry[src]

impl Display for SearchEntry[src]

impl Eq for SearchEntry

impl Hash for SearchEntry

impl IsA<Buildable> for SearchEntry

impl IsA<CellEditable> for SearchEntry

impl IsA<Editable> for SearchEntry

impl IsA<Entry> for SearchEntry

impl IsA<Widget> for SearchEntry

impl Ord for SearchEntry

impl<T: ObjectType> PartialEq<T> for SearchEntry

impl<T: ObjectType> PartialOrd<T> for SearchEntry

impl StaticType for SearchEntry

Auto Trait Implementations

impl RefUnwindSafe for SearchEntry

impl !Send for SearchEntry

impl !Sync for SearchEntry

impl Unpin for SearchEntry

impl UnwindSafe for SearchEntry

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.