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

GI.Gtk.Objects.CenterLayout

Description

A CenterLayout is a layout manager that manages up to three children. The start widget is allocated at the start of the layout (left in LRT layouts and right in RTL ones), and the end widget at the end.

The center widget is centered regarding the full width of the layout's.

Synopsis

Exported types

class (GObject o, IsDescendantOf CenterLayout o) => IsCenterLayout o Source #

Type class for types which can be safely cast to CenterLayout, for instance with toCenterLayout.

Instances

Instances details
(GObject o, IsDescendantOf CenterLayout o) => IsCenterLayout o Source # 
Instance details

Defined in GI.Gtk.Objects.CenterLayout

toCenterLayout :: (MonadIO m, IsCenterLayout o) => o -> m CenterLayout Source #

Cast to CenterLayout, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

getBaselinePosition

centerLayoutGetBaselinePosition Source #

Arguments

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

self: a CenterLayout

-> m BaselinePosition

Returns: The current baseline position of self.

Returns the baseline position of the layout.

getCenterWidget

centerLayoutGetCenterWidget Source #

Arguments

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

self: a CenterLayout

-> m Widget

Returns: the current center widget of self

Returns the center widget of the layout.

getEndWidget

centerLayoutGetEndWidget Source #

Arguments

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

self: a CenterLayout

-> m Widget

Returns: the current end widget of self

Returns the end widget of the layout.

getOrientation

centerLayoutGetOrientation Source #

Arguments

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

self: a CenterLayout

-> m Orientation

Returns: The current orientation of self

Gets the current orienration of the layout manager.

getStartWidget

centerLayoutGetStartWidget Source #

Arguments

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

self: a CenterLayout

-> m Widget

Returns: The current start widget of self

Returns the start widget fo the layout.

new

centerLayoutNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m CenterLayout

Returns: the newly created CenterLayout

Creates a new CenterLayout.

setBaselinePosition

centerLayoutSetBaselinePosition Source #

Arguments

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

self: a CenterLayout

-> BaselinePosition

baselinePosition: the new baseline position

-> m () 

Sets the new baseline position of self

setCenterWidget

centerLayoutSetCenterWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) 
=> a

self: a CenterLayout

-> b

widget: the new center widget

-> m () 

Sets the new center widget of self

setEndWidget

centerLayoutSetEndWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) 
=> a

self: a CenterLayout

-> b

widget: the new end widget

-> m () 

Sets the new end widget of self

setOrientation

centerLayoutSetOrientation Source #

Arguments

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

self: a CenterLayout

-> Orientation

orientation: the new orientation

-> m () 

Sets the orientation of self.

setStartWidget

centerLayoutSetStartWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) 
=> a

self: a CenterLayout

-> b

widget: the new start widget

-> m () 

Sets the new start widget of self.