Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
A ShortcutAction
that emits a signal.
Synopsis
- newtype SignalAction = SignalAction (ManagedPtr SignalAction)
- class (GObject o, IsDescendantOf SignalAction o) => IsSignalAction o
- toSignalAction :: (MonadIO m, IsSignalAction o) => o -> m SignalAction
- signalActionGetSignalName :: (HasCallStack, MonadIO m, IsSignalAction a) => a -> m Text
- signalActionNew :: (HasCallStack, MonadIO m) => Text -> m SignalAction
- constructSignalActionSignalName :: (IsSignalAction o, MonadIO m) => Text -> m (GValueConstruct o)
- getSignalActionSignalName :: (MonadIO m, IsSignalAction o) => o -> m Text
Exported types
newtype SignalAction Source #
Memory-managed wrapper type.
Instances
Eq SignalAction Source # | |
Defined in GI.Gtk.Objects.SignalAction (==) :: SignalAction -> SignalAction -> Bool # (/=) :: SignalAction -> SignalAction -> Bool # | |
IsGValue SignalAction Source # | Convert |
Defined in GI.Gtk.Objects.SignalAction toGValue :: SignalAction -> IO GValue # fromGValue :: GValue -> IO SignalAction # | |
ManagedPtrNewtype SignalAction Source # | |
Defined in GI.Gtk.Objects.SignalAction | |
TypedObject SignalAction Source # | |
Defined in GI.Gtk.Objects.SignalAction | |
GObject SignalAction Source # | |
Defined in GI.Gtk.Objects.SignalAction | |
HasParentTypes SignalAction Source # | |
Defined in GI.Gtk.Objects.SignalAction | |
type ParentTypes SignalAction Source # | |
Defined in GI.Gtk.Objects.SignalAction |
class (GObject o, IsDescendantOf SignalAction o) => IsSignalAction o Source #
Type class for types which can be safely cast to SignalAction
, for instance with toSignalAction
.
Instances
(GObject o, IsDescendantOf SignalAction o) => IsSignalAction o Source # | |
Defined in GI.Gtk.Objects.SignalAction |
toSignalAction :: (MonadIO m, IsSignalAction o) => o -> m SignalAction Source #
Cast to SignalAction
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
getSignalName
signalActionGetSignalName Source #
:: (HasCallStack, MonadIO m, IsSignalAction a) | |
=> a |
|
-> m Text | Returns: the name of the signal to emit |
Returns the name of the signal that will be emitted.
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m SignalAction | Returns: a new |
Creates an action that when activated, emits the given action signal on the provided widget unpacking the given args into arguments passed to the signal.
Properties
signalName
The name of the signal to emit.
constructSignalActionSignalName :: (IsSignalAction o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “signal-name
” property. This is rarely needed directly, but it is used by new
.
getSignalActionSignalName :: (MonadIO m, IsSignalAction o) => o -> m Text Source #
Get the value of the “signal-name
” property.
When overloading is enabled, this is equivalent to
get
signalAction #signalName