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 |
A GtkBindingSignal stores the necessary information to activate a widget in response to a key press via a signal emission.
Synopsis
- newtype BindingSignal = BindingSignal (ManagedPtr BindingSignal)
- newZeroBindingSignal :: MonadIO m => m BindingSignal
- getBindingSignalNArgs :: MonadIO m => BindingSignal -> m Word32
- setBindingSignalNArgs :: MonadIO m => BindingSignal -> Word32 -> m ()
- clearBindingSignalNext :: MonadIO m => BindingSignal -> m ()
- getBindingSignalNext :: MonadIO m => BindingSignal -> m (Maybe BindingSignal)
- setBindingSignalNext :: MonadIO m => BindingSignal -> Ptr BindingSignal -> m ()
- clearBindingSignalSignalName :: MonadIO m => BindingSignal -> m ()
- getBindingSignalSignalName :: MonadIO m => BindingSignal -> m (Maybe Text)
- setBindingSignalSignalName :: MonadIO m => BindingSignal -> CString -> m ()
Exported types
newtype BindingSignal Source #
Memory-managed wrapper type.
BindingSignal (ManagedPtr BindingSignal) |
Instances
Eq BindingSignal Source # | |
Defined in GI.Gtk.Structs.BindingSignal (==) :: BindingSignal -> BindingSignal -> Bool # (/=) :: BindingSignal -> BindingSignal -> Bool # | |
BoxedPtr BindingSignal Source # | |
Defined in GI.Gtk.Structs.BindingSignal boxedPtrCopy :: BindingSignal -> IO BindingSignal boxedPtrFree :: BindingSignal -> IO () | |
CallocPtr BindingSignal Source # | |
Defined in GI.Gtk.Structs.BindingSignal boxedPtrCalloc :: IO (Ptr BindingSignal) | |
ManagedPtrNewtype BindingSignal Source # | |
Defined in GI.Gtk.Structs.BindingSignal toManagedPtr :: BindingSignal -> ManagedPtr BindingSignal | |
tag ~ 'AttrSet => Constructible BindingSignal tag Source # | |
Defined in GI.Gtk.Structs.BindingSignal new :: MonadIO m => (ManagedPtr BindingSignal -> BindingSignal) -> [AttrOp BindingSignal tag] -> m BindingSignal |
newZeroBindingSignal :: MonadIO m => m BindingSignal Source #
Construct a BindingSignal
struct initialized to zero.
Methods
Properties
nArgs
number of arguments specified for the signal
getBindingSignalNArgs :: MonadIO m => BindingSignal -> m Word32 Source #
Get the value of the “n_args
” field.
When overloading is enabled, this is equivalent to
get
bindingSignal #nArgs
setBindingSignalNArgs :: MonadIO m => BindingSignal -> Word32 -> m () Source #
Set the value of the “n_args
” field.
When overloading is enabled, this is equivalent to
set
bindingSignal [ #nArgs:=
value ]
next
implementation detail
clearBindingSignalNext :: MonadIO m => BindingSignal -> m () Source #
Set the value of the “next
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#next
getBindingSignalNext :: MonadIO m => BindingSignal -> m (Maybe BindingSignal) Source #
Get the value of the “next
” field.
When overloading is enabled, this is equivalent to
get
bindingSignal #next
setBindingSignalNext :: MonadIO m => BindingSignal -> Ptr BindingSignal -> m () Source #
Set the value of the “next
” field.
When overloading is enabled, this is equivalent to
set
bindingSignal [ #next:=
value ]
signalName
the action signal to be emitted
clearBindingSignalSignalName :: MonadIO m => BindingSignal -> m () Source #
Set the value of the “signal_name
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#signalName
getBindingSignalSignalName :: MonadIO m => BindingSignal -> m (Maybe Text) Source #
Get the value of the “signal_name
” field.
When overloading is enabled, this is equivalent to
get
bindingSignal #signalName
setBindingSignalSignalName :: MonadIO m => BindingSignal -> CString -> m () Source #
Set the value of the “signal_name
” field.
When overloading is enabled, this is equivalent to
set
bindingSignal [ #signalName:=
value ]