gi-gtksource-3.0.23: GtkSource bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.GtkSource.Interfaces.UndoManager

Description

No description available in the introspection data.

Synopsis

Exported types

newtype UndoManager Source #

Memory-managed wrapper type.

Constructors

UndoManager (ManagedPtr UndoManager) 

Instances

Instances details
Eq UndoManager Source # 
Instance details

Defined in GI.GtkSource.Interfaces.UndoManager

Methods

(==) :: UndoManager -> UndoManager -> Bool

(/=) :: UndoManager -> UndoManager -> Bool

GObject UndoManager Source # 
Instance details

Defined in GI.GtkSource.Interfaces.UndoManager

ManagedPtrNewtype UndoManager Source # 
Instance details

Defined in GI.GtkSource.Interfaces.UndoManager

Methods

toManagedPtr :: UndoManager -> ManagedPtr UndoManager

TypedObject UndoManager Source # 
Instance details

Defined in GI.GtkSource.Interfaces.UndoManager

Methods

glibType :: IO GType

IsGValue UndoManager Source #

Convert UndoManager to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.GtkSource.Interfaces.UndoManager

Methods

toGValue :: UndoManager -> IO GValue

fromGValue :: GValue -> IO UndoManager

HasParentTypes UndoManager Source # 
Instance details

Defined in GI.GtkSource.Interfaces.UndoManager

type ParentTypes UndoManager Source # 
Instance details

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

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

Overloaded 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 C_UndoManagerCanRedoChangedCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type UndoManagerCanRedoChangedCallback = IO () Source #

Emitted when the ability to redo has changed.

Since: 2.10

afterUndoManagerCanRedoChanged :: (IsUndoManager a, MonadIO m) => 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

onUndoManagerCanRedoChanged :: (IsUndoManager a, MonadIO m) => 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 C_UndoManagerCanUndoChangedCallback = Ptr () -> Ptr () -> IO () Source #

Type for the callback on the (unwrapped) C side.

type UndoManagerCanUndoChangedCallback = IO () Source #

Emitted when the ability to undo has changed.

Since: 2.10

afterUndoManagerCanUndoChanged :: (IsUndoManager a, MonadIO m) => 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

onUndoManagerCanUndoChanged :: (IsUndoManager a, MonadIO m) => 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