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 |
Helper structure representing a rectangular area.
Synopsis
- newtype VideoRectangle = VideoRectangle (ManagedPtr VideoRectangle)
- newZeroVideoRectangle :: MonadIO m => m VideoRectangle
- getVideoRectangleH :: MonadIO m => VideoRectangle -> m Int32
- setVideoRectangleH :: MonadIO m => VideoRectangle -> Int32 -> m ()
- getVideoRectangleW :: MonadIO m => VideoRectangle -> m Int32
- setVideoRectangleW :: MonadIO m => VideoRectangle -> Int32 -> m ()
- getVideoRectangleX :: MonadIO m => VideoRectangle -> m Int32
- setVideoRectangleX :: MonadIO m => VideoRectangle -> Int32 -> m ()
- getVideoRectangleY :: MonadIO m => VideoRectangle -> m Int32
- setVideoRectangleY :: MonadIO m => VideoRectangle -> Int32 -> m ()
Exported types
newtype VideoRectangle Source #
Memory-managed wrapper type.
VideoRectangle (ManagedPtr VideoRectangle) |
Instances
Eq VideoRectangle Source # | |
Defined in GI.GstVideo.Structs.VideoRectangle (==) :: VideoRectangle -> VideoRectangle -> Bool # (/=) :: VideoRectangle -> VideoRectangle -> Bool # | |
BoxedPtr VideoRectangle Source # | |
Defined in GI.GstVideo.Structs.VideoRectangle boxedPtrCopy :: VideoRectangle -> IO VideoRectangle boxedPtrFree :: VideoRectangle -> IO () | |
CallocPtr VideoRectangle Source # | |
Defined in GI.GstVideo.Structs.VideoRectangle | |
ManagedPtrNewtype VideoRectangle Source # | |
Defined in GI.GstVideo.Structs.VideoRectangle toManagedPtr :: VideoRectangle -> ManagedPtr VideoRectangle | |
tag ~ 'AttrSet => Constructible VideoRectangle tag Source # | |
Defined in GI.GstVideo.Structs.VideoRectangle new :: MonadIO m => (ManagedPtr VideoRectangle -> VideoRectangle) -> [AttrOp VideoRectangle tag] -> m VideoRectangle |
newZeroVideoRectangle :: MonadIO m => m VideoRectangle Source #
Construct a VideoRectangle
struct initialized to zero.
Methods
Properties
h
height of the rectangle
getVideoRectangleH :: MonadIO m => VideoRectangle -> m Int32 Source #
Get the value of the “h
” field.
When overloading is enabled, this is equivalent to
get
videoRectangle #h
setVideoRectangleH :: MonadIO m => VideoRectangle -> Int32 -> m () Source #
Set the value of the “h
” field.
When overloading is enabled, this is equivalent to
set
videoRectangle [ #h:=
value ]
w
width of the rectangle
getVideoRectangleW :: MonadIO m => VideoRectangle -> m Int32 Source #
Get the value of the “w
” field.
When overloading is enabled, this is equivalent to
get
videoRectangle #w
setVideoRectangleW :: MonadIO m => VideoRectangle -> Int32 -> m () Source #
Set the value of the “w
” field.
When overloading is enabled, this is equivalent to
set
videoRectangle [ #w:=
value ]
x
X coordinate of rectangle's top-left point
getVideoRectangleX :: MonadIO m => VideoRectangle -> m Int32 Source #
Get the value of the “x
” field.
When overloading is enabled, this is equivalent to
get
videoRectangle #x
setVideoRectangleX :: MonadIO m => VideoRectangle -> Int32 -> m () Source #
Set the value of the “x
” field.
When overloading is enabled, this is equivalent to
set
videoRectangle [ #x:=
value ]
y
Y coordinate of rectangle's top-left point
getVideoRectangleY :: MonadIO m => VideoRectangle -> m Int32 Source #
Get the value of the “y
” field.
When overloading is enabled, this is equivalent to
get
videoRectangle #y
setVideoRectangleY :: MonadIO m => VideoRectangle -> Int32 -> m () Source #
Set the value of the “y
” field.
When overloading is enabled, this is equivalent to
set
videoRectangle [ #y:=
value ]