| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.MenuShell
Contents
Description
A MenuShell is the abstract base class used to derive the
Menu and MenuBar subclasses.
A MenuShell is a container of MenuItem objects arranged
in a list which can be navigated, selected, and activated by the
user to perform application functions. A MenuItem can have a
submenu associated with it, allowing for nested hierarchical menus.
Terminology
A menu item can be “selected”, this means that it is displayed in the prelight state, and if it has a submenu, that submenu will be popped up.
A menu is “active” when it is visible onscreen and the user is selecting from it. A menubar is not active until the user clicks on one of its menuitems. When a menu is active, passing the mouse over a submenu will pop it up.
There is also is a concept of the current menu and a current menu item. The current menu item is the selected menu item that is furthest down in the hierarchy. (Every active menu shell does not necessarily contain a selected menu item, but if it does, then the parent menu shell must also contain a selected menu item.) The current menu is the menu that contains the current menu item. It will always have a GTK grab and receive all key presses.
- newtype MenuShell = MenuShell (ManagedPtr MenuShell)
- class GObject o => IsMenuShell o
- toMenuShell :: IsMenuShell o => o -> IO MenuShell
- noMenuShell :: Maybe MenuShell
- data MenuShellActivateItemMethodInfo
- menuShellActivateItem :: (HasCallStack, MonadIO m, IsMenuShell a, IsWidget b) => a -> b -> Bool -> m ()
- data MenuShellAppendMethodInfo
- menuShellAppend :: (HasCallStack, MonadIO m, IsMenuShell a, IsMenuItem b) => a -> b -> m ()
- data MenuShellBindModelMethodInfo
- menuShellBindModel :: (HasCallStack, MonadIO m, IsMenuShell a, IsMenuModel b) => a -> Maybe b -> Maybe Text -> Bool -> m ()
- data MenuShellCancelMethodInfo
- menuShellCancel :: (HasCallStack, MonadIO m, IsMenuShell a) => a -> m ()
- data MenuShellDeactivateMethodInfo
- menuShellDeactivate :: (HasCallStack, MonadIO m, IsMenuShell a) => a -> m ()
- data MenuShellDeselectMethodInfo
- menuShellDeselect :: (HasCallStack, MonadIO m, IsMenuShell a) => a -> m ()
- data MenuShellGetParentShellMethodInfo
- menuShellGetParentShell :: (HasCallStack, MonadIO m, IsMenuShell a) => a -> m Widget
- data MenuShellGetSelectedItemMethodInfo
- menuShellGetSelectedItem :: (HasCallStack, MonadIO m, IsMenuShell a) => a -> m Widget
- data MenuShellGetTakeFocusMethodInfo
- menuShellGetTakeFocus :: (HasCallStack, MonadIO m, IsMenuShell a) => a -> m Bool
- data MenuShellInsertMethodInfo
- menuShellInsert :: (HasCallStack, MonadIO m, IsMenuShell a, IsWidget b) => a -> b -> Int32 -> m ()
- data MenuShellPrependMethodInfo
- menuShellPrepend :: (HasCallStack, MonadIO m, IsMenuShell a, IsWidget b) => a -> b -> m ()
- data MenuShellSelectFirstMethodInfo
- menuShellSelectFirst :: (HasCallStack, MonadIO m, IsMenuShell a) => a -> Bool -> m ()
- data MenuShellSelectItemMethodInfo
- menuShellSelectItem :: (HasCallStack, MonadIO m, IsMenuShell a, IsWidget b) => a -> b -> m ()
- data MenuShellSetTakeFocusMethodInfo
- menuShellSetTakeFocus :: (HasCallStack, MonadIO m, IsMenuShell a) => a -> Bool -> m ()
- data MenuShellTakeFocusPropertyInfo
- constructMenuShellTakeFocus :: IsMenuShell o => Bool -> IO (GValueConstruct o)
- getMenuShellTakeFocus :: (MonadIO m, IsMenuShell o) => o -> m Bool
- menuShellTakeFocus :: AttrLabelProxy "takeFocus"
- setMenuShellTakeFocus :: (MonadIO m, IsMenuShell o) => o -> Bool -> m ()
- type C_MenuShellActivateCurrentCallback = Ptr () -> CInt -> Ptr () -> IO ()
- type MenuShellActivateCurrentCallback = Bool -> IO ()
- data MenuShellActivateCurrentSignalInfo
- afterMenuShellActivateCurrent :: (GObject a, MonadIO m) => a -> MenuShellActivateCurrentCallback -> m SignalHandlerId
- genClosure_MenuShellActivateCurrent :: MenuShellActivateCurrentCallback -> IO Closure
- mk_MenuShellActivateCurrentCallback :: C_MenuShellActivateCurrentCallback -> IO (FunPtr C_MenuShellActivateCurrentCallback)
- noMenuShellActivateCurrentCallback :: Maybe MenuShellActivateCurrentCallback
- onMenuShellActivateCurrent :: (GObject a, MonadIO m) => a -> MenuShellActivateCurrentCallback -> m SignalHandlerId
- wrap_MenuShellActivateCurrentCallback :: MenuShellActivateCurrentCallback -> Ptr () -> CInt -> Ptr () -> IO ()
- type C_MenuShellCancelCallback = Ptr () -> Ptr () -> IO ()
- type MenuShellCancelCallback = IO ()
- data MenuShellCancelSignalInfo
- afterMenuShellCancel :: (GObject a, MonadIO m) => a -> MenuShellCancelCallback -> m SignalHandlerId
- genClosure_MenuShellCancel :: MenuShellCancelCallback -> IO Closure
- mk_MenuShellCancelCallback :: C_MenuShellCancelCallback -> IO (FunPtr C_MenuShellCancelCallback)
- noMenuShellCancelCallback :: Maybe MenuShellCancelCallback
- onMenuShellCancel :: (GObject a, MonadIO m) => a -> MenuShellCancelCallback -> m SignalHandlerId
- wrap_MenuShellCancelCallback :: MenuShellCancelCallback -> Ptr () -> Ptr () -> IO ()
- type C_MenuShellCycleFocusCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type MenuShellCycleFocusCallback = DirectionType -> IO ()
- data MenuShellCycleFocusSignalInfo
- afterMenuShellCycleFocus :: (GObject a, MonadIO m) => a -> MenuShellCycleFocusCallback -> m SignalHandlerId
- genClosure_MenuShellCycleFocus :: MenuShellCycleFocusCallback -> IO Closure
- mk_MenuShellCycleFocusCallback :: C_MenuShellCycleFocusCallback -> IO (FunPtr C_MenuShellCycleFocusCallback)
- noMenuShellCycleFocusCallback :: Maybe MenuShellCycleFocusCallback
- onMenuShellCycleFocus :: (GObject a, MonadIO m) => a -> MenuShellCycleFocusCallback -> m SignalHandlerId
- wrap_MenuShellCycleFocusCallback :: MenuShellCycleFocusCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_MenuShellDeactivateCallback = Ptr () -> Ptr () -> IO ()
- type MenuShellDeactivateCallback = IO ()
- data MenuShellDeactivateSignalInfo
- afterMenuShellDeactivate :: (GObject a, MonadIO m) => a -> MenuShellDeactivateCallback -> m SignalHandlerId
- genClosure_MenuShellDeactivate :: MenuShellDeactivateCallback -> IO Closure
- mk_MenuShellDeactivateCallback :: C_MenuShellDeactivateCallback -> IO (FunPtr C_MenuShellDeactivateCallback)
- noMenuShellDeactivateCallback :: Maybe MenuShellDeactivateCallback
- onMenuShellDeactivate :: (GObject a, MonadIO m) => a -> MenuShellDeactivateCallback -> m SignalHandlerId
- wrap_MenuShellDeactivateCallback :: MenuShellDeactivateCallback -> Ptr () -> Ptr () -> IO ()
- type C_MenuShellInsertCallback = Ptr () -> Ptr Widget -> Int32 -> Ptr () -> IO ()
- type MenuShellInsertCallback = Widget -> Int32 -> IO ()
- data MenuShellInsertSignalInfo
- afterMenuShellInsert :: (GObject a, MonadIO m) => a -> MenuShellInsertCallback -> m SignalHandlerId
- genClosure_MenuShellInsert :: MenuShellInsertCallback -> IO Closure
- mk_MenuShellInsertCallback :: C_MenuShellInsertCallback -> IO (FunPtr C_MenuShellInsertCallback)
- noMenuShellInsertCallback :: Maybe MenuShellInsertCallback
- onMenuShellInsert :: (GObject a, MonadIO m) => a -> MenuShellInsertCallback -> m SignalHandlerId
- wrap_MenuShellInsertCallback :: MenuShellInsertCallback -> Ptr () -> Ptr Widget -> Int32 -> Ptr () -> IO ()
- type C_MenuShellMoveCurrentCallback = Ptr () -> CUInt -> Ptr () -> IO ()
- type MenuShellMoveCurrentCallback = MenuDirectionType -> IO ()
- data MenuShellMoveCurrentSignalInfo
- afterMenuShellMoveCurrent :: (GObject a, MonadIO m) => a -> MenuShellMoveCurrentCallback -> m SignalHandlerId
- genClosure_MenuShellMoveCurrent :: MenuShellMoveCurrentCallback -> IO Closure
- mk_MenuShellMoveCurrentCallback :: C_MenuShellMoveCurrentCallback -> IO (FunPtr C_MenuShellMoveCurrentCallback)
- noMenuShellMoveCurrentCallback :: Maybe MenuShellMoveCurrentCallback
- onMenuShellMoveCurrent :: (GObject a, MonadIO m) => a -> MenuShellMoveCurrentCallback -> m SignalHandlerId
- wrap_MenuShellMoveCurrentCallback :: MenuShellMoveCurrentCallback -> Ptr () -> CUInt -> Ptr () -> IO ()
- type C_MenuShellMoveSelectedCallback = Ptr () -> Int32 -> Ptr () -> IO CInt
- type MenuShellMoveSelectedCallback = Int32 -> IO Bool
- data MenuShellMoveSelectedSignalInfo
- afterMenuShellMoveSelected :: (GObject a, MonadIO m) => a -> MenuShellMoveSelectedCallback -> m SignalHandlerId
- genClosure_MenuShellMoveSelected :: MenuShellMoveSelectedCallback -> IO Closure
- mk_MenuShellMoveSelectedCallback :: C_MenuShellMoveSelectedCallback -> IO (FunPtr C_MenuShellMoveSelectedCallback)
- noMenuShellMoveSelectedCallback :: Maybe MenuShellMoveSelectedCallback
- onMenuShellMoveSelected :: (GObject a, MonadIO m) => a -> MenuShellMoveSelectedCallback -> m SignalHandlerId
- wrap_MenuShellMoveSelectedCallback :: MenuShellMoveSelectedCallback -> Ptr () -> Int32 -> Ptr () -> IO CInt
- type C_MenuShellSelectionDoneCallback = Ptr () -> Ptr () -> IO ()
- type MenuShellSelectionDoneCallback = IO ()
- data MenuShellSelectionDoneSignalInfo
- afterMenuShellSelectionDone :: (GObject a, MonadIO m) => a -> MenuShellSelectionDoneCallback -> m SignalHandlerId
- genClosure_MenuShellSelectionDone :: MenuShellSelectionDoneCallback -> IO Closure
- mk_MenuShellSelectionDoneCallback :: C_MenuShellSelectionDoneCallback -> IO (FunPtr C_MenuShellSelectionDoneCallback)
- noMenuShellSelectionDoneCallback :: Maybe MenuShellSelectionDoneCallback
- onMenuShellSelectionDone :: (GObject a, MonadIO m) => a -> MenuShellSelectionDoneCallback -> m SignalHandlerId
- wrap_MenuShellSelectionDoneCallback :: MenuShellSelectionDoneCallback -> Ptr () -> Ptr () -> IO ()
Exported types
Constructors
| MenuShell (ManagedPtr MenuShell) |
Instances
| GObject MenuShell Source # | |
| IsImplementorIface MenuShell Source # | |
| IsObject MenuShell Source # | |
| IsWidget MenuShell Source # | |
| IsMenuShell MenuShell Source # | |
| IsContainer MenuShell Source # | |
| IsBuildable MenuShell Source # | |
| ((~) * info (ResolveMenuShellMethod t MenuShell), MethodInfo * info MenuShell p) => IsLabel t (MenuShell -> p) Source # | |
| ((~) * info (ResolveMenuShellMethod t MenuShell), MethodInfo * info MenuShell p) => IsLabelProxy t (MenuShell -> p) Source # | |
| HasAttributeList * MenuShell Source # | |
| type AttributeList MenuShell Source # | |
| type SignalList MenuShell Source # | |
class GObject o => IsMenuShell o Source #
Instances
toMenuShell :: IsMenuShell o => o -> IO MenuShell Source #
Methods
activateItem
data MenuShellActivateItemMethodInfo Source #
Instances
| ((~) * signature (b -> Bool -> m ()), MonadIO m, IsMenuShell a, IsWidget b) => MethodInfo * MenuShellActivateItemMethodInfo a signature Source # | |
menuShellActivateItem Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Bool |
|
| -> m () |
Activates the menu item within the menu shell.
append
data MenuShellAppendMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsMenuShell a, IsMenuItem b) => MethodInfo * MenuShellAppendMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a, IsMenuItem b) | |
| => a |
|
| -> b |
|
| -> m () |
Adds a new MenuItem to the end of the menu shell's
item list.
bindModel
data MenuShellBindModelMethodInfo Source #
Instances
| ((~) * signature (Maybe b -> Maybe Text -> Bool -> m ()), MonadIO m, IsMenuShell a, IsMenuModel b) => MethodInfo * MenuShellBindModelMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a, IsMenuModel b) | |
| => a |
|
| -> Maybe b |
|
| -> Maybe Text |
|
| -> Bool |
|
| -> m () |
Establishes a binding between a MenuShell and a MenuModel.
The contents of shell are removed and then refilled with menu items
according to model. When model changes, shell is updated.
Calling this function twice on shell with different model will
cause the first binding to be replaced with a binding to the new
model. If model is Nothing then any previous binding is undone and
all children are removed.
withSeparators determines if toplevel items (eg: sections) have
separators inserted between them. This is typically desired for
menus but doesn’t make sense for menubars.
If actionNamespace is non-Nothing then the effect is as if all
actions mentioned in the model have their names prefixed with the
namespace, plus a dot. For example, if the action “quit” is
mentioned and actionNamespace is “app” then the effective action
name is “app.quit”.
This function uses Actionable to define the action name and
target values on the created menu items. If you want to use an
action group other than “app” and “win”, or if you want to use a
MenuShell outside of a ApplicationWindow, then you will need
to attach your own action group to the widget hierarchy using
widgetInsertActionGroup. As an example, if you created a
group with a “quit” action and inserted it with the name “mygroup”
then you would use the action name “mygroup.quit” in your
MenuModel.
For most cases you are probably better off using
menuNewFromModel or menuBarNewFromModel or just
directly passing the MenuModel to applicationSetAppMenu or
applicationSetMenubar.
Since: 3.6
cancel
data MenuShellCancelMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsMenuShell a) => MethodInfo * MenuShellCancelMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a) | |
| => a |
|
| -> m () |
Cancels the selection within the menu shell.
Since: 2.4
deactivate
data MenuShellDeactivateMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsMenuShell a) => MethodInfo * MenuShellDeactivateMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a) | |
| => a |
|
| -> m () |
Deactivates the menu shell.
Typically this results in the menu shell being erased from the screen.
deselect
data MenuShellDeselectMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsMenuShell a) => MethodInfo * MenuShellDeselectMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a) | |
| => a |
|
| -> m () |
Deselects the currently selected item from the menu shell, if any.
getParentShell
data MenuShellGetParentShellMethodInfo Source #
Instances
| ((~) * signature (m Widget), MonadIO m, IsMenuShell a) => MethodInfo * MenuShellGetParentShellMethodInfo a signature Source # | |
menuShellGetParentShell Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a) | |
| => a |
|
| -> m Widget | Returns: the parent |
getSelectedItem
data MenuShellGetSelectedItemMethodInfo Source #
Instances
| ((~) * signature (m Widget), MonadIO m, IsMenuShell a) => MethodInfo * MenuShellGetSelectedItemMethodInfo a signature Source # | |
menuShellGetSelectedItem Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a) | |
| => a |
|
| -> m Widget | Returns: the currently selected item |
Gets the currently selected item.
Since: 3.0
getTakeFocus
data MenuShellGetTakeFocusMethodInfo Source #
Instances
| ((~) * signature (m Bool), MonadIO m, IsMenuShell a) => MethodInfo * MenuShellGetTakeFocusMethodInfo a signature Source # | |
menuShellGetTakeFocus Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a) | |
| => a |
|
| -> m Bool | Returns: |
Returns True if the menu shell will take the keyboard focus on popup.
Since: 2.8
insert
data MenuShellInsertMethodInfo Source #
Instances
| ((~) * signature (b -> Int32 -> m ()), MonadIO m, IsMenuShell a, IsWidget b) => MethodInfo * MenuShellInsertMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> Int32 |
|
| -> m () |
Adds a new MenuItem to the menu shell’s item list
at the position indicated by position.
prepend
data MenuShellPrependMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsMenuShell a, IsWidget b) => MethodInfo * MenuShellPrependMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m () |
Adds a new MenuItem to the beginning of the menu shell's
item list.
selectFirst
data MenuShellSelectFirstMethodInfo Source #
Instances
| ((~) * signature (Bool -> m ()), MonadIO m, IsMenuShell a) => MethodInfo * MenuShellSelectFirstMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Select the first visible or selectable child of the menu shell; don’t select tearoff items unless the only item is a tearoff item.
Since: 2.2
selectItem
data MenuShellSelectItemMethodInfo Source #
Instances
| ((~) * signature (b -> m ()), MonadIO m, IsMenuShell a, IsWidget b) => MethodInfo * MenuShellSelectItemMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a, IsWidget b) | |
| => a |
|
| -> b |
|
| -> m () |
Selects the menu item from the menu shell.
setTakeFocus
data MenuShellSetTakeFocusMethodInfo Source #
Instances
| ((~) * signature (Bool -> m ()), MonadIO m, IsMenuShell a) => MethodInfo * MenuShellSetTakeFocusMethodInfo a signature Source # | |
menuShellSetTakeFocus Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMenuShell a) | |
| => a |
|
| -> Bool |
|
| -> m () |
If takeFocus is True (the default) the menu shell will take
the keyboard focus so that it will receive all keyboard events
which is needed to enable keyboard navigation in menus.
Setting takeFocus to False is useful only for special applications
like virtual keyboard implementations which should not take keyboard
focus.
The takeFocus state of a menu or menu bar is automatically
propagated to submenus whenever a submenu is popped up, so you
don’t have to worry about recursively setting it for your entire
menu hierarchy. Only when programmatically picking a submenu and
popping it up manually, the takeFocus property of the submenu
needs to be set explicitly.
Note that setting it to False has side-effects:
If the focus is in some other app, it keeps the focus and keynav in the menu doesn’t work. Consequently, keynav on the menu will only work if the focus is on some toplevel owned by the onscreen keyboard.
To avoid confusing the user, menus with takeFocus set to False
should not display mnemonics or accelerators, since it cannot be
guaranteed that they will work.
See also keyboardGrab
Since: 2.8
Properties
takeFocus
data MenuShellTakeFocusPropertyInfo Source #
Instances
constructMenuShellTakeFocus :: IsMenuShell o => Bool -> IO (GValueConstruct o) Source #
getMenuShellTakeFocus :: (MonadIO m, IsMenuShell o) => o -> m Bool Source #
menuShellTakeFocus :: AttrLabelProxy "takeFocus" Source #
setMenuShellTakeFocus :: (MonadIO m, IsMenuShell o) => o -> Bool -> m () Source #
Signals
activateCurrent
type MenuShellActivateCurrentCallback = Bool -> IO () Source #
afterMenuShellActivateCurrent :: (GObject a, MonadIO m) => a -> MenuShellActivateCurrentCallback -> m SignalHandlerId Source #
mk_MenuShellActivateCurrentCallback :: C_MenuShellActivateCurrentCallback -> IO (FunPtr C_MenuShellActivateCurrentCallback) Source #
onMenuShellActivateCurrent :: (GObject a, MonadIO m) => a -> MenuShellActivateCurrentCallback -> m SignalHandlerId Source #
wrap_MenuShellActivateCurrentCallback :: MenuShellActivateCurrentCallback -> Ptr () -> CInt -> Ptr () -> IO () Source #
cancel
type MenuShellCancelCallback = IO () Source #
afterMenuShellCancel :: (GObject a, MonadIO m) => a -> MenuShellCancelCallback -> m SignalHandlerId Source #
mk_MenuShellCancelCallback :: C_MenuShellCancelCallback -> IO (FunPtr C_MenuShellCancelCallback) Source #
onMenuShellCancel :: (GObject a, MonadIO m) => a -> MenuShellCancelCallback -> m SignalHandlerId Source #
wrap_MenuShellCancelCallback :: MenuShellCancelCallback -> Ptr () -> Ptr () -> IO () Source #
cycleFocus
type MenuShellCycleFocusCallback = DirectionType -> IO () Source #
afterMenuShellCycleFocus :: (GObject a, MonadIO m) => a -> MenuShellCycleFocusCallback -> m SignalHandlerId Source #
mk_MenuShellCycleFocusCallback :: C_MenuShellCycleFocusCallback -> IO (FunPtr C_MenuShellCycleFocusCallback) Source #
onMenuShellCycleFocus :: (GObject a, MonadIO m) => a -> MenuShellCycleFocusCallback -> m SignalHandlerId Source #
wrap_MenuShellCycleFocusCallback :: MenuShellCycleFocusCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
deactivate
type MenuShellDeactivateCallback = IO () Source #
afterMenuShellDeactivate :: (GObject a, MonadIO m) => a -> MenuShellDeactivateCallback -> m SignalHandlerId Source #
mk_MenuShellDeactivateCallback :: C_MenuShellDeactivateCallback -> IO (FunPtr C_MenuShellDeactivateCallback) Source #
onMenuShellDeactivate :: (GObject a, MonadIO m) => a -> MenuShellDeactivateCallback -> m SignalHandlerId Source #
wrap_MenuShellDeactivateCallback :: MenuShellDeactivateCallback -> Ptr () -> Ptr () -> IO () Source #
insert
afterMenuShellInsert :: (GObject a, MonadIO m) => a -> MenuShellInsertCallback -> m SignalHandlerId Source #
mk_MenuShellInsertCallback :: C_MenuShellInsertCallback -> IO (FunPtr C_MenuShellInsertCallback) Source #
onMenuShellInsert :: (GObject a, MonadIO m) => a -> MenuShellInsertCallback -> m SignalHandlerId Source #
wrap_MenuShellInsertCallback :: MenuShellInsertCallback -> Ptr () -> Ptr Widget -> Int32 -> Ptr () -> IO () Source #
moveCurrent
type MenuShellMoveCurrentCallback = MenuDirectionType -> IO () Source #
afterMenuShellMoveCurrent :: (GObject a, MonadIO m) => a -> MenuShellMoveCurrentCallback -> m SignalHandlerId Source #
mk_MenuShellMoveCurrentCallback :: C_MenuShellMoveCurrentCallback -> IO (FunPtr C_MenuShellMoveCurrentCallback) Source #
onMenuShellMoveCurrent :: (GObject a, MonadIO m) => a -> MenuShellMoveCurrentCallback -> m SignalHandlerId Source #
wrap_MenuShellMoveCurrentCallback :: MenuShellMoveCurrentCallback -> Ptr () -> CUInt -> Ptr () -> IO () Source #
moveSelected
afterMenuShellMoveSelected :: (GObject a, MonadIO m) => a -> MenuShellMoveSelectedCallback -> m SignalHandlerId Source #
mk_MenuShellMoveSelectedCallback :: C_MenuShellMoveSelectedCallback -> IO (FunPtr C_MenuShellMoveSelectedCallback) Source #
onMenuShellMoveSelected :: (GObject a, MonadIO m) => a -> MenuShellMoveSelectedCallback -> m SignalHandlerId Source #
wrap_MenuShellMoveSelectedCallback :: MenuShellMoveSelectedCallback -> Ptr () -> Int32 -> Ptr () -> IO CInt Source #
selectionDone
type MenuShellSelectionDoneCallback = IO () Source #
afterMenuShellSelectionDone :: (GObject a, MonadIO m) => a -> MenuShellSelectionDoneCallback -> m SignalHandlerId Source #
mk_MenuShellSelectionDoneCallback :: C_MenuShellSelectionDoneCallback -> IO (FunPtr C_MenuShellSelectionDoneCallback) Source #
onMenuShellSelectionDone :: (GObject a, MonadIO m) => a -> MenuShellSelectionDoneCallback -> m SignalHandlerId Source #
wrap_MenuShellSelectionDoneCallback :: MenuShellSelectionDoneCallback -> Ptr () -> Ptr () -> IO () Source #