gi-vips-8.0.3: libvips GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Vips.Structs.Area

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Area Source #

Memory-managed wrapper type.

Constructors

Area (ManagedPtr Area) 

Instances

Instances details
Eq Area Source # 
Instance details

Defined in GI.Vips.Structs.Area

Methods

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

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

GBoxed Area Source # 
Instance details

Defined in GI.Vips.Structs.Area

ManagedPtrNewtype Area Source # 
Instance details

Defined in GI.Vips.Structs.Area

Methods

toManagedPtr :: Area -> ManagedPtr Area

TypedObject Area Source # 
Instance details

Defined in GI.Vips.Structs.Area

Methods

glibType :: IO GType

HasParentTypes Area Source # 
Instance details

Defined in GI.Vips.Structs.Area

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

Defined in GI.Vips.Structs.Area

Methods

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

IsGValue (Maybe Area) Source #

Convert Area to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Vips.Structs.Area

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Area -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Area)

type ParentTypes Area Source # 
Instance details

Defined in GI.Vips.Structs.Area

type ParentTypes Area = '[] :: [Type]

newZeroArea :: MonadIO m => m Area Source #

Construct a Area struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, unref.

Getters

getData.

Setters

None.

copy

areaCopy :: (HasCallStack, MonadIO m) => Area -> m Area Source #

No description available in the introspection data.

freeCb

areaFreeCb :: (HasCallStack, MonadIO m) => Ptr () -> Area -> m Int32 Source #

No description available in the introspection data.

getData

areaGetData Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Area

area: Area to fetch from

-> m (Ptr (), Word64, Int32, GType, Word64)

Returns: The pointer held by area.

Return the data pointer plus optionally the length in bytes of an area, the number of elements, the GType of each element and the sizeof() each element.

new

areaNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> CallbackFn

freeFn: data will be freed with this function

-> m Area

Returns: the new Area.

A VipsArea wraps a chunk of memory. It adds reference counting and a free function. It also keeps a count and a GType, so the area can be an array.

This type is used for things like passing an array of double or an array of Object pointers to operations, and for reference-counted immutable strings.

Inital count == 1, so _unref() after attaching somewhere.

See also: areaUnref.

newArray

areaNewArray Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GType

type: GType of elements to store

-> Word64

sizeofType: sizeof() an element in the array

-> Int32

n: number of elements in the array

-> m Area

Returns: the new Area.

An area which holds an array of elements of some GType. To set values for the elements, get the pointer and write.

See also: areaUnref.

newArrayObject

areaNewArrayObject Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int32

n: number of elements in the array

-> m Area

Returns: the new Area.

An area which holds an array of GObject s. See areaNewArray. When the area is freed, each GObject will be unreffed.

Add an extra NULL element at the end, handy for eg. vips_image_pipeline_array() etc.

See also: areaUnref.

unref

areaUnref :: (HasCallStack, MonadIO m) => Area -> m () Source #

No description available in the introspection data.

Properties

data

No description available in the introspection data.

clearAreaData :: MonadIO m => Area -> m () Source #

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

clear #data

getAreaData :: MonadIO m => Area -> m (Ptr ()) Source #

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

get area #data

setAreaData :: MonadIO m => Area -> Ptr () -> m () Source #

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

set area [ #data := value ]

length

No description available in the introspection data.

getAreaLength :: MonadIO m => Area -> m Word64 Source #

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

get area #length

setAreaLength :: MonadIO m => Area -> Word64 -> m () Source #

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

set area [ #length := value ]

n

No description available in the introspection data.

getAreaN :: MonadIO m => Area -> m Int32 Source #

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

get area #n

setAreaN :: MonadIO m => Area -> Int32 -> m () Source #

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

set area [ #n := value ]