gi-clutter-1.0.3: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Objects.Rectangle

Description

The Rectangle structure contains only private data and should be accessed using the provided API

Since: 0.2

Synopsis

Exported types

newtype Rectangle Source #

Memory-managed wrapper type.

Constructors

Rectangle (ManagedPtr Rectangle) 

Instances

Instances details
Eq Rectangle Source # 
Instance details

Defined in GI.Clutter.Objects.Rectangle

GObject Rectangle Source # 
Instance details

Defined in GI.Clutter.Objects.Rectangle

ManagedPtrNewtype Rectangle Source # 
Instance details

Defined in GI.Clutter.Objects.Rectangle

Methods

toManagedPtr :: Rectangle -> ManagedPtr Rectangle

TypedObject Rectangle Source # 
Instance details

Defined in GI.Clutter.Objects.Rectangle

Methods

glibType :: IO GType

HasParentTypes Rectangle Source # 
Instance details

Defined in GI.Clutter.Objects.Rectangle

IsGValue (Maybe Rectangle) Source #

Convert Rectangle to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Clutter.Objects.Rectangle

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Rectangle -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Rectangle)

type ParentTypes Rectangle Source # 
Instance details

Defined in GI.Clutter.Objects.Rectangle

type ParentTypes Rectangle = '[Actor, Object, ImplementorIface, Animatable, Container, Scriptable]

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

Instances details
(GObject o, IsDescendantOf Rectangle o) => IsRectangle o Source # 
Instance details

Defined in GI.Clutter.Objects.Rectangle

toRectangle :: (MonadIO m, IsRectangle o) => o -> m Rectangle Source #

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

Methods

Click to display all available methods, including inherited ones

Expand

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 #

Arguments

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

rectangle: a Rectangle

-> m Color 

Deprecated: (Since version 1.10)Use Actor and a Canvas to draw the border with Cairo

Gets the color of the border used by rectangle and places it into color.

Since: 0.2

getBorderWidth

rectangleGetBorderWidth Source #

Arguments

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

rectangle: a Rectangle

-> m Word32

Returns: the border's width

Deprecated: (Since version 1.10)Use Actor and a Canvas content to draw the border using Cairo

Gets the width (in pixels) of the border used by rectangle

Since: 0.2

getColor

rectangleGetColor Source #

Arguments

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

rectangle: a Rectangle

-> m Color 

Deprecated: (Since version 1.10)Use Actor and actorGetBackgroundColor instead

Retrieves the color of rectangle.

new

rectangleNew Source #

Arguments

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

Returns: a new Rectangle

Deprecated: (Since version 1.10)Use actorNew instead

Creates a new Actor with a rectangular shape.

newWithColor

rectangleNewWithColor Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Color

color: a Color

-> m Rectangle

Returns: a new Rectangle

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 #

Arguments

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

rectangle: a Rectangle

-> Color

color: the color of the border

-> m () 

Deprecated: (Since version 1.10)Use Actor and a Canvas to draw the border with Cairo

Sets the color of the border used by rectangle using color

setBorderWidth

rectangleSetBorderWidth Source #

Arguments

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

rectangle: a Rectangle

-> Word32

width: the width of the border

-> m () 

Deprecated: (Since version 1.10)Use Actor and a Canvas content to draw the border using Cairo

Sets the width (in pixel) of the border used by rectangle. A width of 0 will unset the border.

Since: 0.2

setColor

rectangleSetColor Source #

Arguments

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

rectangle: a Rectangle

-> Color

color: 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 ]