SearchBar


Object Hierarchy:

Hdy.SearchBar Hdy.SearchBar Hdy.SearchBar Gtk.Bin Gtk.Bin Gtk.Bin->Hdy.SearchBar Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Hdy.SearchBar Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Hdy.SearchBar Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget

Description:

[ CCode ( type_id = "hdy_search_bar_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public class SearchBar : Bin, Implementor, Buildable

A toolbar to integrate a search entry with.

`HdySearchBar` is a container made to have a search entry (possibly with additional connex widgets, such as drop-down menus, or buttons) built-in. The search bar would appear when a search is started through typing on the keyboard, or the application’s search mode is toggled on.

For keyboard presses to start a search, events will need to be forwarded from the top-level window that contains the search bar. See [ method@SearchBar.handle_event] for example code. Common shortcuts such as <kbd>Ctrl</kbd>+<kbd>F</kbd> should be handled as an application action, or through the menu items.

You will also need to tell the search bar about which entry you are using as your search entry using [method@SearchBar.connect_entry]. The following example shows you how to create a more complex search entry.

`HdySearchBar` is very similar to [class@Gtk.SearchBar], the main difference being that it allows the search entry to fill all the available space. This allows you to control your search entry's width with a [class@Clamp].

CSS nodes

`HdySearchBar` has a single CSS node with name `searchbar`.


Namespace: Hdy
Package: libhandy-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor