Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Paned
has two panes, arranged either
horizontally or vertically. The division between
the two panes is adjustable by the user by dragging
a handle.
Child widgets are
added to the panes of the widget with panedPack1
and
panedPack2
. The division between the two children is set by default
from the size requests of the children, but it can be adjusted by the
user.
A paned widget draws a separator between the two child widgets and a
small handle that the user can drag to adjust the division. It does not
draw any relief around the children or around the separator. (The space
in which the separator is called the gutter.) Often, it is useful to put
each child inside a Frame
with the shadow type set to ShadowTypeIn
so that the gutter appears as a ridge. No separator is drawn if one of
the children is missing.
Each child has two options that can be set, resize
and shrink
. If
resize
is true, then when the Paned
is resized, that child will
expand or shrink along with the paned widget. If shrink
is true, then
that child can be made smaller than its requisition by the user.
Setting shrink
to False
allows the application to set a minimum size.
If resize
is false for both children, then this is treated as if
resize
is true for both children.
The application can set the position of the slider as if it were set
by the user, by calling panedSetPosition
.
CSS nodes
plain code
paned ├── <child> ├── separator[.wide] ╰── <child>
GtkPaned has a main CSS node with name paned, and a subnode for the separator with name separator. The subnode gets a .wide style class when the paned is supposed to be wide.
In horizontal orientation, the nodes of the children are always arranged from left to right. So :first-child will always select the leftmost child, regardless of text direction.
Creating a paned widget with minimum sizes.
C code
GtkWidget *hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); GtkWidget *frame1 = gtk_frame_new (NULL); GtkWidget *frame2 = gtk_frame_new (NULL); gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_IN); gtk_frame_set_shadow_type (GTK_FRAME (frame2), GTK_SHADOW_IN); gtk_widget_set_size_request (hpaned, 200, -1); gtk_paned_pack1 (GTK_PANED (hpaned), frame1, TRUE, FALSE); gtk_widget_set_size_request (frame1, 50, -1); gtk_paned_pack2 (GTK_PANED (hpaned), frame2, FALSE, FALSE); gtk_widget_set_size_request (frame2, 50, -1);
Synopsis
- newtype Paned = Paned (ManagedPtr Paned)
- class (GObject o, IsDescendantOf Paned o) => IsPaned o
- toPaned :: (MonadIO m, IsPaned o) => o -> m Paned
- noPaned :: Maybe Paned
- panedAdd1 :: (HasCallStack, MonadIO m, IsPaned a, IsWidget b) => a -> b -> m ()
- panedAdd2 :: (HasCallStack, MonadIO m, IsPaned a, IsWidget b) => a -> b -> m ()
- panedGetChild1 :: (HasCallStack, MonadIO m, IsPaned a) => a -> m (Maybe Widget)
- panedGetChild2 :: (HasCallStack, MonadIO m, IsPaned a) => a -> m (Maybe Widget)
- panedGetHandleWindow :: (HasCallStack, MonadIO m, IsPaned a) => a -> m Window
- panedGetPosition :: (HasCallStack, MonadIO m, IsPaned a) => a -> m Int32
- panedGetWideHandle :: (HasCallStack, MonadIO m, IsPaned a) => a -> m Bool
- panedNew :: (HasCallStack, MonadIO m) => Orientation -> m Paned
- panedPack1 :: (HasCallStack, MonadIO m, IsPaned a, IsWidget b) => a -> b -> Bool -> Bool -> m ()
- panedPack2 :: (HasCallStack, MonadIO m, IsPaned a, IsWidget b) => a -> b -> Bool -> Bool -> m ()
- panedSetPosition :: (HasCallStack, MonadIO m, IsPaned a) => a -> Int32 -> m ()
- panedSetWideHandle :: (HasCallStack, MonadIO m, IsPaned a) => a -> Bool -> m ()
- getPanedMaxPosition :: (MonadIO m, IsPaned o) => o -> m Int32
- getPanedMinPosition :: (MonadIO m, IsPaned o) => o -> m Int32
- constructPanedPosition :: IsPaned o => Int32 -> IO (GValueConstruct o)
- getPanedPosition :: (MonadIO m, IsPaned o) => o -> m Int32
- setPanedPosition :: (MonadIO m, IsPaned o) => o -> Int32 -> m ()
- constructPanedPositionSet :: IsPaned o => Bool -> IO (GValueConstruct o)
- getPanedPositionSet :: (MonadIO m, IsPaned o) => o -> m Bool
- setPanedPositionSet :: (MonadIO m, IsPaned o) => o -> Bool -> m ()
- constructPanedWideHandle :: IsPaned o => Bool -> IO (GValueConstruct o)
- getPanedWideHandle :: (MonadIO m, IsPaned o) => o -> m Bool
- setPanedWideHandle :: (MonadIO m, IsPaned o) => o -> Bool -> m ()
- type C_PanedAcceptPositionCallback = Ptr () -> Ptr () -> IO CInt
- type PanedAcceptPositionCallback = IO Bool
- afterPanedAcceptPosition :: (IsPaned a, MonadIO m) => a -> PanedAcceptPositionCallback -> m SignalHandlerId
- genClosure_PanedAcceptPosition :: MonadIO m => PanedAcceptPositionCallback -> m (GClosure C_PanedAcceptPositionCallback)
- mk_PanedAcceptPositionCallback :: C_PanedAcceptPositionCallback -> IO (FunPtr C_PanedAcceptPositionCallback)
- noPanedAcceptPositionCallback :: Maybe PanedAcceptPositionCallback
- onPanedAcceptPosition :: (IsPaned a, MonadIO m) => a -> PanedAcceptPositionCallback -> m SignalHandlerId
- wrap_PanedAcceptPositionCallback :: PanedAcceptPositionCallback -> C_PanedAcceptPositionCallback
- type C_PanedCancelPositionCallback = Ptr () -> Ptr () -> IO CInt
- type PanedCancelPositionCallback = IO Bool
- afterPanedCancelPosition :: (IsPaned a, MonadIO m) => a -> PanedCancelPositionCallback -> m SignalHandlerId
- genClosure_PanedCancelPosition :: MonadIO m => PanedCancelPositionCallback -> m (GClosure C_PanedCancelPositionCallback)
- mk_PanedCancelPositionCallback :: C_PanedCancelPositionCallback -> IO (FunPtr C_PanedCancelPositionCallback)
- noPanedCancelPositionCallback :: Maybe PanedCancelPositionCallback
- onPanedCancelPosition :: (IsPaned a, MonadIO m) => a -> PanedCancelPositionCallback -> m SignalHandlerId
- wrap_PanedCancelPositionCallback :: PanedCancelPositionCallback -> C_PanedCancelPositionCallback
- type C_PanedCycleChildFocusCallback = Ptr () -> CInt -> Ptr () -> IO CInt
- type PanedCycleChildFocusCallback = Bool -> IO Bool
- afterPanedCycleChildFocus :: (IsPaned a, MonadIO m) => a -> PanedCycleChildFocusCallback -> m SignalHandlerId
- genClosure_PanedCycleChildFocus :: MonadIO m => PanedCycleChildFocusCallback -> m (GClosure C_PanedCycleChildFocusCallback)
- mk_PanedCycleChildFocusCallback :: C_PanedCycleChildFocusCallback -> IO (FunPtr C_PanedCycleChildFocusCallback)
- noPanedCycleChildFocusCallback :: Maybe PanedCycleChildFocusCallback
- onPanedCycleChildFocus :: (IsPaned a, MonadIO m) => a -> PanedCycleChildFocusCallback -> m SignalHandlerId
- wrap_PanedCycleChildFocusCallback :: PanedCycleChildFocusCallback -> C_PanedCycleChildFocusCallback
- type C_PanedCycleHandleFocusCallback = Ptr () -> CInt -> Ptr () -> IO CInt
- type PanedCycleHandleFocusCallback = Bool -> IO Bool
- afterPanedCycleHandleFocus :: (IsPaned a, MonadIO m) => a -> PanedCycleHandleFocusCallback -> m SignalHandlerId
- genClosure_PanedCycleHandleFocus :: MonadIO m => PanedCycleHandleFocusCallback -> m (GClosure C_PanedCycleHandleFocusCallback)
- mk_PanedCycleHandleFocusCallback :: C_PanedCycleHandleFocusCallback -> IO (FunPtr C_PanedCycleHandleFocusCallback)
- noPanedCycleHandleFocusCallback :: Maybe PanedCycleHandleFocusCallback
- onPanedCycleHandleFocus :: (IsPaned a, MonadIO m) => a -> PanedCycleHandleFocusCallback -> m SignalHandlerId
- wrap_PanedCycleHandleFocusCallback :: PanedCycleHandleFocusCallback -> C_PanedCycleHandleFocusCallback
- type C_PanedMoveHandleCallback = Ptr () -> CUInt -> Ptr () -> IO CInt
- type PanedMoveHandleCallback = ScrollType -> IO Bool
- afterPanedMoveHandle :: (IsPaned a, MonadIO m) => a -> PanedMoveHandleCallback -> m SignalHandlerId
- genClosure_PanedMoveHandle :: MonadIO m => PanedMoveHandleCallback -> m (GClosure C_PanedMoveHandleCallback)
- mk_PanedMoveHandleCallback :: C_PanedMoveHandleCallback -> IO (FunPtr C_PanedMoveHandleCallback)
- noPanedMoveHandleCallback :: Maybe PanedMoveHandleCallback
- onPanedMoveHandle :: (IsPaned a, MonadIO m) => a -> PanedMoveHandleCallback -> m SignalHandlerId
- wrap_PanedMoveHandleCallback :: PanedMoveHandleCallback -> C_PanedMoveHandleCallback
- type C_PanedToggleHandleFocusCallback = Ptr () -> Ptr () -> IO CInt
- type PanedToggleHandleFocusCallback = IO Bool
- afterPanedToggleHandleFocus :: (IsPaned a, MonadIO m) => a -> PanedToggleHandleFocusCallback -> m SignalHandlerId
- genClosure_PanedToggleHandleFocus :: MonadIO m => PanedToggleHandleFocusCallback -> m (GClosure C_PanedToggleHandleFocusCallback)
- mk_PanedToggleHandleFocusCallback :: C_PanedToggleHandleFocusCallback -> IO (FunPtr C_PanedToggleHandleFocusCallback)
- noPanedToggleHandleFocusCallback :: Maybe PanedToggleHandleFocusCallback
- onPanedToggleHandleFocus :: (IsPaned a, MonadIO m) => a -> PanedToggleHandleFocusCallback -> m SignalHandlerId
- wrap_PanedToggleHandleFocusCallback :: PanedToggleHandleFocusCallback -> C_PanedToggleHandleFocusCallback
Exported types
Memory-managed wrapper type.
Instances
GObject Paned Source # | |
Defined in GI.Gtk.Objects.Paned gobjectType :: IO GType # | |
HasParentTypes Paned Source # | |
Defined in GI.Gtk.Objects.Paned | |
type ParentTypes Paned Source # | |
Defined in GI.Gtk.Objects.Paned type ParentTypes Paned = Container ': (Widget ': (Object ': (ImplementorIface ': (Buildable ': (Orientable ': ([] :: [Type])))))) |
class (GObject o, IsDescendantOf Paned o) => IsPaned o Source #
Instances
(GObject o, IsDescendantOf Paned o) => IsPaned o Source # | |
Defined in GI.Gtk.Objects.Paned |
Methods
add1
:: (HasCallStack, MonadIO m, IsPaned a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Adds a child to the top or left pane with default parameters. This is
equivalent to
gtk_paned_pack1 (paned, child, FALSE, TRUE)
.
add2
:: (HasCallStack, MonadIO m, IsPaned a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Adds a child to the bottom or right pane with default parameters. This
is equivalent to
gtk_paned_pack2 (paned, child, TRUE, TRUE)
.
getChild1
:: (HasCallStack, MonadIO m, IsPaned a) | |
=> a |
|
-> m (Maybe Widget) | Returns: first child, or |
Obtains the first child of the paned widget.
Since: 2.4
getChild2
:: (HasCallStack, MonadIO m, IsPaned a) | |
=> a |
|
-> m (Maybe Widget) | Returns: second child, or |
Obtains the second child of the paned widget.
Since: 2.4
getHandleWindow
:: (HasCallStack, MonadIO m, IsPaned a) | |
=> a |
|
-> m Window | Returns: the paned’s handle window. |
Returns the Window
of the handle. This function is
useful when handling button or motion events because it
enables the callback to distinguish between the window
of the paned, a child and the handle.
Since: 2.20
getPosition
:: (HasCallStack, MonadIO m, IsPaned a) | |
=> a |
|
-> m Int32 | Returns: position of the divider |
Obtains the position of the divider between the two panes.
getWideHandle
:: (HasCallStack, MonadIO m, IsPaned a) | |
=> a |
|
-> m Bool | Returns: |
Gets the Paned
:wide-handle
property.
Since: 3.16
new
:: (HasCallStack, MonadIO m) | |
=> Orientation |
|
-> m Paned | Returns: a new |
Creates a new Paned
widget.
Since: 3.0
pack1
:: (HasCallStack, MonadIO m, IsPaned a, IsWidget b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> Bool |
|
-> m () |
Adds a child to the top or left pane.
pack2
:: (HasCallStack, MonadIO m, IsPaned a, IsWidget b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> Bool |
|
-> m () |
Adds a child to the bottom or right pane.
setPosition
:: (HasCallStack, MonadIO m, IsPaned a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the position of the divider between the two panes.
setWideHandle
:: (HasCallStack, MonadIO m, IsPaned a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the Paned
:wide-handle
property.
Since: 3.16
Properties
maxPosition
The largest possible value for the position property. This property is derived from the size and shrinkability of the widget's children.
Since: 2.4
getPanedMaxPosition :: (MonadIO m, IsPaned o) => o -> m Int32 Source #
Get the value of the “max-position
” property.
When overloading is enabled, this is equivalent to
get
paned #maxPosition
minPosition
The smallest possible value for the position property. This property is derived from the size and shrinkability of the widget's children.
Since: 2.4
getPanedMinPosition :: (MonadIO m, IsPaned o) => o -> m Int32 Source #
Get the value of the “min-position
” property.
When overloading is enabled, this is equivalent to
get
paned #minPosition
position
No description available in the introspection data.
constructPanedPosition :: IsPaned o => Int32 -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “position
” property. This is rarely needed directly, but it is used by new
.
getPanedPosition :: (MonadIO m, IsPaned o) => o -> m Int32 Source #
Get the value of the “position
” property.
When overloading is enabled, this is equivalent to
get
paned #position
setPanedPosition :: (MonadIO m, IsPaned o) => o -> Int32 -> m () Source #
Set the value of the “position
” property.
When overloading is enabled, this is equivalent to
set
paned [ #position:=
value ]
positionSet
No description available in the introspection data.
constructPanedPositionSet :: IsPaned o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “position-set
” property. This is rarely needed directly, but it is used by new
.
getPanedPositionSet :: (MonadIO m, IsPaned o) => o -> m Bool Source #
Get the value of the “position-set
” property.
When overloading is enabled, this is equivalent to
get
paned #positionSet
setPanedPositionSet :: (MonadIO m, IsPaned o) => o -> Bool -> m () Source #
Set the value of the “position-set
” property.
When overloading is enabled, this is equivalent to
set
paned [ #positionSet:=
value ]
wideHandle
Setting this property to True
indicates that the paned needs
to provide stronger visual separation (e.g. because it separates
between two notebooks, whose tab rows would otherwise merge visually).
Since: 3.16
constructPanedWideHandle :: IsPaned o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “wide-handle
” property. This is rarely needed directly, but it is used by new
.
getPanedWideHandle :: (MonadIO m, IsPaned o) => o -> m Bool Source #
Get the value of the “wide-handle
” property.
When overloading is enabled, this is equivalent to
get
paned #wideHandle
setPanedWideHandle :: (MonadIO m, IsPaned o) => o -> Bool -> m () Source #
Set the value of the “wide-handle
” property.
When overloading is enabled, this is equivalent to
set
paned [ #wideHandle:=
value ]
Signals
acceptPosition
type C_PanedAcceptPositionCallback = Ptr () -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PanedAcceptPositionCallback = IO Bool Source #
The ::accept-position signal is a [keybinding signal][GtkBindingSignal] which gets emitted to accept the current position of the handle when moving it using key bindings.
The default binding for this signal is Return or Space.
Since: 2.0
afterPanedAcceptPosition :: (IsPaned a, MonadIO m) => a -> PanedAcceptPositionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “accept-position
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
paned #acceptPosition callback
genClosure_PanedAcceptPosition :: MonadIO m => PanedAcceptPositionCallback -> m (GClosure C_PanedAcceptPositionCallback) Source #
Wrap the callback into a GClosure
.
mk_PanedAcceptPositionCallback :: C_PanedAcceptPositionCallback -> IO (FunPtr C_PanedAcceptPositionCallback) Source #
Generate a function pointer callable from C code, from a C_PanedAcceptPositionCallback
.
noPanedAcceptPositionCallback :: Maybe PanedAcceptPositionCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PanedAcceptPositionCallback
onPanedAcceptPosition :: (IsPaned a, MonadIO m) => a -> PanedAcceptPositionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “accept-position
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
paned #acceptPosition callback
wrap_PanedAcceptPositionCallback :: PanedAcceptPositionCallback -> C_PanedAcceptPositionCallback Source #
Wrap a PanedAcceptPositionCallback
into a C_PanedAcceptPositionCallback
.
cancelPosition
type C_PanedCancelPositionCallback = Ptr () -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PanedCancelPositionCallback = IO Bool Source #
The ::cancel-position signal is a [keybinding signal][GtkBindingSignal] which gets emitted to cancel moving the position of the handle using key bindings. The position of the handle will be reset to the value prior to moving it.
The default binding for this signal is Escape.
Since: 2.0
afterPanedCancelPosition :: (IsPaned a, MonadIO m) => a -> PanedCancelPositionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “cancel-position
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
paned #cancelPosition callback
genClosure_PanedCancelPosition :: MonadIO m => PanedCancelPositionCallback -> m (GClosure C_PanedCancelPositionCallback) Source #
Wrap the callback into a GClosure
.
mk_PanedCancelPositionCallback :: C_PanedCancelPositionCallback -> IO (FunPtr C_PanedCancelPositionCallback) Source #
Generate a function pointer callable from C code, from a C_PanedCancelPositionCallback
.
noPanedCancelPositionCallback :: Maybe PanedCancelPositionCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PanedCancelPositionCallback
onPanedCancelPosition :: (IsPaned a, MonadIO m) => a -> PanedCancelPositionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “cancel-position
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
paned #cancelPosition callback
wrap_PanedCancelPositionCallback :: PanedCancelPositionCallback -> C_PanedCancelPositionCallback Source #
Wrap a PanedCancelPositionCallback
into a C_PanedCancelPositionCallback
.
cycleChildFocus
type C_PanedCycleChildFocusCallback = Ptr () -> CInt -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PanedCycleChildFocusCallback Source #
The ::cycle-child-focus signal is a [keybinding signal][GtkBindingSignal] which gets emitted to cycle the focus between the children of the paned.
The default binding is f6.
Since: 2.0
afterPanedCycleChildFocus :: (IsPaned a, MonadIO m) => a -> PanedCycleChildFocusCallback -> m SignalHandlerId Source #
Connect a signal handler for the “cycle-child-focus
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
paned #cycleChildFocus callback
genClosure_PanedCycleChildFocus :: MonadIO m => PanedCycleChildFocusCallback -> m (GClosure C_PanedCycleChildFocusCallback) Source #
Wrap the callback into a GClosure
.
mk_PanedCycleChildFocusCallback :: C_PanedCycleChildFocusCallback -> IO (FunPtr C_PanedCycleChildFocusCallback) Source #
Generate a function pointer callable from C code, from a C_PanedCycleChildFocusCallback
.
noPanedCycleChildFocusCallback :: Maybe PanedCycleChildFocusCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PanedCycleChildFocusCallback
onPanedCycleChildFocus :: (IsPaned a, MonadIO m) => a -> PanedCycleChildFocusCallback -> m SignalHandlerId Source #
Connect a signal handler for the “cycle-child-focus
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
paned #cycleChildFocus callback
wrap_PanedCycleChildFocusCallback :: PanedCycleChildFocusCallback -> C_PanedCycleChildFocusCallback Source #
Wrap a PanedCycleChildFocusCallback
into a C_PanedCycleChildFocusCallback
.
cycleHandleFocus
type C_PanedCycleHandleFocusCallback = Ptr () -> CInt -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PanedCycleHandleFocusCallback Source #
The ::cycle-handle-focus signal is a [keybinding signal][GtkBindingSignal] which gets emitted to cycle whether the paned should grab focus to allow the user to change position of the handle by using key bindings.
The default binding for this signal is f8.
Since: 2.0
afterPanedCycleHandleFocus :: (IsPaned a, MonadIO m) => a -> PanedCycleHandleFocusCallback -> m SignalHandlerId Source #
Connect a signal handler for the “cycle-handle-focus
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
paned #cycleHandleFocus callback
genClosure_PanedCycleHandleFocus :: MonadIO m => PanedCycleHandleFocusCallback -> m (GClosure C_PanedCycleHandleFocusCallback) Source #
Wrap the callback into a GClosure
.
mk_PanedCycleHandleFocusCallback :: C_PanedCycleHandleFocusCallback -> IO (FunPtr C_PanedCycleHandleFocusCallback) Source #
Generate a function pointer callable from C code, from a C_PanedCycleHandleFocusCallback
.
noPanedCycleHandleFocusCallback :: Maybe PanedCycleHandleFocusCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PanedCycleHandleFocusCallback
onPanedCycleHandleFocus :: (IsPaned a, MonadIO m) => a -> PanedCycleHandleFocusCallback -> m SignalHandlerId Source #
Connect a signal handler for the “cycle-handle-focus
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
paned #cycleHandleFocus callback
wrap_PanedCycleHandleFocusCallback :: PanedCycleHandleFocusCallback -> C_PanedCycleHandleFocusCallback Source #
Wrap a PanedCycleHandleFocusCallback
into a C_PanedCycleHandleFocusCallback
.
moveHandle
type C_PanedMoveHandleCallback = Ptr () -> CUInt -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PanedMoveHandleCallback Source #
= ScrollType |
|
-> IO Bool |
The ::move-handle signal is a [keybinding signal][GtkBindingSignal] which gets emitted to move the handle when the user is using key bindings to move it.
Since: 2.0
afterPanedMoveHandle :: (IsPaned a, MonadIO m) => a -> PanedMoveHandleCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-handle
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
paned #moveHandle callback
genClosure_PanedMoveHandle :: MonadIO m => PanedMoveHandleCallback -> m (GClosure C_PanedMoveHandleCallback) Source #
Wrap the callback into a GClosure
.
mk_PanedMoveHandleCallback :: C_PanedMoveHandleCallback -> IO (FunPtr C_PanedMoveHandleCallback) Source #
Generate a function pointer callable from C code, from a C_PanedMoveHandleCallback
.
noPanedMoveHandleCallback :: Maybe PanedMoveHandleCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PanedMoveHandleCallback
onPanedMoveHandle :: (IsPaned a, MonadIO m) => a -> PanedMoveHandleCallback -> m SignalHandlerId Source #
Connect a signal handler for the “move-handle
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
paned #moveHandle callback
wrap_PanedMoveHandleCallback :: PanedMoveHandleCallback -> C_PanedMoveHandleCallback Source #
Wrap a PanedMoveHandleCallback
into a C_PanedMoveHandleCallback
.
toggleHandleFocus
type C_PanedToggleHandleFocusCallback = Ptr () -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PanedToggleHandleFocusCallback = IO Bool Source #
The ::toggle-handle-focus is a [keybinding signal][GtkBindingSignal] which gets emitted to accept the current position of the handle and then move focus to the next widget in the focus chain.
The default binding is Tab.
Since: 2.0
afterPanedToggleHandleFocus :: (IsPaned a, MonadIO m) => a -> PanedToggleHandleFocusCallback -> m SignalHandlerId Source #
Connect a signal handler for the “toggle-handle-focus
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
paned #toggleHandleFocus callback
genClosure_PanedToggleHandleFocus :: MonadIO m => PanedToggleHandleFocusCallback -> m (GClosure C_PanedToggleHandleFocusCallback) Source #
Wrap the callback into a GClosure
.
mk_PanedToggleHandleFocusCallback :: C_PanedToggleHandleFocusCallback -> IO (FunPtr C_PanedToggleHandleFocusCallback) Source #
Generate a function pointer callable from C code, from a C_PanedToggleHandleFocusCallback
.
noPanedToggleHandleFocusCallback :: Maybe PanedToggleHandleFocusCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PanedToggleHandleFocusCallback
onPanedToggleHandleFocus :: (IsPaned a, MonadIO m) => a -> PanedToggleHandleFocusCallback -> m SignalHandlerId Source #
Connect a signal handler for the “toggle-handle-focus
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
paned #toggleHandleFocus callback