gi-gtk-4.0.4: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Exported types

newtype LayoutChild Source #

Memory-managed wrapper type.

Constructors

LayoutChild (ManagedPtr LayoutChild) 

Instances

Instances details
Eq LayoutChild Source # 
Instance details

Defined in GI.Gtk.Objects.LayoutChild

GObject LayoutChild Source # 
Instance details

Defined in GI.Gtk.Objects.LayoutChild

ManagedPtrNewtype LayoutChild Source # 
Instance details

Defined in GI.Gtk.Objects.LayoutChild

Methods

toManagedPtr :: LayoutChild -> ManagedPtr LayoutChild

TypedObject LayoutChild Source # 
Instance details

Defined in GI.Gtk.Objects.LayoutChild

Methods

glibType :: IO GType

HasParentTypes LayoutChild Source # 
Instance details

Defined in GI.Gtk.Objects.LayoutChild

IsGValue (Maybe LayoutChild) Source #

Convert LayoutChild to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.LayoutChild

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe LayoutChild -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe LayoutChild)

type ParentTypes LayoutChild Source # 
Instance details

Defined in GI.Gtk.Objects.LayoutChild

type ParentTypes LayoutChild = '[Object]

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

Instances details
(GObject o, IsDescendantOf LayoutChild o) => IsLayoutChild o Source # 
Instance details

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

getChildWidget

layoutChildGetChildWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsLayoutChild a) 
=> a

layoutChild: a LayoutChild

-> m Widget

Returns: a Widget

Retrieves the Widget associated to the given layoutChild.

getLayoutManager

layoutChildGetLayoutManager Source #

Arguments

:: (HasCallStack, MonadIO m, IsLayoutChild a) 
=> a

layoutChild: a LayoutChild

-> m LayoutManager

Returns: a LayoutManager

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