gi-atk-2.0.21: Atk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Atk.Interfaces.Window

Description

Window should be implemented by the UI elements that represent a top-level window, such as the main window of an application or dialog.

Synopsis

Exported types

newtype Window Source #

Memory-managed wrapper type.

Constructors

Window (ManagedPtr Window) 

Instances

Instances details
Eq Window Source # 
Instance details

Defined in GI.Atk.Interfaces.Window

Methods

(==) :: Window -> Window -> Bool #

(/=) :: Window -> Window -> Bool #

GObject Window Source # 
Instance details

Defined in GI.Atk.Interfaces.Window

Methods

gobjectType :: IO GType #

IsGValue Window Source #

Convert Window to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Atk.Interfaces.Window

HasParentTypes Window Source # 
Instance details

Defined in GI.Atk.Interfaces.Window

type ParentTypes Window Source # 
Instance details

Defined in GI.Atk.Interfaces.Window

noWindow :: Maybe Window Source #

A convenience alias for Nothing :: Maybe Window.

class (GObject o, IsDescendantOf Window o) => IsWindow o Source #

Type class for types which can be safely cast to Window, for instance with toWindow.

Instances

Instances details
(GObject o, IsDescendantOf Window o) => IsWindow o Source # 
Instance details

Defined in GI.Atk.Interfaces.Window

toWindow :: (MonadIO m, IsWindow o) => o -> m Window Source #

Cast to Window, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

Signals

activate

type C_WindowActivateCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowActivateCallback = IO () Source #

The signal activate is emitted when a window becomes the active window of the application or session.

Since: 2.2

afterWindowActivate :: (IsWindow a, MonadIO m) => a -> WindowActivateCallback -> m SignalHandlerId Source #

Connect a signal handler for the activate signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #activate callback

onWindowActivate :: (IsWindow a, MonadIO m) => a -> WindowActivateCallback -> m SignalHandlerId Source #

Connect a signal handler for the activate signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #activate callback

create

type C_WindowCreateCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowCreateCallback = IO () Source #

The signal create is emitted when a new window is created.

Since: 2.2

afterWindowCreate :: (IsWindow a, MonadIO m) => a -> WindowCreateCallback -> m SignalHandlerId Source #

Connect a signal handler for the create signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #create callback

mk_WindowCreateCallback :: C_WindowCreateCallback -> IO (FunPtr C_WindowCreateCallback) Source #

Generate a function pointer callable from C code, from a C_WindowCreateCallback.

onWindowCreate :: (IsWindow a, MonadIO m) => a -> WindowCreateCallback -> m SignalHandlerId Source #

Connect a signal handler for the create signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #create callback

deactivate

type C_WindowDeactivateCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowDeactivateCallback = IO () Source #

The signal deactivate is emitted when a window is no longer the active window of the application or session.

Since: 2.2

afterWindowDeactivate :: (IsWindow a, MonadIO m) => a -> WindowDeactivateCallback -> m SignalHandlerId Source #

Connect a signal handler for the deactivate signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #deactivate callback

onWindowDeactivate :: (IsWindow a, MonadIO m) => a -> WindowDeactivateCallback -> m SignalHandlerId Source #

Connect a signal handler for the deactivate signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #deactivate callback

destroy

type C_WindowDestroyCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowDestroyCallback = IO () Source #

The signal destroy is emitted when a window is destroyed.

Since: 2.2

afterWindowDestroy :: (IsWindow a, MonadIO m) => a -> WindowDestroyCallback -> m SignalHandlerId Source #

Connect a signal handler for the destroy signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #destroy callback

mk_WindowDestroyCallback :: C_WindowDestroyCallback -> IO (FunPtr C_WindowDestroyCallback) Source #

Generate a function pointer callable from C code, from a C_WindowDestroyCallback.

onWindowDestroy :: (IsWindow a, MonadIO m) => a -> WindowDestroyCallback -> m SignalHandlerId Source #

Connect a signal handler for the destroy signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #destroy callback

maximize

type C_WindowMaximizeCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowMaximizeCallback = IO () Source #

The signal maximize is emitted when a window is maximized.

Since: 2.2

afterWindowMaximize :: (IsWindow a, MonadIO m) => a -> WindowMaximizeCallback -> m SignalHandlerId Source #

Connect a signal handler for the maximize signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #maximize callback

onWindowMaximize :: (IsWindow a, MonadIO m) => a -> WindowMaximizeCallback -> m SignalHandlerId Source #

Connect a signal handler for the maximize signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #maximize callback

minimize

type C_WindowMinimizeCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowMinimizeCallback = IO () Source #

The signal minimize is emitted when a window is minimized.

Since: 2.2

afterWindowMinimize :: (IsWindow a, MonadIO m) => a -> WindowMinimizeCallback -> m SignalHandlerId Source #

Connect a signal handler for the minimize signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #minimize callback

onWindowMinimize :: (IsWindow a, MonadIO m) => a -> WindowMinimizeCallback -> m SignalHandlerId Source #

Connect a signal handler for the minimize signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #minimize callback

move

type C_WindowMoveCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowMoveCallback = IO () Source #

The signal move is emitted when a window is moved.

Since: 2.2

afterWindowMove :: (IsWindow a, MonadIO m) => a -> WindowMoveCallback -> m SignalHandlerId Source #

Connect a signal handler for the move signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #move callback

mk_WindowMoveCallback :: C_WindowMoveCallback -> IO (FunPtr C_WindowMoveCallback) Source #

Generate a function pointer callable from C code, from a C_WindowMoveCallback.

onWindowMove :: (IsWindow a, MonadIO m) => a -> WindowMoveCallback -> m SignalHandlerId Source #

Connect a signal handler for the move signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #move callback

resize

type C_WindowResizeCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowResizeCallback = IO () Source #

The signal resize is emitted when a window is resized.

Since: 2.2

afterWindowResize :: (IsWindow a, MonadIO m) => a -> WindowResizeCallback -> m SignalHandlerId Source #

Connect a signal handler for the resize signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #resize callback

mk_WindowResizeCallback :: C_WindowResizeCallback -> IO (FunPtr C_WindowResizeCallback) Source #

Generate a function pointer callable from C code, from a C_WindowResizeCallback.

onWindowResize :: (IsWindow a, MonadIO m) => a -> WindowResizeCallback -> m SignalHandlerId Source #

Connect a signal handler for the resize signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #resize callback

restore

type C_WindowRestoreCallback = Ptr () -> Ptr () -> IO () Source #

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

type WindowRestoreCallback = IO () Source #

The signal restore is emitted when a window is restored.

Since: 2.2

afterWindowRestore :: (IsWindow a, MonadIO m) => a -> WindowRestoreCallback -> m SignalHandlerId Source #

Connect a signal handler for the restore signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after window #restore callback

mk_WindowRestoreCallback :: C_WindowRestoreCallback -> IO (FunPtr C_WindowRestoreCallback) Source #

Generate a function pointer callable from C code, from a C_WindowRestoreCallback.

onWindowRestore :: (IsWindow a, MonadIO m) => a -> WindowRestoreCallback -> m SignalHandlerId Source #

Connect a signal handler for the restore signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on window #restore callback