SearchEntryRef
public struct SearchEntryRef : SearchEntryProtocol, GWeakCapturing
GtkSearchEntry is an entry widget that has been tailored for use
as a search entry.
The main API for interacting with a GtkSearchEntry as entry
is the GtkEditable interface.

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.
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, GtkSearchEntry
emits the [signalGtk.SearchEntry::search-changed] signal which
can be used instead of the [signalGtk.Editable::changed] signal.
The [signalGtk.SearchEntry::previous-match],
[signalGtk.SearchEntry::next-match] and
[signalGtk.SearchEntry::stop-search] signals can be used to
implement moving between search results and ending the search.
Often, GtkSearchEntry will be fed events by means of being
placed inside a [classGtk.SearchBar]. If that is not the case,
you can use [methodGtk.SearchEntry.set_key_capture_widget] to
let it capture key input from another widget.
GtkSearchEntry provides only minimal API and should be used with
the [ifaceGtk.Editable] API.
CSS Nodes
entry.search
╰── text
GtkSearchEntry has a single CSS node with name entry that carries
a .search style class, and the text node is a child of that.
Accessibility
GtkSearchEntry uses the GTK_ACCESSIBLE_ROLE_SEARCH_BOX role.
The SearchEntryRef type acts as a lightweight Swift reference to an underlying GtkSearchEntry instance.
It exposes methods that can operate on this data type through SearchEntryProtocol conformance.
Use SearchEntryRef only as an unowned reference to an existing GtkSearchEntry instance.
-
Untyped pointer to the underlying `GtkSearchEntry` instance.For type-safe access, use the generated, typed pointer
search_entry_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkSearchEntry>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkSearchEntry>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkSearchEntry>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkSearchEntry>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
SearchEntryProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : SearchEntryProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> SearchEntryRef where T : SearchEntryProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SearchEntryProtocol.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>) -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SearchEntryProtocol.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SearchEntryProtocol.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SearchEntryProtocol.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SearchEntryProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Creates a
GtkSearchEntry.Declaration
Swift
@inlinable init()
View on GitHub
Install in Dash
SearchEntryRef Structure Reference