| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Gtk.Objects.Toolbar
Description
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:showArrow to False.
Creating a context menu for the toolbar can be done by connecting to the Toolbar::popupContextMenu 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
- 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, MonadIO m) => IconSize -> m (GValueConstruct o)
- getToolbarIconSize :: (MonadIO m, IsToolbar o) => o -> m IconSize
- setToolbarIconSize :: (MonadIO m, IsToolbar o) => o -> IconSize -> m ()
- constructToolbarIconSizeSet :: (IsToolbar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getToolbarIconSizeSet :: (MonadIO m, IsToolbar o) => o -> m Bool
- setToolbarIconSizeSet :: (MonadIO m, IsToolbar o) => o -> Bool -> m ()
- constructToolbarShowArrow :: (IsToolbar o, MonadIO m) => Bool -> m (GValueConstruct o)
- getToolbarShowArrow :: (MonadIO m, IsToolbar o) => o -> m Bool
- setToolbarShowArrow :: (MonadIO m, IsToolbar o) => o -> Bool -> m ()
- constructToolbarToolbarStyle :: (IsToolbar o, MonadIO m) => ToolbarStyle -> m (GValueConstruct o)
- getToolbarToolbarStyle :: (MonadIO m, IsToolbar o) => o -> m ToolbarStyle
- setToolbarToolbarStyle :: (MonadIO m, IsToolbar o) => o -> ToolbarStyle -> m ()
- type ToolbarFocusHomeOrEndCallback = Bool -> IO Bool
- afterToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarFocusHomeOrEndCallback) -> m SignalHandlerId
- onToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarFocusHomeOrEndCallback) -> m SignalHandlerId
- type ToolbarOrientationChangedCallback = Orientation -> IO ()
- afterToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarOrientationChangedCallback) -> m SignalHandlerId
- onToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarOrientationChangedCallback) -> m SignalHandlerId
- type ToolbarPopupContextMenuCallback = Int32 -> Int32 -> Int32 -> IO Bool
- afterToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarPopupContextMenuCallback) -> m SignalHandlerId
- onToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarPopupContextMenuCallback) -> m SignalHandlerId
- type ToolbarStyleChangedCallback = ToolbarStyle -> IO ()
- afterToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarStyleChangedCallback) -> m SignalHandlerId
- onToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarStyleChangedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
| Eq Toolbar Source # | |
| GObject Toolbar Source # | |
Defined in GI.Gtk.Objects.Toolbar | |
| ManagedPtrNewtype Toolbar Source # | |
Defined in GI.Gtk.Objects.Toolbar Methods toManagedPtr :: Toolbar -> ManagedPtr Toolbar | |
| TypedObject Toolbar Source # | |
Defined in GI.Gtk.Objects.Toolbar | |
| HasParentTypes Toolbar Source # | |
Defined in GI.Gtk.Objects.Toolbar | |
| IsGValue (Maybe Toolbar) Source # | Convert |
Defined in GI.Gtk.Objects.Toolbar Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Toolbar -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Toolbar) | |
| type ParentTypes Toolbar Source # | |
Defined in GI.Gtk.Objects.Toolbar | |
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
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insert, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, rebuildMenu, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetIconSize, unsetStateFlags, unsetStyle, watchClosure.
Getters
getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getDropIndex, getEllipsizeMode, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getIconSize, getInternalChild, getItemIndex, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getNItems, getName, getNoShowAll, getNthItem, getOpacity, getOrientation, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getReliefStyle, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getShowArrow, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTextAlignment, getTextOrientation, getTextSizeGroup, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setDropHighlightItem, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setIconSize, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setOrientation, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSensitive, setShowArrow, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
getDropIndex
Arguments
| :: (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
Arguments
| :: (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
Arguments
| :: (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
Arguments
| :: (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
Arguments
| :: (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 #
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m, IsToolbar a) | |
| => a |
|
| -> m Bool | Returns: |
Returns whether the toolbar has an overflow menu.
See toolbarSetShowArrow.
Since: 2.4
getStyle
Arguments
| :: (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
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Toolbar | Returns: the newly-created toolbar. |
Creates a new toolbar.
setDropHighlightItem
toolbarSetDropHighlightItem Source #
Arguments
| :: (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
Arguments
| :: (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
Arguments
| :: (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::createMenuProxy, 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
Arguments
| :: (HasCallStack, MonadIO m, IsToolbar a) | |
| => a |
|
| -> ToolbarStyle |
|
| -> m () |
Alters the view of toolbar to display either icons only, text only, or both.
unsetIconSize
Arguments
| :: (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
Arguments
| :: (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, MonadIO m) => IconSize -> m (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
settoolbar [ #iconSize:=value ]
iconSizeSet
Is True if the icon-size property has been set.
Since: 2.10
constructToolbarIconSizeSet :: (IsToolbar o, MonadIO m) => Bool -> m (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
settoolbar [ #iconSizeSet:=value ]
showArrow
No description available in the introspection data.
constructToolbarShowArrow :: (IsToolbar o, MonadIO m) => Bool -> m (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
settoolbar [ #showArrow:=value ]
toolbarStyle
No description available in the introspection data.
constructToolbarToolbarStyle :: (IsToolbar o, MonadIO m) => ToolbarStyle -> m (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
settoolbar [ #toolbarStyle:=value ]
Signals
focusHomeOrEnd
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 -> ((?self :: a) => ToolbarFocusHomeOrEndCallback) -> m SignalHandlerId Source #
Connect a signal handler for the focusHomeOrEnd signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after toolbar #focusHomeOrEnd callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onToolbarFocusHomeOrEnd :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarFocusHomeOrEndCallback) -> m SignalHandlerId Source #
Connect a signal handler for the focusHomeOrEnd signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on toolbar #focusHomeOrEnd callback
orientationChanged
type ToolbarOrientationChangedCallback Source #
Arguments
| = Orientation |
|
| -> IO () |
Emitted when the orientation of the toolbar changes.
afterToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarOrientationChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the orientationChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after toolbar #orientationChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onToolbarOrientationChanged :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarOrientationChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the orientationChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on toolbar #orientationChanged callback
popupContextMenu
type ToolbarPopupContextMenuCallback Source #
Arguments
| = 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 -> ((?self :: a) => ToolbarPopupContextMenuCallback) -> m SignalHandlerId Source #
Connect a signal handler for the popupContextMenu signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after toolbar #popupContextMenu callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onToolbarPopupContextMenu :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarPopupContextMenuCallback) -> m SignalHandlerId Source #
Connect a signal handler for the popupContextMenu signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on toolbar #popupContextMenu callback
styleChanged
type ToolbarStyleChangedCallback Source #
Arguments
| = ToolbarStyle |
|
| -> IO () |
Emitted when the style of the toolbar changes.
afterToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarStyleChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the styleChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after toolbar #styleChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self parameter.
Note that this requires activating the ImplicitParams GHC extension.
onToolbarStyleChanged :: (IsToolbar a, MonadIO m) => a -> ((?self :: a) => ToolbarStyleChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the styleChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on toolbar #styleChanged callback