gi-gdk-3.0.28: Gdk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Structs.Point

Description

Defines the x and y coordinates of a point.

Synopsis

Exported types

newtype Point Source #

Memory-managed wrapper type.

Constructors

Point (ManagedPtr Point) 

Instances

Instances details
Eq Point Source # 
Instance details

Defined in GI.Gdk.Structs.Point

Methods

(==) :: Point -> Point -> Bool #

(/=) :: Point -> Point -> Bool #

BoxedPtr Point Source # 
Instance details

Defined in GI.Gdk.Structs.Point

CallocPtr Point Source # 
Instance details

Defined in GI.Gdk.Structs.Point

ManagedPtrNewtype Point Source # 
Instance details

Defined in GI.Gdk.Structs.Point

Methods

toManagedPtr :: Point -> ManagedPtr Point

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

Defined in GI.Gdk.Structs.Point

Methods

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

newZeroPoint :: MonadIO m => m Point Source #

Construct a Point struct initialized to zero.

Methods

Properties

x

the x coordinate of the point.

getPointX :: MonadIO m => Point -> m Int32 Source #

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

get point #x

setPointX :: MonadIO m => Point -> Int32 -> m () Source #

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

set point [ #x := value ]

y

the y coordinate of the point.

getPointY :: MonadIO m => Point -> m Int32 Source #

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

get point #y

setPointY :: MonadIO m => Point -> Int32 -> m () Source #

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

set point [ #y := value ]