gi-gio-2.0.34: Gio bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Structs.SeekableIface

Description

Provides an interface for implementing seekable functionality on I/O Streams.

Synopsis

Exported types

newtype SeekableIface Source #

Memory-managed wrapper type.

newZeroSeekableIface :: MonadIO m => m SeekableIface Source #

Construct a SeekableIface struct initialized to zero.

Methods

Properties

canSeek

Checks if seeking is supported by the stream.

clearSeekableIfaceCanSeek :: MonadIO m => SeekableIface -> m () Source #

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

clear #canSeek

getSeekableIfaceCanSeek :: MonadIO m => SeekableIface -> m (Maybe SeekableIfaceCanSeekFieldCallback) Source #

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

get seekableIface #canSeek

setSeekableIfaceCanSeek :: MonadIO m => SeekableIface -> FunPtr C_SeekableIfaceCanSeekFieldCallback -> m () Source #

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

set seekableIface [ #canSeek := value ]

canTruncate

Checks if truncation is supported by the stream.

clearSeekableIfaceCanTruncate :: MonadIO m => SeekableIface -> m () Source #

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

clear #canTruncate

getSeekableIfaceCanTruncate :: MonadIO m => SeekableIface -> m (Maybe SeekableIfaceCanTruncateFieldCallback) Source #

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

get seekableIface #canTruncate

setSeekableIfaceCanTruncate :: MonadIO m => SeekableIface -> FunPtr C_SeekableIfaceCanTruncateFieldCallback -> m () Source #

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

set seekableIface [ #canTruncate := value ]

gIface

The parent interface.

getSeekableIfaceGIface :: MonadIO m => SeekableIface -> m TypeInterface Source #

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

get seekableIface #gIface

seek

Seeks to a location within a stream.

clearSeekableIfaceSeek :: MonadIO m => SeekableIface -> m () Source #

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

clear #seek

getSeekableIfaceSeek :: MonadIO m => SeekableIface -> m (Maybe SeekableIfaceSeekFieldCallback) Source #

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

get seekableIface #seek

setSeekableIfaceSeek :: MonadIO m => SeekableIface -> FunPtr C_SeekableIfaceSeekFieldCallback -> m () Source #

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

set seekableIface [ #seek := value ]

tell

Tells the current location within a stream.

clearSeekableIfaceTell :: MonadIO m => SeekableIface -> m () Source #

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

clear #tell

getSeekableIfaceTell :: MonadIO m => SeekableIface -> m (Maybe SeekableIfaceTellFieldCallback) Source #

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

get seekableIface #tell

setSeekableIfaceTell :: MonadIO m => SeekableIface -> FunPtr C_SeekableIfaceTellFieldCallback -> m () Source #

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

set seekableIface [ #tell := value ]

truncateFn

Truncates a stream.

clearSeekableIfaceTruncateFn :: MonadIO m => SeekableIface -> m () Source #

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

clear #truncateFn

getSeekableIfaceTruncateFn :: MonadIO m => SeekableIface -> m (Maybe SeekableIfaceTruncateFnFieldCallback) Source #

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

get seekableIface #truncateFn

setSeekableIfaceTruncateFn :: MonadIO m => SeekableIface -> FunPtr C_SeekableIfaceTruncateFnFieldCallback -> m () Source #

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

set seekableIface [ #truncateFn := value ]