gi-gdk-3.0.22: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
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 #

WrappedPtr Point Source # 
Instance details

Defined in GI.Gdk.Structs.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.

noPoint :: Maybe Point Source #

A convenience alias for Nothing :: Maybe Point.

Methods

Overloaded 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 ]