Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | None |
This file reflects the Gtk+ object hierarchy in terms of Haskell classes.
Note: the mk... functions were originally meant to simply be an alias for the constructor. However, in order to communicate the destructor of an object to objectNew, the mk... functions are now a tuple containing Haskell constructor and the destructor function pointer. This hack avoids changing all modules that simply pass mk... to objectNew.
Documentation
newtype OutputStream Source
class GObjectClass o => OutputStreamClass o Source
toOutputStream :: OutputStreamClass o => o -> OutputStreamSource
castToOutputStream :: GObjectClass obj => obj -> OutputStreamSource
newtype FilterOutputStream Source
class OutputStreamClass o => FilterOutputStreamClass o Source
castToFilterOutputStream :: GObjectClass obj => obj -> FilterOutputStreamSource
newtype DataOutputStream Source
class FilterOutputStreamClass o => DataOutputStreamClass o Source
castToDataOutputStream :: GObjectClass obj => obj -> DataOutputStreamSource
newtype BufferedOutputStream Source
class FilterOutputStreamClass o => BufferedOutputStreamClass o Source
mkBufferedOutputStream :: (ForeignPtr BufferedOutputStream -> BufferedOutputStream, FinalizerPtr a)Source
castToBufferedOutputStream :: GObjectClass obj => obj -> BufferedOutputStreamSource
newtype FileOutputStream Source
castToFileOutputStream :: GObjectClass obj => obj -> FileOutputStreamSource
newtype MemoryOutputStream Source
class OutputStreamClass o => MemoryOutputStreamClass o Source
castToMemoryOutputStream :: GObjectClass obj => obj -> MemoryOutputStreamSource
newtype InputStream Source
class GObjectClass o => InputStreamClass o Source
toInputStream :: InputStreamClass o => o -> InputStreamSource
castToInputStream :: GObjectClass obj => obj -> InputStreamSource
newtype MemoryInputStream Source
castToMemoryInputStream :: GObjectClass obj => obj -> MemoryInputStreamSource
newtype FilterInputStream Source
class InputStreamClass o => FilterInputStreamClass o Source
castToFilterInputStream :: GObjectClass obj => obj -> FilterInputStreamSource
newtype BufferedInputStream Source
class FilterInputStreamClass o => BufferedInputStreamClass o Source
mkBufferedInputStream :: (ForeignPtr BufferedInputStream -> BufferedInputStream, FinalizerPtr a)Source
castToBufferedInputStream :: GObjectClass obj => obj -> BufferedInputStreamSource
newtype DataInputStream Source
class BufferedInputStreamClass o => DataInputStreamClass o Source
toDataInputStream :: DataInputStreamClass o => o -> DataInputStreamSource
castToDataInputStream :: GObjectClass obj => obj -> DataInputStreamSource
newtype FileInputStream Source
toFileInputStream :: FileInputStreamClass o => o -> FileInputStreamSource
castToFileInputStream :: GObjectClass obj => obj -> FileInputStreamSource
newtype FileMonitor Source
class GObjectClass o => FileMonitorClass o Source
toFileMonitor :: FileMonitorClass o => o -> FileMonitorSource
castToFileMonitor :: GObjectClass obj => obj -> FileMonitorSource
class GObjectClass o => VfsClass o Source
mkVfs :: (ForeignPtr Vfs -> Vfs, FinalizerPtr a)Source
unVfs :: Vfs -> ForeignPtr VfsSource
castToVfs :: GObjectClass obj => obj -> VfsSource
newtype MountOperation Source
toMountOperation :: MountOperationClass o => o -> MountOperationSource
castToMountOperation :: GObjectClass obj => obj -> MountOperationSource
newtype ThemedIcon Source
class GObjectClass o => ThemedIconClass o Source
toThemedIcon :: ThemedIconClass o => o -> ThemedIconSource
mkThemedIcon :: (ForeignPtr ThemedIcon -> ThemedIcon, FinalizerPtr a)Source
castToThemedIcon :: GObjectClass obj => obj -> ThemedIconSource
class GObjectClass o => EmblemClass o Source
toEmblem :: EmblemClass o => o -> EmblemSource
mkEmblem :: (ForeignPtr Emblem -> Emblem, FinalizerPtr a)Source
unEmblem :: Emblem -> ForeignPtr EmblemSource
castToEmblem :: GObjectClass obj => obj -> EmblemSource
newtype EmblemedIcon Source
class GObjectClass o => EmblemedIconClass o Source
toEmblemedIcon :: EmblemedIconClass o => o -> EmblemedIconSource
castToEmblemedIcon :: GObjectClass obj => obj -> EmblemedIconSource
newtype FileEnumerator Source
toFileEnumerator :: FileEnumeratorClass o => o -> FileEnumeratorSource
castToFileEnumerator :: GObjectClass obj => obj -> FileEnumeratorSource
newtype FilenameCompleter Source
castToFilenameCompleter :: GObjectClass obj => obj -> FilenameCompleterSource
class GObjectClass o => FileIconClass o Source
toFileIcon :: FileIconClass o => o -> FileIconSource
mkFileIcon :: (ForeignPtr FileIcon -> FileIcon, FinalizerPtr a)Source
castToFileIcon :: GObjectClass obj => obj -> FileIconSource
newtype VolumeMonitor Source
toVolumeMonitor :: VolumeMonitorClass o => o -> VolumeMonitorSource
castToVolumeMonitor :: GObjectClass obj => obj -> VolumeMonitorSource
newtype Cancellable Source
class GObjectClass o => CancellableClass o Source
toCancellable :: CancellableClass o => o -> CancellableSource
castToCancellable :: GObjectClass obj => obj -> CancellableSource
newtype SimpleAsyncResult Source
castToSimpleAsyncResult :: GObjectClass obj => obj -> SimpleAsyncResultSource
toFileInfo :: FileInfoClass o => o -> FileInfoSource
mkFileInfo :: (ForeignPtr FileInfo -> FileInfo, FinalizerPtr a)Source
castToFileInfo :: GObjectClass obj => obj -> FileInfoSource
newtype AppLaunchContext Source
castToAppLaunchContext :: GObjectClass obj => obj -> AppLaunchContextSource
class GObjectClass o => IconClass o Source
mkIcon :: (ForeignPtr Icon -> Icon, FinalizerPtr a)Source
unIcon :: Icon -> ForeignPtr IconSource
castToIcon :: GObjectClass obj => obj -> IconSource
class GObjectClass o => SeekableClass o Source
toSeekable :: SeekableClass o => o -> SeekableSource
mkSeekable :: (ForeignPtr Seekable -> Seekable, FinalizerPtr a)Source
castToSeekable :: GObjectClass obj => obj -> SeekableSource
class GObjectClass o => AppInfoClass o Source
toAppInfo :: AppInfoClass o => o -> AppInfoSource
mkAppInfo :: (ForeignPtr AppInfo -> AppInfo, FinalizerPtr a)Source
castToAppInfo :: GObjectClass obj => obj -> AppInfoSource
class GObjectClass o => VolumeClass o Source
toVolume :: VolumeClass o => o -> VolumeSource
mkVolume :: (ForeignPtr Volume -> Volume, FinalizerPtr a)Source
unVolume :: Volume -> ForeignPtr VolumeSource
castToVolume :: GObjectClass obj => obj -> VolumeSource
newtype AsyncResult Source
class GObjectClass o => AsyncResultClass o Source
toAsyncResult :: AsyncResultClass o => o -> AsyncResultSource
castToAsyncResult :: GObjectClass obj => obj -> AsyncResultSource
newtype LoadableIcon Source
class GObjectClass o => LoadableIconClass o Source
toLoadableIcon :: LoadableIconClass o => o -> LoadableIconSource
castToLoadableIcon :: GObjectClass obj => obj -> LoadableIconSource
class GObjectClass o => DriveClass o Source
toDrive :: DriveClass o => o -> DriveSource
mkDrive :: (ForeignPtr Drive -> Drive, FinalizerPtr a)Source
unDrive :: Drive -> ForeignPtr DriveSource
castToDrive :: GObjectClass obj => obj -> DriveSource
class GObjectClass o => FileClass o Source
mkFile :: (ForeignPtr File -> File, FinalizerPtr a)Source
unFile :: File -> ForeignPtr FileSource
castToFile :: GObjectClass obj => obj -> FileSource
class GObjectClass o => MountClass o Source
toMount :: MountClass o => o -> MountSource
mkMount :: (ForeignPtr Mount -> Mount, FinalizerPtr a)Source
unMount :: Mount -> ForeignPtr MountSource
castToMount :: GObjectClass obj => obj -> MountSource