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 |
A binding set maintains a list of activatable key bindings. A single binding set can match multiple types of widgets. Similar to style contexts, can be matched by any information contained in a widgets #GtkWidgetPath. When a binding within a set is matched upon activation, an action signal is emitted on the target widget to carry out the actual activation.
- newtype BindingSet = BindingSet (ForeignPtr BindingSet)
- newZeroBindingSet :: MonadIO m => m BindingSet
- noBindingSet :: Maybe BindingSet
- data BindingSetActivateMethodInfo
- bindingSetActivate :: (MonadIO m, ObjectK a) => BindingSet -> Word32 -> [ModifierType] -> a -> m Bool
- data BindingSetAddPathMethodInfo
- bindingSetAddPath :: MonadIO m => BindingSet -> PathType -> Text -> PathPriorityType -> m ()
- bindingSetFind :: MonadIO m => Text -> m BindingSet
- bindingSetReadClassBranchPspecs :: BindingSet -> IO [Ptr ()]
- bindingSetReadCurrent :: BindingSet -> IO BindingEntry
- bindingSetReadEntries :: BindingSet -> IO BindingEntry
- bindingSetReadParsed :: BindingSet -> IO Word32
- bindingSetReadPriority :: BindingSet -> IO Int32
- bindingSetReadSetName :: BindingSet -> IO Text
- bindingSetReadWidgetClassPspecs :: BindingSet -> IO [Ptr ()]
- bindingSetReadWidgetPathPspecs :: BindingSet -> IO [Ptr ()]
Exported types
newtype BindingSet Source
((~) * info (ResolveBindingSetMethod t BindingSet), MethodInfo * info BindingSet p) => IsLabel t (BindingSet -> p) Source | |
((~) * info (ResolveBindingSetMethod t BindingSet), MethodInfo * info BindingSet p) => IsLabelProxy t (BindingSet -> p) Source | |
((~) (TYPE Lifted) signature (PathType -> Text -> PathPriorityType -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) BindingSetAddPathMethodInfo BindingSet signature Source | |
((~) (TYPE Lifted) signature (Word32 -> [ModifierType] -> a -> m Bool), MonadIO m, ObjectK a) => MethodInfo (TYPE Lifted) BindingSetActivateMethodInfo BindingSet signature Source | |
newZeroBindingSet :: MonadIO m => m BindingSet Source
Construct a BindingSet
struct initialized to zero.
Methods
bindingSetActivate
data BindingSetActivateMethodInfo Source
((~) (TYPE Lifted) signature (Word32 -> [ModifierType] -> a -> m Bool), MonadIO m, ObjectK a) => MethodInfo (TYPE Lifted) BindingSetActivateMethodInfo BindingSet signature Source | |
bindingSetActivate :: (MonadIO m, ObjectK a) => BindingSet -> Word32 -> [ModifierType] -> a -> m Bool Source
bindingSetAddPath
data BindingSetAddPathMethodInfo Source
((~) (TYPE Lifted) signature (PathType -> Text -> PathPriorityType -> m ()), MonadIO m) => MethodInfo (TYPE Lifted) BindingSetAddPathMethodInfo BindingSet signature Source | |
bindingSetAddPath :: MonadIO m => BindingSet -> PathType -> Text -> PathPriorityType -> m () Source
Deprecated: (Since version 3.0)
bindingSetFind
bindingSetFind :: MonadIO m => Text -> m BindingSet Source
Properties
ClassBranchPspecs
bindingSetReadClassBranchPspecs :: BindingSet -> IO [Ptr ()] Source
Current
Entries
Parsed
Priority
SetName
WidgetClassPspecs
bindingSetReadWidgetClassPspecs :: BindingSet -> IO [Ptr ()] Source
WidgetPathPspecs
bindingSetReadWidgetPathPspecs :: BindingSet -> IO [Ptr ()] Source