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 |
No description available in the introspection data.
Synopsis
- newtype UndoManager = UndoManager (ManagedPtr UndoManager)
- class (GObject o, IsDescendantOf UndoManager o) => IsUndoManager o
- toUndoManager :: (MonadIO m, IsUndoManager o) => o -> m UndoManager
- undoManagerBeginNotUndoableAction :: (HasCallStack, MonadIO m, IsUndoManager a) => a -> m ()
- undoManagerCanRedo :: (HasCallStack, MonadIO m, IsUndoManager a) => a -> m Bool
- undoManagerCanRedoChanged :: (HasCallStack, MonadIO m, IsUndoManager a) => a -> m ()
- undoManagerCanUndo :: (HasCallStack, MonadIO m, IsUndoManager a) => a -> m Bool
- undoManagerCanUndoChanged :: (HasCallStack, MonadIO m, IsUndoManager a) => a -> m ()
- undoManagerEndNotUndoableAction :: (HasCallStack, MonadIO m, IsUndoManager a) => a -> m ()
- undoManagerRedo :: (HasCallStack, MonadIO m, IsUndoManager a) => a -> m ()
- undoManagerUndo :: (HasCallStack, MonadIO m, IsUndoManager a) => a -> m ()
- type UndoManagerCanRedoChangedCallback = IO ()
- afterUndoManagerCanRedoChanged :: (IsUndoManager a, MonadIO m) => a -> ((?self :: a) => UndoManagerCanRedoChangedCallback) -> m SignalHandlerId
- onUndoManagerCanRedoChanged :: (IsUndoManager a, MonadIO m) => a -> ((?self :: a) => UndoManagerCanRedoChangedCallback) -> m SignalHandlerId
- type UndoManagerCanUndoChangedCallback = IO ()
- afterUndoManagerCanUndoChanged :: (IsUndoManager a, MonadIO m) => a -> ((?self :: a) => UndoManagerCanUndoChangedCallback) -> m SignalHandlerId
- onUndoManagerCanUndoChanged :: (IsUndoManager a, MonadIO m) => a -> ((?self :: a) => UndoManagerCanUndoChangedCallback) -> m SignalHandlerId
Exported types
newtype UndoManager Source #
Memory-managed wrapper type.
UndoManager (ManagedPtr UndoManager) |
Instances
Eq UndoManager Source # | |
Defined in GI.GtkSource.Interfaces.UndoManager (==) :: UndoManager -> UndoManager -> Bool # (/=) :: UndoManager -> UndoManager -> Bool # | |
GObject UndoManager Source # | |
Defined in GI.GtkSource.Interfaces.UndoManager | |
ManagedPtrNewtype UndoManager Source # | |
Defined in GI.GtkSource.Interfaces.UndoManager toManagedPtr :: UndoManager -> ManagedPtr UndoManager | |
TypedObject UndoManager Source # | |
Defined in GI.GtkSource.Interfaces.UndoManager | |
HasParentTypes UndoManager Source # | |
Defined in GI.GtkSource.Interfaces.UndoManager | |
IsGValue (Maybe UndoManager) Source # | Convert |
Defined in GI.GtkSource.Interfaces.UndoManager gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe UndoManager -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe UndoManager) | |
type ParentTypes UndoManager Source # | |
Defined in GI.GtkSource.Interfaces.UndoManager type ParentTypes UndoManager = '[Object] |
class (GObject o, IsDescendantOf UndoManager o) => IsUndoManager o Source #
Type class for types which can be safely cast to UndoManager
, for instance with toUndoManager
.
Instances
(GObject o, IsDescendantOf UndoManager o) => IsUndoManager o Source # | |
Defined in GI.GtkSource.Interfaces.UndoManager |
toUndoManager :: (MonadIO m, IsUndoManager o) => o -> m UndoManager Source #
Cast to UndoManager
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
beginNotUndoableAction, bindProperty, bindPropertyFull, canRedo, canRedoChanged, canUndo, canUndoChanged, endNotUndoableAction, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, redo, ref, refSink, runDispose, stealData, stealQdata, thawNotify, undo, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
beginNotUndoableAction
undoManagerBeginNotUndoableAction Source #
:: (HasCallStack, MonadIO m, IsUndoManager a) | |
=> a |
|
-> m () |
Begin a not undoable action on the buffer. All changes between this call
and the call to undoManagerEndNotUndoableAction
cannot
be undone. This function should be re-entrant.
Since: 2.10
canRedo
:: (HasCallStack, MonadIO m, IsUndoManager a) | |
=> a |
|
-> m Bool | Returns: |
Get whether there are redo operations available.
Since: 2.10
canRedoChanged
undoManagerCanRedoChanged Source #
:: (HasCallStack, MonadIO m, IsUndoManager a) | |
=> a |
|
-> m () |
Emits the UndoManager::canRedoChanged signal.
Since: 2.10
canUndo
:: (HasCallStack, MonadIO m, IsUndoManager a) | |
=> a |
|
-> m Bool | Returns: |
Get whether there are undo operations available.
Since: 2.10
canUndoChanged
undoManagerCanUndoChanged Source #
:: (HasCallStack, MonadIO m, IsUndoManager a) | |
=> a |
|
-> m () |
Emits the UndoManager::canUndoChanged signal.
Since: 2.10
endNotUndoableAction
undoManagerEndNotUndoableAction Source #
:: (HasCallStack, MonadIO m, IsUndoManager a) | |
=> a |
|
-> m () |
Ends a not undoable action on the buffer.
Since: 2.10
redo
:: (HasCallStack, MonadIO m, IsUndoManager a) | |
=> a |
|
-> m () |
Perform a single redo. Calling this function when there are no redo operations
available is an error. Use undoManagerCanRedo
to find out
if there are redo operations available.
Since: 2.10
undo
:: (HasCallStack, MonadIO m, IsUndoManager a) | |
=> a |
|
-> m () |
Perform a single undo. Calling this function when there are no undo operations
available is an error. Use undoManagerCanUndo
to find out
if there are undo operations available.
Since: 2.10
Signals
canRedoChanged
type UndoManagerCanRedoChangedCallback = IO () Source #
Emitted when the ability to redo has changed.
Since: 2.10
afterUndoManagerCanRedoChanged :: (IsUndoManager a, MonadIO m) => a -> ((?self :: a) => UndoManagerCanRedoChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the canRedoChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
undoManager #canRedoChanged 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.
onUndoManagerCanRedoChanged :: (IsUndoManager a, MonadIO m) => a -> ((?self :: a) => UndoManagerCanRedoChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the canRedoChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
undoManager #canRedoChanged callback
canUndoChanged
type UndoManagerCanUndoChangedCallback = IO () Source #
Emitted when the ability to undo has changed.
Since: 2.10
afterUndoManagerCanUndoChanged :: (IsUndoManager a, MonadIO m) => a -> ((?self :: a) => UndoManagerCanUndoChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the canUndoChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
undoManager #canUndoChanged 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.
onUndoManagerCanUndoChanged :: (IsUndoManager a, MonadIO m) => a -> ((?self :: a) => UndoManagerCanUndoChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the canUndoChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
undoManager #canUndoChanged callback