Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
LayoutChild
is the base class for objects that are meant to hold
layout properties. If a LayoutManager
has per-child properties,
like their packing type, or the horizontal and vertical span, or the
icon name, then the layout manager should use a LayoutChild
implementation to store those properties.
A LayoutChild
instance is only ever valid while a widget is part
of a layout.
Synopsis
- newtype LayoutChild = LayoutChild (ManagedPtr LayoutChild)
- class (GObject o, IsDescendantOf LayoutChild o) => IsLayoutChild o
- toLayoutChild :: (MonadIO m, IsLayoutChild o) => o -> m LayoutChild
- layoutChildGetChildWidget :: (HasCallStack, MonadIO m, IsLayoutChild a) => a -> m Widget
- layoutChildGetLayoutManager :: (HasCallStack, MonadIO m, IsLayoutChild a) => a -> m LayoutManager
- constructLayoutChildChildWidget :: (IsLayoutChild o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getLayoutChildChildWidget :: (MonadIO m, IsLayoutChild o) => o -> m Widget
- constructLayoutChildLayoutManager :: (IsLayoutChild o, MonadIO m, IsLayoutManager a) => a -> m (GValueConstruct o)
- getLayoutChildLayoutManager :: (MonadIO m, IsLayoutChild o) => o -> m LayoutManager
Exported types
newtype LayoutChild Source #
Memory-managed wrapper type.
LayoutChild (ManagedPtr LayoutChild) |
Instances
Eq LayoutChild Source # | |
Defined in GI.Gtk.Objects.LayoutChild (==) :: LayoutChild -> LayoutChild -> Bool # (/=) :: LayoutChild -> LayoutChild -> Bool # | |
GObject LayoutChild Source # | |
Defined in GI.Gtk.Objects.LayoutChild | |
ManagedPtrNewtype LayoutChild Source # | |
Defined in GI.Gtk.Objects.LayoutChild toManagedPtr :: LayoutChild -> ManagedPtr LayoutChild | |
TypedObject LayoutChild Source # | |
Defined in GI.Gtk.Objects.LayoutChild | |
HasParentTypes LayoutChild Source # | |
Defined in GI.Gtk.Objects.LayoutChild | |
IsGValue (Maybe LayoutChild) Source # | Convert |
Defined in GI.Gtk.Objects.LayoutChild gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe LayoutChild -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe LayoutChild) | |
type ParentTypes LayoutChild Source # | |
Defined in GI.Gtk.Objects.LayoutChild |
class (GObject o, IsDescendantOf LayoutChild o) => IsLayoutChild o Source #
Type class for types which can be safely cast to LayoutChild
, for instance with toLayoutChild
.
Instances
(GObject o, IsDescendantOf LayoutChild o) => IsLayoutChild o Source # | |
Defined in GI.Gtk.Objects.LayoutChild |
toLayoutChild :: (MonadIO m, IsLayoutChild o) => o -> m LayoutChild Source #
Cast to LayoutChild
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getChildWidget, getData, getLayoutManager, getProperty, getQdata.
Setters
getChildWidget
layoutChildGetChildWidget Source #
:: (HasCallStack, MonadIO m, IsLayoutChild a) | |
=> a |
|
-> m Widget | Returns: a |
Retrieves the Widget
associated to the given layoutChild
.
getLayoutManager
layoutChildGetLayoutManager Source #
:: (HasCallStack, MonadIO m, IsLayoutChild a) | |
=> a |
|
-> m LayoutManager | Returns: a |
Retrieves the LayoutManager
instance that created the
given layoutChild
.
Properties
childWidget
The widget that is associated to the LayoutChild
instance.
constructLayoutChildChildWidget :: (IsLayoutChild o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “child-widget
” property. This is rarely needed directly, but it is used by new
.
getLayoutChildChildWidget :: (MonadIO m, IsLayoutChild o) => o -> m Widget Source #
Get the value of the “child-widget
” property.
When overloading is enabled, this is equivalent to
get
layoutChild #childWidget
layoutManager
The layout manager that created the LayoutChild
instance.
constructLayoutChildLayoutManager :: (IsLayoutChild o, MonadIO m, IsLayoutManager a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “layout-manager
” property. This is rarely needed directly, but it is used by new
.
getLayoutChildLayoutManager :: (MonadIO m, IsLayoutChild o) => o -> m LayoutManager Source #
Get the value of the “layout-manager
” property.
When overloading is enabled, this is equivalent to
get
layoutChild #layoutManager