Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The CellAreaBox
renders cell renderers into a row or a column
depending on its Orientation
.
GtkCellAreaBox uses a notion of packing. Packing
refers to adding cell renderers with reference to a particular position
in a CellAreaBox
. There are two reference positions: the
start and the end of the box.
When the CellAreaBox
is oriented in the OrientationVertical
orientation, the start is defined as the top of the box and the end is
defined as the bottom. In the OrientationHorizontal
orientation
start is defined as the left side and the end is defined as the right
side.
Alignments of GtkCellRenderers
rendered in adjacent rows can be
configured by configuring the CellAreaBox
align child cell property
with cellAreaCellSetProperty
or by specifying the "align"
argument to cellAreaBoxPackStart
and cellAreaBoxPackEnd
.
- newtype CellAreaBox = CellAreaBox (ManagedPtr CellAreaBox)
- class GObject o => IsCellAreaBox o
- toCellAreaBox :: IsCellAreaBox o => o -> IO CellAreaBox
- noCellAreaBox :: Maybe CellAreaBox
- data CellAreaBoxGetSpacingMethodInfo
- cellAreaBoxGetSpacing :: (HasCallStack, MonadIO m, IsCellAreaBox a) => a -> m Int32
- cellAreaBoxNew :: (HasCallStack, MonadIO m) => m CellAreaBox
- data CellAreaBoxPackEndMethodInfo
- cellAreaBoxPackEnd :: (HasCallStack, MonadIO m, IsCellAreaBox a, IsCellRenderer b) => a -> b -> Bool -> Bool -> Bool -> m ()
- data CellAreaBoxPackStartMethodInfo
- cellAreaBoxPackStart :: (HasCallStack, MonadIO m, IsCellAreaBox a, IsCellRenderer b) => a -> b -> Bool -> Bool -> Bool -> m ()
- data CellAreaBoxSetSpacingMethodInfo
- cellAreaBoxSetSpacing :: (HasCallStack, MonadIO m, IsCellAreaBox a) => a -> Int32 -> m ()
- data CellAreaBoxSpacingPropertyInfo
- cellAreaBoxSpacing :: AttrLabelProxy "spacing"
- constructCellAreaBoxSpacing :: IsCellAreaBox o => Int32 -> IO (GValueConstruct o)
- getCellAreaBoxSpacing :: (MonadIO m, IsCellAreaBox o) => o -> m Int32
- setCellAreaBoxSpacing :: (MonadIO m, IsCellAreaBox o) => o -> Int32 -> m ()
Exported types
newtype CellAreaBox Source #
GObject CellAreaBox Source # | |
IsObject CellAreaBox Source # | |
IsCellArea CellAreaBox Source # | |
IsOrientable CellAreaBox Source # | |
IsCellLayout CellAreaBox Source # | |
IsBuildable CellAreaBox Source # | |
IsCellAreaBox CellAreaBox Source # | |
((~) * info (ResolveCellAreaBoxMethod t CellAreaBox), MethodInfo * info CellAreaBox p) => IsLabel t (CellAreaBox -> p) Source # | |
((~) * info (ResolveCellAreaBoxMethod t CellAreaBox), MethodInfo * info CellAreaBox p) => IsLabelProxy t (CellAreaBox -> p) Source # | |
HasAttributeList * CellAreaBox Source # | |
type AttributeList CellAreaBox Source # | |
type SignalList CellAreaBox Source # | |
class GObject o => IsCellAreaBox o Source #
toCellAreaBox :: IsCellAreaBox o => o -> IO CellAreaBox Source #
Methods
getSpacing
data CellAreaBoxGetSpacingMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsCellAreaBox a) => MethodInfo * CellAreaBoxGetSpacingMethodInfo a signature Source # | |
cellAreaBoxGetSpacing Source #
:: (HasCallStack, MonadIO m, IsCellAreaBox a) | |
=> a |
|
-> m Int32 | Returns: the space added between cell renderers in |
Gets the spacing added between cell renderers.
Since: 3.0
new
:: (HasCallStack, MonadIO m) | |
=> m CellAreaBox | Returns: a newly created |
Creates a new CellAreaBox
.
Since: 3.0
packEnd
data CellAreaBoxPackEndMethodInfo Source #
((~) * signature (b -> Bool -> Bool -> Bool -> m ()), MonadIO m, IsCellAreaBox a, IsCellRenderer b) => MethodInfo * CellAreaBoxPackEndMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsCellAreaBox a, IsCellRenderer b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> Bool |
|
-> Bool |
|
-> m () |
Adds renderer
to box
, packed with reference to the end of box
.
The renderer
is packed after (away from end of) any other
CellRenderer
packed with reference to the end of box
.
Since: 3.0
packStart
data CellAreaBoxPackStartMethodInfo Source #
((~) * signature (b -> Bool -> Bool -> Bool -> m ()), MonadIO m, IsCellAreaBox a, IsCellRenderer b) => MethodInfo * CellAreaBoxPackStartMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsCellAreaBox a, IsCellRenderer b) | |
=> a |
|
-> b |
|
-> Bool |
|
-> Bool |
|
-> Bool |
|
-> m () |
Adds renderer
to box
, packed with reference to the start of box
.
The renderer
is packed after any other CellRenderer
packed
with reference to the start of box
.
Since: 3.0
setSpacing
data CellAreaBoxSetSpacingMethodInfo Source #
((~) * signature (Int32 -> m ()), MonadIO m, IsCellAreaBox a) => MethodInfo * CellAreaBoxSetSpacingMethodInfo a signature Source # | |
cellAreaBoxSetSpacing Source #
:: (HasCallStack, MonadIO m, IsCellAreaBox a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the spacing to add between cell renderers in box
.
Since: 3.0
Properties
spacing
data CellAreaBoxSpacingPropertyInfo Source #
cellAreaBoxSpacing :: AttrLabelProxy "spacing" Source #
constructCellAreaBoxSpacing :: IsCellAreaBox o => Int32 -> IO (GValueConstruct o) Source #
getCellAreaBoxSpacing :: (MonadIO m, IsCellAreaBox o) => o -> m Int32 Source #
setCellAreaBoxSpacing :: (MonadIO m, IsCellAreaBox o) => o -> Int32 -> m () Source #