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 |
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
- newtype CenterLayout = CenterLayout (ManagedPtr CenterLayout)
- class (GObject o, IsDescendantOf CenterLayout o) => IsCenterLayout o
- toCenterLayout :: (MonadIO m, IsCenterLayout o) => o -> m CenterLayout
- centerLayoutGetBaselinePosition :: (HasCallStack, MonadIO m, IsCenterLayout a) => a -> m BaselinePosition
- centerLayoutGetCenterWidget :: (HasCallStack, MonadIO m, IsCenterLayout a) => a -> m Widget
- centerLayoutGetEndWidget :: (HasCallStack, MonadIO m, IsCenterLayout a) => a -> m Widget
- centerLayoutGetOrientation :: (HasCallStack, MonadIO m, IsCenterLayout a) => a -> m Orientation
- centerLayoutGetStartWidget :: (HasCallStack, MonadIO m, IsCenterLayout a) => a -> m Widget
- centerLayoutNew :: (HasCallStack, MonadIO m) => m CenterLayout
- centerLayoutSetBaselinePosition :: (HasCallStack, MonadIO m, IsCenterLayout a) => a -> BaselinePosition -> m ()
- centerLayoutSetCenterWidget :: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) => a -> b -> m ()
- centerLayoutSetEndWidget :: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) => a -> b -> m ()
- centerLayoutSetOrientation :: (HasCallStack, MonadIO m, IsCenterLayout a) => a -> Orientation -> m ()
- centerLayoutSetStartWidget :: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) => a -> b -> m ()
Exported types
newtype CenterLayout Source #
Memory-managed wrapper type.
Instances
Eq CenterLayout Source # | |
Defined in GI.Gtk.Objects.CenterLayout (==) :: CenterLayout -> CenterLayout -> Bool # (/=) :: CenterLayout -> CenterLayout -> Bool # | |
IsGValue CenterLayout Source # | Convert |
Defined in GI.Gtk.Objects.CenterLayout toGValue :: CenterLayout -> IO GValue # fromGValue :: GValue -> IO CenterLayout # | |
ManagedPtrNewtype CenterLayout Source # | |
Defined in GI.Gtk.Objects.CenterLayout | |
TypedObject CenterLayout Source # | |
Defined in GI.Gtk.Objects.CenterLayout | |
GObject CenterLayout Source # | |
Defined in GI.Gtk.Objects.CenterLayout | |
HasParentTypes CenterLayout Source # | |
Defined in GI.Gtk.Objects.CenterLayout | |
type ParentTypes CenterLayout Source # | |
Defined in GI.Gtk.Objects.CenterLayout |
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
(GObject o, IsDescendantOf CenterLayout o) => IsCenterLayout o Source # | |
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 #
:: (HasCallStack, MonadIO m, IsCenterLayout a) | |
=> a |
|
-> m BaselinePosition | Returns: The current baseline position of |
Returns the baseline position of the layout.
getCenterWidget
centerLayoutGetCenterWidget Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a) | |
=> a |
|
-> m Widget | Returns: the current center widget of |
Returns the center widget of the layout.
getEndWidget
centerLayoutGetEndWidget Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a) | |
=> a |
|
-> m Widget | Returns: the current end widget of |
Returns the end widget of the layout.
getOrientation
centerLayoutGetOrientation Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a) | |
=> a |
|
-> m Orientation | Returns: The current orientation of |
Gets the current orienration of the layout manager.
getStartWidget
centerLayoutGetStartWidget Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a) | |
=> a |
|
-> m Widget | Returns: The current start widget of |
Returns the start widget fo the layout.
new
:: (HasCallStack, MonadIO m) | |
=> m CenterLayout | Returns: the newly created |
Creates a new CenterLayout
.
setBaselinePosition
centerLayoutSetBaselinePosition Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a) | |
=> a |
|
-> BaselinePosition |
|
-> m () |
Sets the new baseline position of self
setCenterWidget
centerLayoutSetCenterWidget Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Sets the new center widget of self
setEndWidget
centerLayoutSetEndWidget Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Sets the new end widget of self
setOrientation
centerLayoutSetOrientation Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a) | |
=> a |
|
-> Orientation |
|
-> m () |
Sets the orientation of self
.
setStartWidget
centerLayoutSetStartWidget Source #
:: (HasCallStack, MonadIO m, IsCenterLayout a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Sets the new start widget of self
.