Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
SearchEntry
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 Editable
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, SearchEntry
emits the searchChanged signal which can
be used instead of the changed signal.
The previousMatch, nextMatch and stopSearch 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 SearchBar
. If that is not the case,
you can use searchEntrySetKeyCaptureWidget
to let it
capture key input from another widget.
CSS Nodes
plain code
entry.search ╰── text
GtkSearchEntry has a single CSS node with name entry that carries a .sarch style class, and the text node is a child of that.
Accessibility
GtkSearchEntry uses the GTK_ACCESSIBLE_ROLE_SEARCH_BOX
role.
Synopsis
- newtype SearchEntry = SearchEntry (ManagedPtr SearchEntry)
- class (GObject o, IsDescendantOf SearchEntry o) => IsSearchEntry o
- toSearchEntry :: (MonadIO m, IsSearchEntry o) => o -> m SearchEntry
- searchEntryGetKeyCaptureWidget :: (HasCallStack, MonadIO m, IsSearchEntry a) => a -> m Widget
- searchEntryNew :: (HasCallStack, MonadIO m) => m SearchEntry
- searchEntrySetKeyCaptureWidget :: (HasCallStack, MonadIO m, IsSearchEntry a, IsWidget b) => a -> Maybe b -> m ()
- constructSearchEntryActivatesDefault :: (IsSearchEntry o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSearchEntryActivatesDefault :: (MonadIO m, IsSearchEntry o) => o -> m Bool
- setSearchEntryActivatesDefault :: (MonadIO m, IsSearchEntry o) => o -> Bool -> m ()
- clearSearchEntryPlaceholderText :: (MonadIO m, IsSearchEntry o) => o -> m ()
- constructSearchEntryPlaceholderText :: (IsSearchEntry o, MonadIO m) => Text -> m (GValueConstruct o)
- getSearchEntryPlaceholderText :: (MonadIO m, IsSearchEntry o) => o -> m (Maybe Text)
- setSearchEntryPlaceholderText :: (MonadIO m, IsSearchEntry o) => o -> Text -> m ()
- type C_SearchEntryActivateCallback = Ptr () -> Ptr () -> IO ()
- type SearchEntryActivateCallback = IO ()
- afterSearchEntryActivate :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryActivateCallback -> m SignalHandlerId
- genClosure_SearchEntryActivate :: MonadIO m => SearchEntryActivateCallback -> m (GClosure C_SearchEntryActivateCallback)
- mk_SearchEntryActivateCallback :: C_SearchEntryActivateCallback -> IO (FunPtr C_SearchEntryActivateCallback)
- noSearchEntryActivateCallback :: Maybe SearchEntryActivateCallback
- onSearchEntryActivate :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryActivateCallback -> m SignalHandlerId
- wrap_SearchEntryActivateCallback :: SearchEntryActivateCallback -> C_SearchEntryActivateCallback
- type C_SearchEntryNextMatchCallback = Ptr () -> Ptr () -> IO ()
- type SearchEntryNextMatchCallback = IO ()
- afterSearchEntryNextMatch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryNextMatchCallback -> m SignalHandlerId
- genClosure_SearchEntryNextMatch :: MonadIO m => SearchEntryNextMatchCallback -> m (GClosure C_SearchEntryNextMatchCallback)
- mk_SearchEntryNextMatchCallback :: C_SearchEntryNextMatchCallback -> IO (FunPtr C_SearchEntryNextMatchCallback)
- noSearchEntryNextMatchCallback :: Maybe SearchEntryNextMatchCallback
- onSearchEntryNextMatch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryNextMatchCallback -> m SignalHandlerId
- wrap_SearchEntryNextMatchCallback :: SearchEntryNextMatchCallback -> C_SearchEntryNextMatchCallback
- type C_SearchEntryPreviousMatchCallback = Ptr () -> Ptr () -> IO ()
- type SearchEntryPreviousMatchCallback = IO ()
- afterSearchEntryPreviousMatch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryPreviousMatchCallback -> m SignalHandlerId
- genClosure_SearchEntryPreviousMatch :: MonadIO m => SearchEntryPreviousMatchCallback -> m (GClosure C_SearchEntryPreviousMatchCallback)
- mk_SearchEntryPreviousMatchCallback :: C_SearchEntryPreviousMatchCallback -> IO (FunPtr C_SearchEntryPreviousMatchCallback)
- noSearchEntryPreviousMatchCallback :: Maybe SearchEntryPreviousMatchCallback
- onSearchEntryPreviousMatch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryPreviousMatchCallback -> m SignalHandlerId
- wrap_SearchEntryPreviousMatchCallback :: SearchEntryPreviousMatchCallback -> C_SearchEntryPreviousMatchCallback
- type C_SearchEntrySearchChangedCallback = Ptr () -> Ptr () -> IO ()
- type SearchEntrySearchChangedCallback = IO ()
- afterSearchEntrySearchChanged :: (IsSearchEntry a, MonadIO m) => a -> SearchEntrySearchChangedCallback -> m SignalHandlerId
- genClosure_SearchEntrySearchChanged :: MonadIO m => SearchEntrySearchChangedCallback -> m (GClosure C_SearchEntrySearchChangedCallback)
- mk_SearchEntrySearchChangedCallback :: C_SearchEntrySearchChangedCallback -> IO (FunPtr C_SearchEntrySearchChangedCallback)
- noSearchEntrySearchChangedCallback :: Maybe SearchEntrySearchChangedCallback
- onSearchEntrySearchChanged :: (IsSearchEntry a, MonadIO m) => a -> SearchEntrySearchChangedCallback -> m SignalHandlerId
- wrap_SearchEntrySearchChangedCallback :: SearchEntrySearchChangedCallback -> C_SearchEntrySearchChangedCallback
- type C_SearchEntrySearchStartedCallback = Ptr () -> Ptr () -> IO ()
- type SearchEntrySearchStartedCallback = IO ()
- afterSearchEntrySearchStarted :: (IsSearchEntry a, MonadIO m) => a -> SearchEntrySearchStartedCallback -> m SignalHandlerId
- genClosure_SearchEntrySearchStarted :: MonadIO m => SearchEntrySearchStartedCallback -> m (GClosure C_SearchEntrySearchStartedCallback)
- mk_SearchEntrySearchStartedCallback :: C_SearchEntrySearchStartedCallback -> IO (FunPtr C_SearchEntrySearchStartedCallback)
- noSearchEntrySearchStartedCallback :: Maybe SearchEntrySearchStartedCallback
- onSearchEntrySearchStarted :: (IsSearchEntry a, MonadIO m) => a -> SearchEntrySearchStartedCallback -> m SignalHandlerId
- wrap_SearchEntrySearchStartedCallback :: SearchEntrySearchStartedCallback -> C_SearchEntrySearchStartedCallback
- type C_SearchEntryStopSearchCallback = Ptr () -> Ptr () -> IO ()
- type SearchEntryStopSearchCallback = IO ()
- afterSearchEntryStopSearch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryStopSearchCallback -> m SignalHandlerId
- genClosure_SearchEntryStopSearch :: MonadIO m => SearchEntryStopSearchCallback -> m (GClosure C_SearchEntryStopSearchCallback)
- mk_SearchEntryStopSearchCallback :: C_SearchEntryStopSearchCallback -> IO (FunPtr C_SearchEntryStopSearchCallback)
- noSearchEntryStopSearchCallback :: Maybe SearchEntryStopSearchCallback
- onSearchEntryStopSearch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryStopSearchCallback -> m SignalHandlerId
- wrap_SearchEntryStopSearchCallback :: SearchEntryStopSearchCallback -> C_SearchEntryStopSearchCallback
Exported types
newtype SearchEntry Source #
Memory-managed wrapper type.
SearchEntry (ManagedPtr SearchEntry) |
Instances
Eq SearchEntry Source # | |
Defined in GI.Gtk.Objects.SearchEntry (==) :: SearchEntry -> SearchEntry -> Bool # (/=) :: SearchEntry -> SearchEntry -> Bool # | |
GObject SearchEntry Source # | |
Defined in GI.Gtk.Objects.SearchEntry | |
ManagedPtrNewtype SearchEntry Source # | |
Defined in GI.Gtk.Objects.SearchEntry toManagedPtr :: SearchEntry -> ManagedPtr SearchEntry | |
TypedObject SearchEntry Source # | |
Defined in GI.Gtk.Objects.SearchEntry | |
HasParentTypes SearchEntry Source # | |
Defined in GI.Gtk.Objects.SearchEntry | |
IsGValue (Maybe SearchEntry) Source # | Convert |
Defined in GI.Gtk.Objects.SearchEntry gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe SearchEntry -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe SearchEntry) | |
type ParentTypes SearchEntry Source # | |
Defined in GI.Gtk.Objects.SearchEntry |
class (GObject o, IsDescendantOf SearchEntry o) => IsSearchEntry o Source #
Type class for types which can be safely cast to SearchEntry
, for instance with toSearchEntry
.
Instances
(GObject o, IsDescendantOf SearchEntry o) => IsSearchEntry o Source # | |
Defined in GI.Gtk.Objects.SearchEntry |
toSearchEntry :: (MonadIO m, IsSearchEntry o) => o -> m SearchEntry Source #
Cast to SearchEntry
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, deleteSelection, deleteText, dragCheckThreshold, errorBell, finishDelegate, forceFloating, freezeNotify, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initDelegate, initTemplate, insertActionGroup, insertAfter, insertBefore, insertText, isAncestor, isDrawable, isFloating, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, selectRegion, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleRole, getAlignment, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBuildableId, getCanFocus, getCanTarget, getChars, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDelegate, getDirection, getDisplay, getEditable, getEnableUndo, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getKeyCaptureWidget, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getMaxWidthChars, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPosition, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSelectionBounds, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getTemplateChild, getText, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth, getWidthChars.
Setters
setAlignment, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDirection, setEditable, setEnableUndo, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setKeyCaptureWidget, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setMaxWidthChars, setName, setOpacity, setOverflow, setParent, setPosition, setProperty, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setText, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthChars.
getKeyCaptureWidget
searchEntryGetKeyCaptureWidget Source #
:: (HasCallStack, MonadIO m, IsSearchEntry a) | |
=> a |
|
-> m Widget | Returns: The key capture widget. |
Gets the widget that entry
is capturing key events from.
new
:: (HasCallStack, MonadIO m) | |
=> m SearchEntry | Returns: a new |
Creates a SearchEntry
, with a find icon when the search field is
empty, and a clear icon when it isn't.
setKeyCaptureWidget
searchEntrySetKeyCaptureWidget Source #
:: (HasCallStack, MonadIO m, IsSearchEntry a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets widget
as the widget that entry
will capture key events from.
Key events are consumed by the search entry to start or continue a search.
If the entry is part of a SearchBar
, it is preferable
to call searchBarSetKeyCaptureWidget
instead, which
will reveal the entry in addition to triggering the search entry.
Properties
activatesDefault
No description available in the introspection data.
constructSearchEntryActivatesDefault :: (IsSearchEntry o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “activates-default
” property. This is rarely needed directly, but it is used by new
.
getSearchEntryActivatesDefault :: (MonadIO m, IsSearchEntry o) => o -> m Bool Source #
Get the value of the “activates-default
” property.
When overloading is enabled, this is equivalent to
get
searchEntry #activatesDefault
setSearchEntryActivatesDefault :: (MonadIO m, IsSearchEntry o) => o -> Bool -> m () Source #
Set the value of the “activates-default
” property.
When overloading is enabled, this is equivalent to
set
searchEntry [ #activatesDefault:=
value ]
placeholderText
No description available in the introspection data.
clearSearchEntryPlaceholderText :: (MonadIO m, IsSearchEntry o) => o -> m () Source #
Set the value of the “placeholder-text
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#placeholderText
constructSearchEntryPlaceholderText :: (IsSearchEntry o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “placeholder-text
” property. This is rarely needed directly, but it is used by new
.
getSearchEntryPlaceholderText :: (MonadIO m, IsSearchEntry o) => o -> m (Maybe Text) Source #
Get the value of the “placeholder-text
” property.
When overloading is enabled, this is equivalent to
get
searchEntry #placeholderText
setSearchEntryPlaceholderText :: (MonadIO m, IsSearchEntry o) => o -> Text -> m () Source #
Set the value of the “placeholder-text
” property.
When overloading is enabled, this is equivalent to
set
searchEntry [ #placeholderText:=
value ]
Signals
activate
type C_SearchEntryActivateCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SearchEntryActivateCallback = IO () Source #
afterSearchEntryActivate :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryActivateCallback -> m SignalHandlerId Source #
Connect a signal handler for the activate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
searchEntry #activate callback
genClosure_SearchEntryActivate :: MonadIO m => SearchEntryActivateCallback -> m (GClosure C_SearchEntryActivateCallback) Source #
Wrap the callback into a GClosure
.
mk_SearchEntryActivateCallback :: C_SearchEntryActivateCallback -> IO (FunPtr C_SearchEntryActivateCallback) Source #
Generate a function pointer callable from C code, from a C_SearchEntryActivateCallback
.
noSearchEntryActivateCallback :: Maybe SearchEntryActivateCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SearchEntryActivateCallback
onSearchEntryActivate :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryActivateCallback -> m SignalHandlerId Source #
Connect a signal handler for the activate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
searchEntry #activate callback
wrap_SearchEntryActivateCallback :: SearchEntryActivateCallback -> C_SearchEntryActivateCallback Source #
Wrap a SearchEntryActivateCallback
into a C_SearchEntryActivateCallback
.
nextMatch
type C_SearchEntryNextMatchCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SearchEntryNextMatchCallback = IO () Source #
The nextMatch signal is a [keybinding signal][GtkSignalAction] which gets emitted when the user initiates a move to the next match for the current search string.
Applications should connect to it, to implement moving between matches.
The default bindings for this signal is Ctrl-g.
afterSearchEntryNextMatch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryNextMatchCallback -> m SignalHandlerId Source #
Connect a signal handler for the nextMatch signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
searchEntry #nextMatch callback
genClosure_SearchEntryNextMatch :: MonadIO m => SearchEntryNextMatchCallback -> m (GClosure C_SearchEntryNextMatchCallback) Source #
Wrap the callback into a GClosure
.
mk_SearchEntryNextMatchCallback :: C_SearchEntryNextMatchCallback -> IO (FunPtr C_SearchEntryNextMatchCallback) Source #
Generate a function pointer callable from C code, from a C_SearchEntryNextMatchCallback
.
noSearchEntryNextMatchCallback :: Maybe SearchEntryNextMatchCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SearchEntryNextMatchCallback
onSearchEntryNextMatch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryNextMatchCallback -> m SignalHandlerId Source #
Connect a signal handler for the nextMatch signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
searchEntry #nextMatch callback
wrap_SearchEntryNextMatchCallback :: SearchEntryNextMatchCallback -> C_SearchEntryNextMatchCallback Source #
Wrap a SearchEntryNextMatchCallback
into a C_SearchEntryNextMatchCallback
.
previousMatch
type C_SearchEntryPreviousMatchCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SearchEntryPreviousMatchCallback = IO () Source #
The previousMatch signal is a [keybinding signal][GtkSignalAction] which gets emitted when the user initiates a move to the previous match for the current search string.
Applications should connect to it, to implement moving between matches.
The default bindings for this signal is Ctrl-Shift-g.
afterSearchEntryPreviousMatch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryPreviousMatchCallback -> m SignalHandlerId Source #
Connect a signal handler for the previousMatch signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
searchEntry #previousMatch callback
genClosure_SearchEntryPreviousMatch :: MonadIO m => SearchEntryPreviousMatchCallback -> m (GClosure C_SearchEntryPreviousMatchCallback) Source #
Wrap the callback into a GClosure
.
mk_SearchEntryPreviousMatchCallback :: C_SearchEntryPreviousMatchCallback -> IO (FunPtr C_SearchEntryPreviousMatchCallback) Source #
Generate a function pointer callable from C code, from a C_SearchEntryPreviousMatchCallback
.
noSearchEntryPreviousMatchCallback :: Maybe SearchEntryPreviousMatchCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SearchEntryPreviousMatchCallback
onSearchEntryPreviousMatch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryPreviousMatchCallback -> m SignalHandlerId Source #
Connect a signal handler for the previousMatch signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
searchEntry #previousMatch callback
wrap_SearchEntryPreviousMatchCallback :: SearchEntryPreviousMatchCallback -> C_SearchEntryPreviousMatchCallback Source #
searchChanged
type C_SearchEntrySearchChangedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SearchEntrySearchChangedCallback = IO () Source #
The searchChanged signal is emitted with a short delay of 150 milliseconds after the last change to the entry text.
afterSearchEntrySearchChanged :: (IsSearchEntry a, MonadIO m) => a -> SearchEntrySearchChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the searchChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
searchEntry #searchChanged callback
genClosure_SearchEntrySearchChanged :: MonadIO m => SearchEntrySearchChangedCallback -> m (GClosure C_SearchEntrySearchChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_SearchEntrySearchChangedCallback :: C_SearchEntrySearchChangedCallback -> IO (FunPtr C_SearchEntrySearchChangedCallback) Source #
Generate a function pointer callable from C code, from a C_SearchEntrySearchChangedCallback
.
noSearchEntrySearchChangedCallback :: Maybe SearchEntrySearchChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SearchEntrySearchChangedCallback
onSearchEntrySearchChanged :: (IsSearchEntry a, MonadIO m) => a -> SearchEntrySearchChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the searchChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
searchEntry #searchChanged callback
wrap_SearchEntrySearchChangedCallback :: SearchEntrySearchChangedCallback -> C_SearchEntrySearchChangedCallback Source #
searchStarted
type C_SearchEntrySearchStartedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SearchEntrySearchStartedCallback = IO () Source #
The searchStarted signal gets emitted when the user initiated a search on the entry.
afterSearchEntrySearchStarted :: (IsSearchEntry a, MonadIO m) => a -> SearchEntrySearchStartedCallback -> m SignalHandlerId Source #
Connect a signal handler for the searchStarted signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
searchEntry #searchStarted callback
genClosure_SearchEntrySearchStarted :: MonadIO m => SearchEntrySearchStartedCallback -> m (GClosure C_SearchEntrySearchStartedCallback) Source #
Wrap the callback into a GClosure
.
mk_SearchEntrySearchStartedCallback :: C_SearchEntrySearchStartedCallback -> IO (FunPtr C_SearchEntrySearchStartedCallback) Source #
Generate a function pointer callable from C code, from a C_SearchEntrySearchStartedCallback
.
noSearchEntrySearchStartedCallback :: Maybe SearchEntrySearchStartedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SearchEntrySearchStartedCallback
onSearchEntrySearchStarted :: (IsSearchEntry a, MonadIO m) => a -> SearchEntrySearchStartedCallback -> m SignalHandlerId Source #
Connect a signal handler for the searchStarted signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
searchEntry #searchStarted callback
wrap_SearchEntrySearchStartedCallback :: SearchEntrySearchStartedCallback -> C_SearchEntrySearchStartedCallback Source #
stopSearch
type C_SearchEntryStopSearchCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type SearchEntryStopSearchCallback = IO () Source #
The stopSearch signal is a [keybinding signal][GtkSignalAction] which gets emitted when the user stops a search via keyboard input.
Applications should connect to it, to implement hiding the search entry in this case.
The default bindings for this signal is Escape.
afterSearchEntryStopSearch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryStopSearchCallback -> m SignalHandlerId Source #
Connect a signal handler for the stopSearch signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
searchEntry #stopSearch callback
genClosure_SearchEntryStopSearch :: MonadIO m => SearchEntryStopSearchCallback -> m (GClosure C_SearchEntryStopSearchCallback) Source #
Wrap the callback into a GClosure
.
mk_SearchEntryStopSearchCallback :: C_SearchEntryStopSearchCallback -> IO (FunPtr C_SearchEntryStopSearchCallback) Source #
Generate a function pointer callable from C code, from a C_SearchEntryStopSearchCallback
.
noSearchEntryStopSearchCallback :: Maybe SearchEntryStopSearchCallback Source #
A convenience synonym for
.Nothing
:: Maybe
SearchEntryStopSearchCallback
onSearchEntryStopSearch :: (IsSearchEntry a, MonadIO m) => a -> SearchEntryStopSearchCallback -> m SignalHandlerId Source #
Connect a signal handler for the stopSearch signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
searchEntry #stopSearch callback