| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Gdk.Structs.Point
Contents
Description
Defines the x and y coordinates of a point.
Exported types
Memory-managed wrapper type.
Instances
| Eq Point Source # | |
| BoxedPtr Point Source # | |
Defined in GI.Gdk.Structs.Point | |
| CallocPtr Point Source # | |
Defined in GI.Gdk.Structs.Point Methods boxedPtrCalloc :: IO (Ptr Point) | |
| ManagedPtrNewtype Point Source # | |
Defined in GI.Gdk.Structs.Point Methods toManagedPtr :: Point -> ManagedPtr Point | |
| tag ~ 'AttrSet => Constructible Point tag Source # | |
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
setpoint [ #x:=value ]
y
the y coordinate of the point.