Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
A toolbar is created with a call to toolbarNew
.
A toolbar can contain instances of a subclass of ToolItem
. To add
a ToolItem
to the a toolbar, use toolbarInsert
. To remove
an item from the toolbar use containerRemove
. To add a button
to the toolbar, add an instance of ToolButton
.
Toolbar items can be visually grouped by adding instances of
SeparatorToolItem
to the toolbar. If the GtkToolbar child property
“expand” is TRUE
and the property SeparatorToolItem
:draw
is set to
FALSE
, the effect is to force all following items to the end of the toolbar.
By default, a toolbar can be shrunk, upon which it will add an arrow button
to show an overflow menu offering access to any ToolItem
child that has
a proxy menu item. To disable this and request enough size for all children,
call toolbarSetShowArrow
to set Toolbar
:show-arrow
to False
.
Creating a context menu for the toolbar can be done by connecting to
the Toolbar
::popup-context-menu
signal.
CSS nodes
GtkToolbar has a single CSS node with name toolbar.
Synopsis
- newtype Toolbar = Toolbar (ManagedPtr Toolbar)
- class (GObject o, IsDescendantOf Toolbar o) => IsToolbar o
- toToolbar :: (MonadIO m, IsToolbar o) => o -> m Toolbar
- noToolbar :: Maybe Toolbar
- toolbarGetDropIndex :: (HasCallStack, MonadIO m, IsToolbar a) => a -> Int32 -> Int32 -> m Int32
- toolbarGetIconSize :: (HasCallStack, MonadIO m, IsToolbar a) => a -> m IconSize
- toolbarGetItemIndex :: (HasCallStack, MonadIO m, IsToolbar a, IsToolItem b) => a -> b -> m Int32
- toolbarGetNItems :: (HasCallStack, MonadIO m, IsToolbar a) => a -> m Int32
- toolbarGetNthItem :: (HasCallStack, MonadIO m, IsToolbar a) => a -> Int32 -> m (Maybe ToolItem)
- toolbarGetReliefStyle :: (HasCallStack, MonadIO m, IsToolbar a) => a -> m ReliefStyle
- toolbarGetShowArrow :: (HasCallStack, MonadIO m, IsToolbar a) => a -> m Bool
- toolbarGetStyle :: (HasCallStack, MonadIO m, IsToolbar a) => a -> m ToolbarStyle
- toolbarInsert :: (HasCallStack, MonadIO m, IsToolbar a, IsToolItem b) => a -> b -> Int32 -> m ()
- toolbarNew :: (HasCallStack, MonadIO m) => m Toolbar
- toolbarSetDropHighlightItem :: (HasCallStack, MonadIO m, IsToolbar a, IsToolItem b) => a -> Maybe b -> Int32 -> m ()
- toolbarSetIconSize :: (HasCallStack, MonadIO m, IsToolbar a) => a -> IconSize -> m ()
- toolbarSetShowArrow :: (HasCallStack, MonadIO m, IsToolbar a) => a -> Bool -> m ()
- toolbarSetStyle :: (HasCallStack, MonadIO m, IsToolbar a) => a -> ToolbarStyle -> m ()
- toolbarUnsetIconSize :: (HasCallStack, MonadIO m, IsToolbar a) => a -> m ()
- toolbarUnsetStyle :: (HasCallStack, MonadIO m, IsToolbar a) => a -> m ()
- constructToolbarIconSize :: IsToolbar o => IconSize -> IO (GValueConstruct o)
- getToolbarIconSize :: (MonadIO m, IsToolbar o) => o -> m IconSize
- setToolbarIconSize :: (MonadIO m, IsToolbar o) => o -> IconSize -> m ()
- constructToolbarIconSizeSet :: IsToolbar o => Bool -> IO (GValueConstruct o)
- getToolbarIconSizeSet :: (MonadIO m, IsToolbar o) => o -> m Bool
- setToolbarIconSizeSet :: (MonadIO m, IsToolbar o) => o -> Bool -> m ()
- constructToolbarShowArrow :: IsToolbar o => Bool -> IO (GValueConstruct o)
- getToolbarShowArrow :: (MonadIO m, IsToolbar o) => o -> m Bool
- setToolbarShowArrow :: (MonadIO m, IsToolbar o) => o -> Bool -> m ()
- constructToolbarToolbarStyle :: IsToolbar o => ToolbarStyle -> IO (GValueConstruct o)
- getToolbarToolbarStyle :: (MonadIO m, IsToolbar o) => o -> m ToolbarStyle
- setToolbarToolbarStyle :: (MonadIO m, IsToolbar o) => o -> ToolbarStyle -> m ()
- type C_ToolbarFocusHomeOrEndCallback = Ptr () -> CInt -> Ptr () -> IO CInt
- type ToolbarFocusHomeOrEndCallback = Bool -> IO Bool
- afterToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ToolbarFocusHomeOrEndCallback -> m SignalHandlerId
- genClosure_ToolbarFocusHomeOrEnd :: MonadIO m => ToolbarFocusHomeOrEndCallback -> m (GClosure C_ToolbarFocusHomeOrEndCallback)
- mk_ToolbarFocusHomeOrEndCallback :: C_ToolbarFocusHomeOrEndCallback -> IO (FunPtr C_ToolbarFocusHomeOrEndCallback)
- noToolbarFocusHomeOrEndCallback :: Maybe ToolbarFocusHomeOrEndCallback
- onToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ToolbarFocusHomeOrEndCallback -> m SignalHandlerId
- wrap_ToolbarFocusHomeOrEndCallback :: ToolbarFocusHomeOrEndCallback -> C_ToolbarFocusHomeOrEndCallback
- type C_ToolbarOrientationChangedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type ToolbarOrientationChangedCallback = Orientation -> IO ()
- afterToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarOrientationChangedCallback -> m SignalHandlerId
- genClosure_ToolbarOrientationChanged :: MonadIO m => ToolbarOrientationChangedCallback -> m (GClosure C_ToolbarOrientationChangedCallback)
- mk_ToolbarOrientationChangedCallback :: C_ToolbarOrientationChangedCallback -> IO (FunPtr C_ToolbarOrientationChangedCallback)
- noToolbarOrientationChangedCallback :: Maybe ToolbarOrientationChangedCallback
- onToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarOrientationChangedCallback -> m SignalHandlerId
- wrap_ToolbarOrientationChangedCallback :: ToolbarOrientationChangedCallback -> C_ToolbarOrientationChangedCallback
- type C_ToolbarPopupContextMenuCallback = Ptr () -> Int32 -> Int32 -> Int32 -> Ptr () -> IO CInt
- type ToolbarPopupContextMenuCallback = Int32 -> Int32 -> Int32 -> IO Bool
- afterToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ToolbarPopupContextMenuCallback -> m SignalHandlerId
- genClosure_ToolbarPopupContextMenu :: MonadIO m => ToolbarPopupContextMenuCallback -> m (GClosure C_ToolbarPopupContextMenuCallback)
- mk_ToolbarPopupContextMenuCallback :: C_ToolbarPopupContextMenuCallback -> IO (FunPtr C_ToolbarPopupContextMenuCallback)
- noToolbarPopupContextMenuCallback :: Maybe ToolbarPopupContextMenuCallback
- onToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ToolbarPopupContextMenuCallback -> m SignalHandlerId
- wrap_ToolbarPopupContextMenuCallback :: ToolbarPopupContextMenuCallback -> C_ToolbarPopupContextMenuCallback
- type C_ToolbarStyleChangedCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type ToolbarStyleChangedCallback = ToolbarStyle -> IO ()
- afterToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarStyleChangedCallback -> m SignalHandlerId
- genClosure_ToolbarStyleChanged :: MonadIO m => ToolbarStyleChangedCallback -> m (GClosure C_ToolbarStyleChangedCallback)
- mk_ToolbarStyleChangedCallback :: C_ToolbarStyleChangedCallback -> IO (FunPtr C_ToolbarStyleChangedCallback)
- noToolbarStyleChangedCallback :: Maybe ToolbarStyleChangedCallback
- onToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarStyleChangedCallback -> m SignalHandlerId
- wrap_ToolbarStyleChangedCallback :: ToolbarStyleChangedCallback -> C_ToolbarStyleChangedCallback
Exported types
Memory-managed wrapper type.
Instances
GObject Toolbar Source # | |
Defined in GI.Gtk.Objects.Toolbar gobjectType :: IO GType # | |
HasParentTypes Toolbar Source # | |
Defined in GI.Gtk.Objects.Toolbar | |
type ParentTypes Toolbar Source # | |
Defined in GI.Gtk.Objects.Toolbar type ParentTypes Toolbar = Container ': (Widget ': (Object ': (ImplementorIface ': (Buildable ': (Orientable ': (ToolShell ': ([] :: [Type]))))))) |
class (GObject o, IsDescendantOf Toolbar o) => IsToolbar o Source #
Instances
(GObject o, IsDescendantOf Toolbar o) => IsToolbar o Source # | |
Defined in GI.Gtk.Objects.Toolbar |
Methods
getDropIndex
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Int32 | Returns: The position corresponding to the point ( |
Returns the position corresponding to the indicated point on
toolbar
. This is useful when dragging items to the toolbar:
this function returns the position a new item should be
inserted.
x
and y
are in toolbar
coordinates.
Since: 2.4
getIconSize
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> m IconSize | Returns: the current icon size for the icons on the toolbar. |
Retrieves the icon size for the toolbar. See toolbarSetIconSize
.
getItemIndex
:: (HasCallStack, MonadIO m, IsToolbar a, IsToolItem b) | |
=> a |
|
-> b |
|
-> m Int32 | Returns: the position of item on the toolbar. |
Returns the position of item
on the toolbar, starting from 0.
It is an error if item
is not a child of the toolbar.
Since: 2.4
getNItems
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> m Int32 | Returns: the number of items on the toolbar |
Returns the number of items on the toolbar.
Since: 2.4
getNthItem
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> Int32 |
|
-> m (Maybe ToolItem) | Returns: The |
Returns the n
'th item on toolbar
, or Nothing
if the
toolbar does not contain an n
'th item.
Since: 2.4
getReliefStyle
toolbarGetReliefStyle Source #
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> m ReliefStyle | Returns: The relief style of buttons on |
Returns the relief style of buttons on toolbar
. See
buttonSetRelief
.
Since: 2.4
getShowArrow
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the toolbar has an overflow menu.
See toolbarSetShowArrow
.
Since: 2.4
getStyle
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> m ToolbarStyle | Returns: the current style of |
Retrieves whether the toolbar has text, icons, or both . See
toolbarSetStyle
.
insert
:: (HasCallStack, MonadIO m, IsToolbar a, IsToolItem b) | |
=> a |
|
-> b |
|
-> Int32 |
|
-> m () |
Insert a ToolItem
into the toolbar at position pos
. If pos
is
0 the item is prepended to the start of the toolbar. If pos
is
negative, the item is appended to the end of the toolbar.
Since: 2.4
new
:: (HasCallStack, MonadIO m) | |
=> m Toolbar | Returns: the newly-created toolbar. |
Creates a new toolbar.
setDropHighlightItem
toolbarSetDropHighlightItem Source #
:: (HasCallStack, MonadIO m, IsToolbar a, IsToolItem b) | |
=> a |
|
-> Maybe b | |
-> Int32 |
|
-> m () |
Highlights toolbar
to give an idea of what it would look like
if item
was added to toolbar
at the position indicated by index_
.
If item
is Nothing
, highlighting is turned off. In that case index_
is ignored.
The toolItem
passed to this function must not be part of any widget
hierarchy. When an item is set as drop highlight item it can not
added to any widget hierarchy or used as highlight item for another
toolbar.
Since: 2.4
setIconSize
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> IconSize |
|
-> m () |
This function sets the size of stock icons in the toolbar. You can call it both before you add the icons and after they’ve been added. The size you set will override user preferences for the default icon size.
This should only be used for special-purpose toolbars, normal application toolbars should respect the user preferences for the size of icons.
setShowArrow
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether to show an overflow menu when toolbar
isn’t allocated enough
size to show all of its items. If True
, items which can’t fit in toolbar
,
and which have a proxy menu item set by toolItemSetProxyMenuItem
or ToolItem
::create-menu-proxy
, will be available in an overflow menu,
which can be opened by an added arrow button. If False
, toolbar
will
request enough size to fit all of its child items without any overflow.
Since: 2.4
setStyle
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> ToolbarStyle |
|
-> m () |
Alters the view of toolbar
to display either icons only, text only, or both.
unsetIconSize
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> m () |
Unsets toolbar icon size set with toolbarSetIconSize
, so that
user preferences will be used to determine the icon size.
unsetStyle
:: (HasCallStack, MonadIO m, IsToolbar a) | |
=> a |
|
-> m () |
Unsets a toolbar style set with toolbarSetStyle
, so that
user preferences will be used to determine the toolbar style.
Properties
iconSize
The size of the icons in a toolbar is normally determined by the toolbar-icon-size setting. When this property is set, it overrides the setting.
This should only be used for special-purpose toolbars, normal application toolbars should respect the user preferences for the size of icons.
Since: 2.10
constructToolbarIconSize :: IsToolbar o => IconSize -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “icon-size
” property. This is rarely needed directly, but it is used by new
.
getToolbarIconSize :: (MonadIO m, IsToolbar o) => o -> m IconSize Source #
Get the value of the “icon-size
” property.
When overloading is enabled, this is equivalent to
get
toolbar #iconSize
setToolbarIconSize :: (MonadIO m, IsToolbar o) => o -> IconSize -> m () Source #
Set the value of the “icon-size
” property.
When overloading is enabled, this is equivalent to
set
toolbar [ #iconSize:=
value ]
iconSizeSet
Is True
if the icon-size property has been set.
Since: 2.10
constructToolbarIconSizeSet :: IsToolbar o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “icon-size-set
” property. This is rarely needed directly, but it is used by new
.
getToolbarIconSizeSet :: (MonadIO m, IsToolbar o) => o -> m Bool Source #
Get the value of the “icon-size-set
” property.
When overloading is enabled, this is equivalent to
get
toolbar #iconSizeSet
setToolbarIconSizeSet :: (MonadIO m, IsToolbar o) => o -> Bool -> m () Source #
Set the value of the “icon-size-set
” property.
When overloading is enabled, this is equivalent to
set
toolbar [ #iconSizeSet:=
value ]
showArrow
No description available in the introspection data.
constructToolbarShowArrow :: IsToolbar o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-arrow
” property. This is rarely needed directly, but it is used by new
.
getToolbarShowArrow :: (MonadIO m, IsToolbar o) => o -> m Bool Source #
Get the value of the “show-arrow
” property.
When overloading is enabled, this is equivalent to
get
toolbar #showArrow
setToolbarShowArrow :: (MonadIO m, IsToolbar o) => o -> Bool -> m () Source #
Set the value of the “show-arrow
” property.
When overloading is enabled, this is equivalent to
set
toolbar [ #showArrow:=
value ]
toolbarStyle
No description available in the introspection data.
constructToolbarToolbarStyle :: IsToolbar o => ToolbarStyle -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “toolbar-style
” property. This is rarely needed directly, but it is used by new
.
getToolbarToolbarStyle :: (MonadIO m, IsToolbar o) => o -> m ToolbarStyle Source #
Get the value of the “toolbar-style
” property.
When overloading is enabled, this is equivalent to
get
toolbar #toolbarStyle
setToolbarToolbarStyle :: (MonadIO m, IsToolbar o) => o -> ToolbarStyle -> m () Source #
Set the value of the “toolbar-style
” property.
When overloading is enabled, this is equivalent to
set
toolbar [ #toolbarStyle:=
value ]
Signals
focusHomeOrEnd
type C_ToolbarFocusHomeOrEndCallback = Ptr () -> CInt -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type ToolbarFocusHomeOrEndCallback Source #
A keybinding signal used internally by GTK+. This signal can't be used in application code
afterToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ToolbarFocusHomeOrEndCallback -> m SignalHandlerId Source #
Connect a signal handler for the “focus-home-or-end
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
toolbar #focusHomeOrEnd callback
genClosure_ToolbarFocusHomeOrEnd :: MonadIO m => ToolbarFocusHomeOrEndCallback -> m (GClosure C_ToolbarFocusHomeOrEndCallback) Source #
Wrap the callback into a GClosure
.
mk_ToolbarFocusHomeOrEndCallback :: C_ToolbarFocusHomeOrEndCallback -> IO (FunPtr C_ToolbarFocusHomeOrEndCallback) Source #
Generate a function pointer callable from C code, from a C_ToolbarFocusHomeOrEndCallback
.
noToolbarFocusHomeOrEndCallback :: Maybe ToolbarFocusHomeOrEndCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ToolbarFocusHomeOrEndCallback
onToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ToolbarFocusHomeOrEndCallback -> m SignalHandlerId Source #
Connect a signal handler for the “focus-home-or-end
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
toolbar #focusHomeOrEnd callback
wrap_ToolbarFocusHomeOrEndCallback :: ToolbarFocusHomeOrEndCallback -> C_ToolbarFocusHomeOrEndCallback Source #
Wrap a ToolbarFocusHomeOrEndCallback
into a C_ToolbarFocusHomeOrEndCallback
.
orientationChanged
type C_ToolbarOrientationChangedCallback = Ptr () -> CUInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ToolbarOrientationChangedCallback Source #
= Orientation |
|
-> IO () |
Emitted when the orientation of the toolbar changes.
afterToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarOrientationChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “orientation-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
toolbar #orientationChanged callback
genClosure_ToolbarOrientationChanged :: MonadIO m => ToolbarOrientationChangedCallback -> m (GClosure C_ToolbarOrientationChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ToolbarOrientationChangedCallback :: C_ToolbarOrientationChangedCallback -> IO (FunPtr C_ToolbarOrientationChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ToolbarOrientationChangedCallback
.
noToolbarOrientationChangedCallback :: Maybe ToolbarOrientationChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ToolbarOrientationChangedCallback
onToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarOrientationChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “orientation-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
toolbar #orientationChanged callback
wrap_ToolbarOrientationChangedCallback :: ToolbarOrientationChangedCallback -> C_ToolbarOrientationChangedCallback Source #
popupContextMenu
type C_ToolbarPopupContextMenuCallback = Ptr () -> Int32 -> Int32 -> Int32 -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type ToolbarPopupContextMenuCallback Source #
= Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> IO Bool | Returns: return |
Emitted when the user right-clicks the toolbar or uses the keybinding to display a popup menu.
Application developers should handle this signal if they want
to display a context menu on the toolbar. The context-menu should
appear at the coordinates given by x
and y
. The mouse button
number is given by the button
parameter. If the menu was popped
up using the keybaord, button
is -1.
afterToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ToolbarPopupContextMenuCallback -> m SignalHandlerId Source #
Connect a signal handler for the “popup-context-menu
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
toolbar #popupContextMenu callback
genClosure_ToolbarPopupContextMenu :: MonadIO m => ToolbarPopupContextMenuCallback -> m (GClosure C_ToolbarPopupContextMenuCallback) Source #
Wrap the callback into a GClosure
.
mk_ToolbarPopupContextMenuCallback :: C_ToolbarPopupContextMenuCallback -> IO (FunPtr C_ToolbarPopupContextMenuCallback) Source #
Generate a function pointer callable from C code, from a C_ToolbarPopupContextMenuCallback
.
noToolbarPopupContextMenuCallback :: Maybe ToolbarPopupContextMenuCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ToolbarPopupContextMenuCallback
onToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ToolbarPopupContextMenuCallback -> m SignalHandlerId Source #
Connect a signal handler for the “popup-context-menu
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
toolbar #popupContextMenu callback
wrap_ToolbarPopupContextMenuCallback :: ToolbarPopupContextMenuCallback -> C_ToolbarPopupContextMenuCallback Source #
Wrap a ToolbarPopupContextMenuCallback
into a C_ToolbarPopupContextMenuCallback
.
styleChanged
type C_ToolbarStyleChangedCallback = Ptr () -> CUInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ToolbarStyleChangedCallback Source #
= ToolbarStyle |
|
-> IO () |
Emitted when the style of the toolbar changes.
afterToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarStyleChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “style-changed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
toolbar #styleChanged callback
genClosure_ToolbarStyleChanged :: MonadIO m => ToolbarStyleChangedCallback -> m (GClosure C_ToolbarStyleChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_ToolbarStyleChangedCallback :: C_ToolbarStyleChangedCallback -> IO (FunPtr C_ToolbarStyleChangedCallback) Source #
Generate a function pointer callable from C code, from a C_ToolbarStyleChangedCallback
.
noToolbarStyleChangedCallback :: Maybe ToolbarStyleChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
ToolbarStyleChangedCallback
onToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ToolbarStyleChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “style-changed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
toolbar #styleChanged callback