| 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 |
GI.Gtk.Objects.LayoutChild
Description
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
- noLayoutChild :: Maybe LayoutChild
- layoutChildGetChildWidget :: (HasCallStack, MonadIO m, IsLayoutChild a) => a -> m Widget
- layoutChildGetLayoutManager :: (HasCallStack, MonadIO m, IsLayoutChild a) => a -> m LayoutManager
- constructLayoutChildChildWidget :: (IsLayoutChild o, IsWidget a) => a -> IO (GValueConstruct o)
- getLayoutChildChildWidget :: (MonadIO m, IsLayoutChild o) => o -> m Widget
- constructLayoutChildLayoutManager :: (IsLayoutChild o, IsLayoutManager a) => a -> IO (GValueConstruct o)
- getLayoutChildLayoutManager :: (MonadIO m, IsLayoutChild o) => o -> m LayoutManager
Exported types
newtype LayoutChild Source #
Memory-managed wrapper type.
Constructors
| LayoutChild (ManagedPtr LayoutChild) |
Instances
| Eq LayoutChild Source # | |
Defined in GI.Gtk.Objects.LayoutChild | |
| IsGValue LayoutChild Source # | Convert |
Defined in GI.Gtk.Objects.LayoutChild | |
| GObject LayoutChild Source # | |
Defined in GI.Gtk.Objects.LayoutChild Methods gobjectType :: IO GType # | |
| HasParentTypes LayoutChild Source # | |
Defined in GI.Gtk.Objects.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.
noLayoutChild :: Maybe LayoutChild Source #
A convenience alias for Nothing :: Maybe LayoutChild.
Methods
Overloaded methods
getChildWidget
layoutChildGetChildWidget Source #
Arguments
| :: (HasCallStack, MonadIO m, IsLayoutChild a) | |
| => a |
|
| -> m Widget | Returns: a |
Retrieves the Widget associated to the given layoutChild.
getLayoutManager
layoutChildGetLayoutManager Source #
Arguments
| :: (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, IsWidget a) => a -> IO (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, IsLayoutManager a) => a -> IO (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