gi-atk-2.0.20: Atk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Atk.Structs.Rectangle

Contents

Description

A data structure for holding a rectangle. Those coordinates are relative to the component top-level parent.

Synopsis

Exported types

newtype Rectangle Source #

Memory-managed wrapper type.

Instances
BoxedObject Rectangle Source # 
Instance details

Defined in GI.Atk.Structs.Rectangle

tag ~ AttrSet => Constructible Rectangle tag Source # 
Instance details

Defined in GI.Atk.Structs.Rectangle

Methods

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

newZeroRectangle :: MonadIO m => m Rectangle Source #

Construct a Rectangle struct initialized to zero.

noRectangle :: Maybe Rectangle Source #

A convenience alias for Nothing :: Maybe Rectangle.

Properties

height

height of the rectangle.

getRectangleHeight :: MonadIO m => Rectangle -> m Int32 Source #

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

get rectangle #height

setRectangleHeight :: MonadIO m => Rectangle -> Int32 -> m () Source #

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

set rectangle [ #height := value ]

width

width of the rectangle.

getRectangleWidth :: MonadIO m => Rectangle -> m Int32 Source #

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

get rectangle #width

setRectangleWidth :: MonadIO m => Rectangle -> Int32 -> m () Source #

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

set rectangle [ #width := value ]

x

X coordinate of the left side of the rectangle.

getRectangleX :: MonadIO m => Rectangle -> m Int32 Source #

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

get rectangle #x

setRectangleX :: MonadIO m => Rectangle -> Int32 -> m () Source #

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

set rectangle [ #x := value ]

y

Y coordinate of the top side of the rectangle.

getRectangleY :: MonadIO m => Rectangle -> m Int32 Source #

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

get rectangle #y

setRectangleY :: MonadIO m => Rectangle -> Int32 -> m () Source #

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

set rectangle [ #y := value ]