gi-clutter-1.0.2: 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.Structs.Geometry

Description

The rectangle containing an actor's bounding box, measured in pixels.

You should not use Geometry, or operate on its fields directly; you should use RectangleInt or Rect if you need a rectangle type, depending on the precision required.

Synopsis

Exported types

newtype Geometry Source #

Memory-managed wrapper type.

Constructors

Geometry (ManagedPtr Geometry) 

Instances

Instances details
Eq Geometry Source # 
Instance details

Defined in GI.Clutter.Structs.Geometry

GBoxed Geometry Source # 
Instance details

Defined in GI.Clutter.Structs.Geometry

ManagedPtrNewtype Geometry Source # 
Instance details

Defined in GI.Clutter.Structs.Geometry

TypedObject Geometry Source # 
Instance details

Defined in GI.Clutter.Structs.Geometry

Methods

glibType :: IO GType #

HasParentTypes Geometry Source # 
Instance details

Defined in GI.Clutter.Structs.Geometry

tag ~ 'AttrSet => Constructible Geometry tag Source # 
Instance details

Defined in GI.Clutter.Structs.Geometry

Methods

new :: MonadIO m => (ManagedPtr Geometry -> Geometry) -> [AttrOp Geometry tag] -> m Geometry #

IsGValue (Maybe Geometry) Source #

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

Instance details

Defined in GI.Clutter.Structs.Geometry

type ParentTypes Geometry Source # 
Instance details

Defined in GI.Clutter.Structs.Geometry

type ParentTypes Geometry = '[] :: [Type]

newZeroGeometry :: MonadIO m => m Geometry Source #

Construct a Geometry struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

intersects, union.

Getters

None.

Setters

None.

intersects

geometryIntersects Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Geometry

geometry0: The first geometry to test

-> Geometry

geometry1: The second geometry to test

-> m Bool

Returns: True of geometry0 and geometry1 intersect else False.

Deprecated: (Since version 1.16)Use Rect and rectIntersection

Determines if geometry0 and geometry1 intersect returning True if they do else False.

Since: 1.4

union

geometryUnion Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Geometry

geometryA: a Geometry

-> Geometry

geometryB: another Geometry

-> m Geometry 

Deprecated: (Since version 1.16)Use Rect and rectUnion

Find the union of two rectangles represented as Geometry.

Since: 1.4

Properties

height

height of an actor

getGeometryHeight :: MonadIO m => Geometry -> m Word32 Source #

Get the value of the “height” field. When overloading is enabled, this is equivalent to

get geometry #height

setGeometryHeight :: MonadIO m => Geometry -> Word32 -> m () Source #

Set the value of the “height” field. When overloading is enabled, this is equivalent to

set geometry [ #height := value ]

width

width of an actor

getGeometryWidth :: MonadIO m => Geometry -> m Word32 Source #

Get the value of the “width” field. When overloading is enabled, this is equivalent to

get geometry #width

setGeometryWidth :: MonadIO m => Geometry -> Word32 -> m () Source #

Set the value of the “width” field. When overloading is enabled, this is equivalent to

set geometry [ #width := value ]

x

X coordinate of the top left corner of an actor

getGeometryX :: MonadIO m => Geometry -> m Int32 Source #

Get the value of the “x” field. When overloading is enabled, this is equivalent to

get geometry #x

setGeometryX :: MonadIO m => Geometry -> Int32 -> m () Source #

Set the value of the “x” field. When overloading is enabled, this is equivalent to

set geometry [ #x := value ]

y

Y coordinate of the top left corner of an actor

getGeometryY :: MonadIO m => Geometry -> m Int32 Source #

Get the value of the “y” field. When overloading is enabled, this is equivalent to

get geometry #y

setGeometryY :: MonadIO m => Geometry -> Int32 -> m () Source #

Set the value of the “y” field. When overloading is enabled, this is equivalent to

set geometry [ #y := value ]