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 Rectangle
structure contains only private data
and should be accessed using the provided API
Since: 0.2
Synopsis
- newtype Rectangle = Rectangle (ManagedPtr Rectangle)
- class (GObject o, IsDescendantOf Rectangle o) => IsRectangle o
- toRectangle :: (MonadIO m, IsRectangle o) => o -> m Rectangle
- rectangleGetBorderColor :: (HasCallStack, MonadIO m, IsRectangle a) => a -> m Color
- rectangleGetBorderWidth :: (HasCallStack, MonadIO m, IsRectangle a) => a -> m Word32
- rectangleGetColor :: (HasCallStack, MonadIO m, IsRectangle a) => a -> m Color
- rectangleNew :: (HasCallStack, MonadIO m) => m Rectangle
- rectangleNewWithColor :: (HasCallStack, MonadIO m) => Color -> m Rectangle
- rectangleSetBorderColor :: (HasCallStack, MonadIO m, IsRectangle a) => a -> Color -> m ()
- rectangleSetBorderWidth :: (HasCallStack, MonadIO m, IsRectangle a) => a -> Word32 -> m ()
- rectangleSetColor :: (HasCallStack, MonadIO m, IsRectangle a) => a -> Color -> m ()
- constructRectangleBorderColor :: (IsRectangle o, MonadIO m) => Color -> m (GValueConstruct o)
- getRectangleBorderColor :: (MonadIO m, IsRectangle o) => o -> m (Maybe Color)
- setRectangleBorderColor :: (MonadIO m, IsRectangle o) => o -> Color -> m ()
- constructRectangleBorderWidth :: (IsRectangle o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getRectangleBorderWidth :: (MonadIO m, IsRectangle o) => o -> m Word32
- setRectangleBorderWidth :: (MonadIO m, IsRectangle o) => o -> Word32 -> m ()
- constructRectangleColor :: (IsRectangle o, MonadIO m) => Color -> m (GValueConstruct o)
- getRectangleColor :: (MonadIO m, IsRectangle o) => o -> m (Maybe Color)
- setRectangleColor :: (MonadIO m, IsRectangle o) => o -> Color -> m ()
- constructRectangleHasBorder :: (IsRectangle o, MonadIO m) => Bool -> m (GValueConstruct o)
- getRectangleHasBorder :: (MonadIO m, IsRectangle o) => o -> m Bool
- setRectangleHasBorder :: (MonadIO m, IsRectangle o) => o -> Bool -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Rectangle Source # | |
GObject Rectangle Source # | |
Defined in GI.Clutter.Objects.Rectangle | |
ManagedPtrNewtype Rectangle Source # | |
Defined in GI.Clutter.Objects.Rectangle | |
TypedObject Rectangle Source # | |
Defined in GI.Clutter.Objects.Rectangle | |
HasParentTypes Rectangle Source # | |
Defined in GI.Clutter.Objects.Rectangle | |
IsGValue (Maybe Rectangle) Source # | Convert |
Defined in GI.Clutter.Objects.Rectangle | |
type ParentTypes Rectangle Source # | |
Defined in GI.Clutter.Objects.Rectangle |
class (GObject o, IsDescendantOf Rectangle o) => IsRectangle o Source #
Type class for types which can be safely cast to Rectangle
, for instance with toRectangle
.
Instances
(GObject o, IsDescendantOf Rectangle o) => IsRectangle o Source # | |
Defined in GI.Clutter.Objects.Rectangle |
toRectangle :: (MonadIO m, IsRectangle o) => o -> m Rectangle Source #
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, 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, getBorderColor, getBorderWidth, 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, setBorderColor, setBorderWidth, 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.
getBorderColor
rectangleGetBorderColor Source #
:: (HasCallStack, MonadIO m, IsRectangle a) | |
=> a |
|
-> m Color |
getBorderWidth
rectangleGetBorderWidth Source #
:: (HasCallStack, MonadIO m, IsRectangle a) | |
=> a |
|
-> m Word32 | Returns: the border's width |
getColor
:: (HasCallStack, MonadIO m, IsRectangle a) | |
=> a |
|
-> m Color |
Deprecated: (Since version 1.10)Use Actor
and actorGetBackgroundColor
instead
Retrieves the color of rectangle
.
new
:: (HasCallStack, MonadIO m) | |
=> m Rectangle | Returns: a new |
newWithColor
rectangleNewWithColor Source #
Deprecated: (Since version 1.10)Use actorNew
and actorSetBackgroundColor
instead
Creates a new Actor
with a rectangular shape
and of the given color
.
setBorderColor
rectangleSetBorderColor Source #
:: (HasCallStack, MonadIO m, IsRectangle a) | |
=> a |
|
-> Color |
|
-> m () |
setBorderWidth
rectangleSetBorderWidth Source #
:: (HasCallStack, MonadIO m, IsRectangle a) | |
=> a |
|
-> Word32 |
|
-> m () |
setColor
:: (HasCallStack, MonadIO m, IsRectangle a) | |
=> a |
|
-> Color |
|
-> m () |
Deprecated: (Since version 1.10)Use Actor
and actorSetBackgroundColor
instead
Sets the color of rectangle
.
Properties
borderColor
The color of the border of the rectangle.
Since: 0.2
constructRectangleBorderColor :: (IsRectangle o, MonadIO m) => Color -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “border-color
” property. This is rarely needed directly, but it is used by new
.
getRectangleBorderColor :: (MonadIO m, IsRectangle o) => o -> m (Maybe Color) Source #
Get the value of the “border-color
” property.
When overloading is enabled, this is equivalent to
get
rectangle #borderColor
setRectangleBorderColor :: (MonadIO m, IsRectangle o) => o -> Color -> m () Source #
Set the value of the “border-color
” property.
When overloading is enabled, this is equivalent to
set
rectangle [ #borderColor:=
value ]
borderWidth
The width of the border of the rectangle, in pixels.
Since: 0.2
constructRectangleBorderWidth :: (IsRectangle o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “border-width
” property. This is rarely needed directly, but it is used by new
.
getRectangleBorderWidth :: (MonadIO m, IsRectangle o) => o -> m Word32 Source #
Get the value of the “border-width
” property.
When overloading is enabled, this is equivalent to
get
rectangle #borderWidth
setRectangleBorderWidth :: (MonadIO m, IsRectangle o) => o -> Word32 -> m () Source #
Set the value of the “border-width
” property.
When overloading is enabled, this is equivalent to
set
rectangle [ #borderWidth:=
value ]
color
The color of the rectangle.
constructRectangleColor :: (IsRectangle 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
.
getRectangleColor :: (MonadIO m, IsRectangle o) => o -> m (Maybe Color) Source #
Get the value of the “color
” property.
When overloading is enabled, this is equivalent to
get
rectangle #color
setRectangleColor :: (MonadIO m, IsRectangle o) => o -> Color -> m () Source #
Set the value of the “color
” property.
When overloading is enabled, this is equivalent to
set
rectangle [ #color:=
value ]
hasBorder
Whether the Rectangle
should be displayed with a border.
Since: 0.2
constructRectangleHasBorder :: (IsRectangle o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “has-border
” property. This is rarely needed directly, but it is used by new
.
getRectangleHasBorder :: (MonadIO m, IsRectangle o) => o -> m Bool Source #
Get the value of the “has-border
” property.
When overloading is enabled, this is equivalent to
get
rectangle #hasBorder
setRectangleHasBorder :: (MonadIO m, IsRectangle o) => o -> Bool -> m () Source #
Set the value of the “has-border
” property.
When overloading is enabled, this is equivalent to
set
rectangle [ #hasBorder:=
value ]