Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GtkWindowHandle is a titlebar area widget. When added into a window, it can be dragged to move the window, and handles right click double click and middle click as expected of a titlebar.
CSS nodes
WindowHandle
has a single CSS node with the name windowhandle.
Synopsis
- newtype WindowHandle = WindowHandle (ManagedPtr WindowHandle)
- class (GObject o, IsDescendantOf WindowHandle o) => IsWindowHandle o
- toWindowHandle :: (MonadIO m, IsWindowHandle o) => o -> m WindowHandle
- windowHandleGetChild :: (HasCallStack, MonadIO m, IsWindowHandle a) => a -> m (Maybe Widget)
- windowHandleNew :: (HasCallStack, MonadIO m) => m WindowHandle
- windowHandleSetChild :: (HasCallStack, MonadIO m, IsWindowHandle a, IsWidget b) => a -> Maybe b -> m ()
- clearWindowHandleChild :: (MonadIO m, IsWindowHandle o) => o -> m ()
- constructWindowHandleChild :: (IsWindowHandle o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getWindowHandleChild :: (MonadIO m, IsWindowHandle o) => o -> m (Maybe Widget)
- setWindowHandleChild :: (MonadIO m, IsWindowHandle o, IsWidget a) => o -> a -> m ()
Exported types
newtype WindowHandle Source #
Memory-managed wrapper type.
Instances
Eq WindowHandle Source # | |
Defined in GI.Gtk.Objects.WindowHandle (==) :: WindowHandle -> WindowHandle -> Bool # (/=) :: WindowHandle -> WindowHandle -> Bool # | |
IsGValue WindowHandle Source # | Convert |
Defined in GI.Gtk.Objects.WindowHandle toGValue :: WindowHandle -> IO GValue # fromGValue :: GValue -> IO WindowHandle # | |
ManagedPtrNewtype WindowHandle Source # | |
Defined in GI.Gtk.Objects.WindowHandle | |
TypedObject WindowHandle Source # | |
Defined in GI.Gtk.Objects.WindowHandle | |
GObject WindowHandle Source # | |
Defined in GI.Gtk.Objects.WindowHandle | |
HasParentTypes WindowHandle Source # | |
Defined in GI.Gtk.Objects.WindowHandle | |
type ParentTypes WindowHandle Source # | |
Defined in GI.Gtk.Objects.WindowHandle |
class (GObject o, IsDescendantOf WindowHandle o) => IsWindowHandle o Source #
Type class for types which can be safely cast to WindowHandle
, for instance with toWindowHandle
.
Instances
(GObject o, IsDescendantOf WindowHandle o) => IsWindowHandle o Source # | |
Defined in GI.Gtk.Objects.WindowHandle |
toWindowHandle :: (MonadIO m, IsWindowHandle o) => o -> m WindowHandle Source #
Cast to WindowHandle
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
getChild
:: (HasCallStack, MonadIO m, IsWindowHandle a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the child widget of |
Gets the child widget of self
.
new
:: (HasCallStack, MonadIO m) | |
=> m WindowHandle | Returns: a new |
Creates a new WindowHandle
.
setChild
:: (HasCallStack, MonadIO m, IsWindowHandle a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the child widget of self
.
Properties
child
No description available in the introspection data.
clearWindowHandleChild :: (MonadIO m, IsWindowHandle o) => o -> m () Source #
Set the value of the “child
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#child
constructWindowHandleChild :: (IsWindowHandle o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “child
” property. This is rarely needed directly, but it is used by new
.
getWindowHandleChild :: (MonadIO m, IsWindowHandle o) => o -> m (Maybe Widget) Source #
Get the value of the “child
” property.
When overloading is enabled, this is equivalent to
get
windowHandle #child
setWindowHandleChild :: (MonadIO m, IsWindowHandle o, IsWidget a) => o -> a -> m () Source #
Set the value of the “child
” property.
When overloading is enabled, this is equivalent to
set
windowHandle [ #child:=
value ]