gi-gtksource-3.0.25: GtkSource bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GtkSource.Interfaces.UndoManager

Description

No description available in the introspection data.

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf UndoManager o) => IsUndoManager o Source # 
Instance details

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

beginNotUndoableAction

undoManagerBeginNotUndoableAction Source #

Arguments

:: (HasCallStack, MonadIO m, IsUndoManager a) 
=> a

manager: a UndoManager.

-> 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

undoManagerCanRedo Source #

Arguments

:: (HasCallStack, MonadIO m, IsUndoManager a) 
=> a

manager: a UndoManager.

-> m Bool

Returns: True if there are redo operations available, False otherwise

Get whether there are redo operations available.

Since: 2.10

canRedoChanged

undoManagerCanRedoChanged Source #

Arguments

:: (HasCallStack, MonadIO m, IsUndoManager a) 
=> a

manager: a UndoManager.

-> m () 

Emits the canRedoChanged signal.

Since: 2.10

canUndo

undoManagerCanUndo Source #

Arguments

:: (HasCallStack, MonadIO m, IsUndoManager a) 
=> a

manager: a UndoManager.

-> m Bool

Returns: True if there are undo operations available, False otherwise

Get whether there are undo operations available.

Since: 2.10

canUndoChanged

undoManagerCanUndoChanged Source #

Arguments

:: (HasCallStack, MonadIO m, IsUndoManager a) 
=> a

manager: a UndoManager.

-> m () 

Emits the canUndoChanged signal.

Since: 2.10

endNotUndoableAction

undoManagerEndNotUndoableAction Source #

Arguments

:: (HasCallStack, MonadIO m, IsUndoManager a) 
=> a

manager: a UndoManager.

-> m () 

Ends a not undoable action on the buffer.

Since: 2.10

redo

undoManagerRedo Source #

Arguments

:: (HasCallStack, MonadIO m, IsUndoManager a) 
=> a

manager: a UndoManager.

-> 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

undoManagerUndo Source #

Arguments

:: (HasCallStack, MonadIO m, IsUndoManager a) 
=> a

manager: a UndoManager.

-> 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