Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The Box
structure contains only private data and should
be accessed using the provided API
Since: 1.2
Synopsis
- newtype Box = Box (ManagedPtr Box)
- class (GObject o, IsDescendantOf Box o) => IsBox o
- toBox :: (MonadIO m, IsBox o) => o -> m Box
- boxGetColor :: (HasCallStack, MonadIO m, IsBox a) => a -> m Color
- boxGetLayoutManager :: (HasCallStack, MonadIO m, IsBox a) => a -> m LayoutManager
- boxNew :: (HasCallStack, MonadIO m, IsLayoutManager a) => a -> m Box
- boxPackv :: (HasCallStack, MonadIO m, IsBox a, IsActor b) => a -> b -> [Text] -> [GValue] -> m ()
- boxSetColor :: (HasCallStack, MonadIO m, IsBox a) => a -> Maybe Color -> m ()
- boxSetLayoutManager :: (HasCallStack, MonadIO m, IsBox a, IsLayoutManager b) => a -> b -> m ()
- clearBoxColor :: (MonadIO m, IsBox o) => o -> m ()
- constructBoxColor :: (IsBox o, MonadIO m) => Color -> m (GValueConstruct o)
- getBoxColor :: (MonadIO m, IsBox o) => o -> m (Maybe Color)
- setBoxColor :: (MonadIO m, IsBox o) => o -> Color -> m ()
- constructBoxColorSet :: (IsBox o, MonadIO m) => Bool -> m (GValueConstruct o)
- getBoxColorSet :: (MonadIO m, IsBox o) => o -> m Bool
- setBoxColorSet :: (MonadIO m, IsBox o) => o -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Box Source # | |
GObject Box Source # | |
Defined in GI.Clutter.Objects.Box | |
ManagedPtrNewtype Box Source # | |
Defined in GI.Clutter.Objects.Box toManagedPtr :: Box -> ManagedPtr Box | |
TypedObject Box Source # | |
Defined in GI.Clutter.Objects.Box | |
HasParentTypes Box Source # | |
Defined in GI.Clutter.Objects.Box | |
IsGValue (Maybe Box) Source # | Convert |
Defined in GI.Clutter.Objects.Box gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Box -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Box) | |
type ParentTypes Box Source # | |
Defined in GI.Clutter.Objects.Box |
class (GObject o, IsDescendantOf Box o) => IsBox o Source #
Instances
(GObject o, IsDescendantOf Box o) => IsBox o Source # | |
Defined in GI.Clutter.Objects.Box |
Methods
Click to display all available methods, including inherited ones
Methods
addAction, addActionWithName, addActor, addChild, addConstraint, addConstraintWithName, addEffect, addEffectWithName, addTransition, allocate, allocateAlignFill, allocateAvailableSize, allocatePreferredSize, animateProperty, animateWithAlphav, animateWithTimelinev, animatev, applyRelativeTransformToPoint, applyTransformToPoint, bindModel, bindProperty, bindPropertyFull, childGetProperty, childNotify, childSetProperty, clearActions, clearConstraints, clearEffects, contains, continuePaint, createChildMeta, createPangoContext, createPangoLayout, destroy, destroyAllChildren, destroyChildMeta, detachAnimation, event, findChildByName, findProperty, forceFloating, foreach, foreachWithInternals, freezeNotify, getv, grabKeyFocus, hasActions, hasAllocation, hasClip, hasConstraints, hasEffects, hasKeyFocus, hasOverlaps, hasPointer, hide, hideAll, insertChildAbove, insertChildAtIndex, insertChildBelow, interpolateValue, isFloating, isInClonePaint, isMapped, isRealized, isRotated, isScaled, isVisible, lower, lowerBottom, lowerChild, map, moveAnchorPoint, moveAnchorPointFromGravity, moveBy, needsExpand, notify, notifyByPspec, packv, paint, parseCustomNode, popInternal, pushInternal, queueRedraw, queueRedrawWithClip, queueRelayout, raise, raiseChild, raiseTop, realize, ref, refSink, removeAction, removeActionByName, removeActor, removeAllChildren, removeAllTransitions, removeChild, removeClip, removeConstraint, removeConstraintByName, removeEffect, removeEffectByName, removeTransition, reparent, replaceChild, restoreEasingState, runDispose, saveEasingState, shouldPickPaint, show, showAll, sortDepthOrder, stealData, stealQdata, thawNotify, transformStagePoint, unmap, unparent, unrealize, unref, unsetFlags, watchClosure.
Getters
getAbsAllocationVertices, getAccessible, getAction, getActions, getAllocationBox, getAllocationGeometry, getAllocationVertices, getAnchorPoint, getAnchorPointGravity, getAnimation, getBackgroundColor, getChildAtIndex, getChildMeta, getChildTransform, getChildren, getClip, getClipToAllocation, getColor, getConstraint, getConstraints, getContent, getContentBox, getContentGravity, getContentRepeat, getContentScalingFilters, getData, getDefaultPaintVolume, getDepth, getEasingDelay, getEasingDuration, getEasingMode, getEffect, getEffects, getFirstChild, getFixedPositionSet, getFlags, getGeometry, getGid, getHeight, getId, getInitialState, getLastChild, getLayoutManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getNChildren, getName, getNextSibling, getOffscreenRedirect, getOpacity, getPaintBox, getPaintOpacity, getPaintVisibility, getPaintVolume, getPangoContext, getParent, getPivotPoint, getPivotPointZ, getPosition, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreviousSibling, getProperty, getQdata, getReactive, getRequestMode, getRotation, getRotationAngle, getScale, getScaleCenter, getScaleGravity, getScaleZ, getShader, getSize, getStage, getTextDirection, getTransform, getTransformationMatrix, getTransformedPaintVolume, getTransformedPosition, getTransformedSize, getTransition, getTranslation, getWidth, getX, getXAlign, getXExpand, getY, getYAlign, getYExpand, getZPosition, getZRotationGravity.
Setters
setAllocation, setAnchorPoint, setAnchorPointFromGravity, setBackgroundColor, setChildAboveSibling, setChildAtIndex, setChildBelowSibling, setChildTransform, setClip, setClipToAllocation, setColor, setContent, setContentGravity, setContentRepeat, setContentScalingFilters, setCustomProperty, setData, setDataFull, setDepth, setEasingDelay, setEasingDuration, setEasingMode, setFinalState, setFixedPositionSet, setFlags, setGeometry, setHeight, setId, setLayoutManager, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setName, setOffscreenRedirect, setOpacity, setParent, setPivotPoint, setPivotPointZ, setPosition, setProperty, setReactive, setRequestMode, setRotation, setRotationAngle, setScale, setScaleFull, setScaleWithGravity, setScaleZ, setShader, setShaderParam, setShaderParamFloat, setShaderParamInt, setSize, setTextDirection, setTransform, setTranslation, setWidth, setX, setXAlign, setXExpand, setY, setYAlign, setYExpand, setZPosition, setZRotationFromGravity.
getColor
:: (HasCallStack, MonadIO m, IsBox a) | |
=> a |
|
-> m Color |
Deprecated: (Since version 1.10)Use actorGetBackgroundColor
instead.
Retrieves the background color of box
If the Box:colorSet property is set to False
the
returned Color
is undefined
Since: 1.2
getLayoutManager
:: (HasCallStack, MonadIO m, IsBox a) | |
=> a |
|
-> m LayoutManager | Returns: a |
Deprecated: (Since version 1.10)Use actorGetLayoutManager
instead.
Retrieves the LayoutManager
instance used by box
Since: 1.2
new
:: (HasCallStack, MonadIO m, IsLayoutManager a) | |
=> a |
|
-> m Box | Returns: the newly created |
packv
:: (HasCallStack, MonadIO m, IsBox a, IsActor b) | |
=> a |
|
-> b |
|
-> [Text] |
|
-> [GValue] |
|
-> m () |
Deprecated: (Since version 1.10)Use actorAddChild
instead. To set specific layout properties, use clutter_layout_manager_child_set()
Vector-based variant of clutter_box_pack()
, intended for language
bindings to use
Since: 1.2
setColor
:: (HasCallStack, MonadIO m, IsBox a) | |
=> a |
|
-> Maybe Color |
|
-> m () |
Deprecated: (Since version 1.10)Use actorSetBackgroundColor
instead.
Sets (or unsets) the background color for box
Since: 1.2
setLayoutManager
:: (HasCallStack, MonadIO m, IsBox a, IsLayoutManager b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 1.10)Use actorSetLayoutManager
instead.
Sets the LayoutManager
for box
A LayoutManager
is a delegate object that controls the
layout of the children of box
Since: 1.2
Properties
color
The color to be used to paint the background of the
Box
. Setting this property will set the
Box:colorSet property as a side effect
This property sets the Actor:backgroundColor property internally.
Since: 1.2
clearBoxColor :: (MonadIO m, IsBox o) => o -> m () Source #
Set the value of the “color
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#color
constructBoxColor :: (IsBox o, MonadIO m) => Color -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “color
” property. This is rarely needed directly, but it is used by new
.
getBoxColor :: (MonadIO m, IsBox o) => o -> m (Maybe Color) Source #
Get the value of the “color
” property.
When overloading is enabled, this is equivalent to
get
box #color
setBoxColor :: (MonadIO m, IsBox o) => o -> Color -> m () Source #
Set the value of the “color
” property.
When overloading is enabled, this is equivalent to
set
box [ #color:=
value ]
colorSet
Whether the Box:color property has been set.
This property reads the Actor:backgroundColorSet property internally.
Since: 1.2
constructBoxColorSet :: (IsBox o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “color-set
” property. This is rarely needed directly, but it is used by new
.
getBoxColorSet :: (MonadIO m, IsBox o) => o -> m Bool Source #
Get the value of the “color-set
” property.
When overloading is enabled, this is equivalent to
get
box #colorSet
setBoxColorSet :: (MonadIO m, IsBox o) => o -> Bool -> m () Source #
Set the value of the “color-set
” property.
When overloading is enabled, this is equivalent to
set
box [ #colorSet:=
value ]