Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- imageClear
- imageGetAnimation
- imageGetGicon
- imageGetIconName
- imageGetIconSet
- imageGetPixbuf
- imageGetPixelSize
- imageGetStock
- imageGetStorageType
- imageNew
- imageNewFromAnimation
- imageNewFromFile
- imageNewFromGicon
- imageNewFromIconName
- imageNewFromIconSet
- imageNewFromPixbuf
- imageNewFromResource
- imageNewFromStock
- imageNewFromSurface
- imageSetFromAnimation
- imageSetFromFile
- imageSetFromGicon
- imageSetFromIconName
- imageSetFromIconSet
- imageSetFromPixbuf
- imageSetFromResource
- imageSetFromStock
- imageSetFromSurface
- imageSetPixelSize
- Properties
- newtype Image = Image (ForeignPtr Image)
- class GObject o => ImageK o
- toImage :: ImageK o => o -> IO Image
- noImage :: Maybe Image
- imageClear :: (MonadIO m, ImageK a) => a -> m ()
- imageGetAnimation :: (MonadIO m, ImageK a) => a -> m PixbufAnimation
- imageGetGicon :: (MonadIO m, ImageK a) => a -> m (Icon, Int32)
- imageGetIconName :: (MonadIO m, ImageK a) => a -> m (Text, Int32)
- imageGetIconSet :: (MonadIO m, ImageK a) => a -> m (IconSet, Int32)
- imageGetPixbuf :: (MonadIO m, ImageK a) => a -> m Pixbuf
- imageGetPixelSize :: (MonadIO m, ImageK a) => a -> m Int32
- imageGetStock :: (MonadIO m, ImageK a) => a -> m (Text, Int32)
- imageGetStorageType :: (MonadIO m, ImageK a) => a -> m ImageType
- imageNew :: MonadIO m => m Image
- imageNewFromAnimation :: (MonadIO m, PixbufAnimationK a) => a -> m Image
- imageNewFromFile :: MonadIO m => [Char] -> m Image
- imageNewFromGicon :: (MonadIO m, IconK a) => a -> Int32 -> m Image
- imageNewFromIconName :: MonadIO m => Text -> Int32 -> m Image
- imageNewFromIconSet :: MonadIO m => IconSet -> Int32 -> m Image
- imageNewFromPixbuf :: (MonadIO m, PixbufK a) => Maybe a -> m Image
- imageNewFromResource :: MonadIO m => Text -> m Image
- imageNewFromStock :: MonadIO m => Text -> Int32 -> m Image
- imageNewFromSurface :: MonadIO m => Maybe Surface -> m Image
- imageSetFromAnimation :: (MonadIO m, ImageK a, PixbufAnimationK b) => a -> b -> m ()
- imageSetFromFile :: (MonadIO m, ImageK a) => a -> Maybe [Char] -> m ()
- imageSetFromGicon :: (MonadIO m, ImageK a, IconK b) => a -> b -> Int32 -> m ()
- imageSetFromIconName :: (MonadIO m, ImageK a) => a -> Text -> Int32 -> m ()
- imageSetFromIconSet :: (MonadIO m, ImageK a) => a -> IconSet -> Int32 -> m ()
- imageSetFromPixbuf :: (MonadIO m, ImageK a, PixbufK b) => a -> Maybe b -> m ()
- imageSetFromResource :: (MonadIO m, ImageK a) => a -> Maybe Text -> m ()
- imageSetFromStock :: (MonadIO m, ImageK a) => a -> Text -> Int32 -> m ()
- imageSetFromSurface :: (MonadIO m, ImageK a) => a -> Surface -> m ()
- imageSetPixelSize :: (MonadIO m, ImageK a) => a -> Int32 -> m ()
- data ImageFilePropertyInfo
- constructImageFile :: Text -> IO ([Char], GValue)
- getImageFile :: (MonadIO m, ImageK o) => o -> m Text
- setImageFile :: (MonadIO m, ImageK o) => o -> Text -> m ()
- data ImageGiconPropertyInfo
- constructImageGicon :: IconK a => a -> IO ([Char], GValue)
- getImageGicon :: (MonadIO m, ImageK o) => o -> m Icon
- setImageGicon :: (MonadIO m, ImageK o, IconK a) => o -> a -> m ()
- data ImageIconNamePropertyInfo
- constructImageIconName :: Text -> IO ([Char], GValue)
- getImageIconName :: (MonadIO m, ImageK o) => o -> m Text
- setImageIconName :: (MonadIO m, ImageK o) => o -> Text -> m ()
- data ImageIconSetPropertyInfo
- constructImageIconSet :: IconSet -> IO ([Char], GValue)
- getImageIconSet :: (MonadIO m, ImageK o) => o -> m IconSet
- setImageIconSet :: (MonadIO m, ImageK o) => o -> IconSet -> m ()
- data ImageIconSizePropertyInfo
- constructImageIconSize :: Int32 -> IO ([Char], GValue)
- getImageIconSize :: (MonadIO m, ImageK o) => o -> m Int32
- setImageIconSize :: (MonadIO m, ImageK o) => o -> Int32 -> m ()
- data ImagePixbufPropertyInfo
- constructImagePixbuf :: PixbufK a => a -> IO ([Char], GValue)
- getImagePixbuf :: (MonadIO m, ImageK o) => o -> m Pixbuf
- setImagePixbuf :: (MonadIO m, ImageK o, PixbufK a) => o -> a -> m ()
- data ImagePixbufAnimationPropertyInfo
- constructImagePixbufAnimation :: PixbufAnimationK a => a -> IO ([Char], GValue)
- getImagePixbufAnimation :: (MonadIO m, ImageK o) => o -> m PixbufAnimation
- setImagePixbufAnimation :: (MonadIO m, ImageK o, PixbufAnimationK a) => o -> a -> m ()
- data ImagePixelSizePropertyInfo
- constructImagePixelSize :: Int32 -> IO ([Char], GValue)
- getImagePixelSize :: (MonadIO m, ImageK o) => o -> m Int32
- setImagePixelSize :: (MonadIO m, ImageK o) => o -> Int32 -> m ()
- data ImageResourcePropertyInfo
- constructImageResource :: Text -> IO ([Char], GValue)
- getImageResource :: (MonadIO m, ImageK o) => o -> m Text
- setImageResource :: (MonadIO m, ImageK o) => o -> Text -> m ()
- data ImageStockPropertyInfo
- constructImageStock :: Text -> IO ([Char], GValue)
- getImageStock :: (MonadIO m, ImageK o) => o -> m Text
- setImageStock :: (MonadIO m, ImageK o) => o -> Text -> m ()
- data ImageStorageTypePropertyInfo
- getImageStorageType :: (MonadIO m, ImageK o) => o -> m ImageType
- data ImageSurfacePropertyInfo
- constructImageSurface :: Surface -> IO ([Char], GValue)
- getImageSurface :: (MonadIO m, ImageK o) => o -> m Surface
- setImageSurface :: (MonadIO m, ImageK o) => o -> Surface -> m ()
- data ImageUseFallbackPropertyInfo
- constructImageUseFallback :: Bool -> IO ([Char], GValue)
- getImageUseFallback :: (MonadIO m, ImageK o) => o -> m Bool
- setImageUseFallback :: (MonadIO m, ImageK o) => o -> Bool -> m ()
Exported types
GObject Image Source | |
type ParentTypes Image Source | |
type AttributeList Image Source | |
type SignalList Image Source |
Methods
imageClear
imageClear :: (MonadIO m, ImageK a) => a -> m () Source
imageGetAnimation
imageGetAnimation :: (MonadIO m, ImageK a) => a -> m PixbufAnimation Source
imageGetGicon
imageGetIconName
imageGetIconSet
imageGetIconSet :: (MonadIO m, ImageK a) => a -> m (IconSet, Int32) Source
Deprecated: (Since version 3.10)Use gtk_image_get_icon_name() instead.
imageGetPixbuf
imageGetPixbuf :: (MonadIO m, ImageK a) => a -> m Pixbuf Source
imageGetPixelSize
imageGetPixelSize :: (MonadIO m, ImageK a) => a -> m Int32 Source
imageGetStock
imageGetStock :: (MonadIO m, ImageK a) => a -> m (Text, Int32) Source
Deprecated: (Since version 3.10)Use gtk_image_get_icon_name() instead.
imageGetStorageType
imageGetStorageType :: (MonadIO m, ImageK a) => a -> m ImageType Source
imageNew
imageNewFromAnimation
imageNewFromAnimation :: (MonadIO m, PixbufAnimationK a) => a -> m Image Source
imageNewFromFile
imageNewFromFile :: MonadIO m => [Char] -> m Image Source
imageNewFromGicon
imageNewFromIconName
imageNewFromIconSet
imageNewFromIconSet :: MonadIO m => IconSet -> Int32 -> m Image Source
Deprecated: (Since version 3.10)Use gtk_image_new_from_icon_name() instead.
imageNewFromPixbuf
imageNewFromResource
imageNewFromResource :: MonadIO m => Text -> m Image Source
imageNewFromStock
imageNewFromStock :: MonadIO m => Text -> Int32 -> m Image Source
Deprecated: (Since version 3.10)Use gtk_image_new_from_icon_name() instead.
imageNewFromSurface
imageSetFromAnimation
imageSetFromAnimation :: (MonadIO m, ImageK a, PixbufAnimationK b) => a -> b -> m () Source
imageSetFromFile
imageSetFromGicon
imageSetFromIconName
imageSetFromIconSet
imageSetFromIconSet :: (MonadIO m, ImageK a) => a -> IconSet -> Int32 -> m () Source
Deprecated: (Since version 3.10)Use gtk_image_set_from_icon_name() instead.
imageSetFromPixbuf
imageSetFromResource
imageSetFromStock
imageSetFromStock :: (MonadIO m, ImageK a) => a -> Text -> Int32 -> m () Source
Deprecated: (Since version 3.10)Use gtk_image_set_from_icon_name() instead.
imageSetFromSurface
imageSetFromSurface :: (MonadIO m, ImageK a) => a -> Surface -> m () Source
imageSetPixelSize
imageSetPixelSize :: (MonadIO m, ImageK a) => a -> Int32 -> m () Source
Properties
File
data ImageFilePropertyInfo Source
AttrInfo ImageFilePropertyInfo Source | |
type AttrLabel ImageFilePropertyInfo = "Image::file" Source | |
type AttrGetType ImageFilePropertyInfo = Text Source | |
type AttrBaseTypeConstraint ImageFilePropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageFilePropertyInfo = * ~ Text Source | |
type AttrAllowedOps ImageFilePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageFile :: (MonadIO m, ImageK o) => o -> m Text Source
setImageFile :: (MonadIO m, ImageK o) => o -> Text -> m () Source
Gicon
data ImageGiconPropertyInfo Source
AttrInfo ImageGiconPropertyInfo Source | |
type AttrLabel ImageGiconPropertyInfo = "Image::gicon" Source | |
type AttrGetType ImageGiconPropertyInfo = Icon Source | |
type AttrBaseTypeConstraint ImageGiconPropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageGiconPropertyInfo = IconK Source | |
type AttrAllowedOps ImageGiconPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageGicon :: (MonadIO m, ImageK o) => o -> m Icon Source
setImageGicon :: (MonadIO m, ImageK o, IconK a) => o -> a -> m () Source
IconName
data ImageIconNamePropertyInfo Source
AttrInfo ImageIconNamePropertyInfo Source | |
type AttrLabel ImageIconNamePropertyInfo = "Image::icon-name" Source | |
type AttrGetType ImageIconNamePropertyInfo = Text Source | |
type AttrBaseTypeConstraint ImageIconNamePropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageIconNamePropertyInfo = * ~ Text Source | |
type AttrAllowedOps ImageIconNamePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageIconName :: (MonadIO m, ImageK o) => o -> m Text Source
setImageIconName :: (MonadIO m, ImageK o) => o -> Text -> m () Source
IconSet
data ImageIconSetPropertyInfo Source
AttrInfo ImageIconSetPropertyInfo Source | |
type AttrLabel ImageIconSetPropertyInfo = "Image::icon-set" Source | |
type AttrGetType ImageIconSetPropertyInfo = IconSet Source | |
type AttrBaseTypeConstraint ImageIconSetPropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageIconSetPropertyInfo = * ~ IconSet Source | |
type AttrAllowedOps ImageIconSetPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageIconSet :: (MonadIO m, ImageK o) => o -> m IconSet Source
setImageIconSet :: (MonadIO m, ImageK o) => o -> IconSet -> m () Source
IconSize
data ImageIconSizePropertyInfo Source
AttrInfo ImageIconSizePropertyInfo Source | |
type AttrLabel ImageIconSizePropertyInfo = "Image::icon-size" Source | |
type AttrGetType ImageIconSizePropertyInfo = Int32 Source | |
type AttrBaseTypeConstraint ImageIconSizePropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageIconSizePropertyInfo = * ~ Int32 Source | |
type AttrAllowedOps ImageIconSizePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageIconSize :: (MonadIO m, ImageK o) => o -> m Int32 Source
setImageIconSize :: (MonadIO m, ImageK o) => o -> Int32 -> m () Source
Pixbuf
data ImagePixbufPropertyInfo Source
AttrInfo ImagePixbufPropertyInfo Source | |
type AttrLabel ImagePixbufPropertyInfo = "Image::pixbuf" Source | |
type AttrGetType ImagePixbufPropertyInfo = Pixbuf Source | |
type AttrBaseTypeConstraint ImagePixbufPropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImagePixbufPropertyInfo = PixbufK Source | |
type AttrAllowedOps ImagePixbufPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImagePixbuf :: (MonadIO m, ImageK o) => o -> m Pixbuf Source
setImagePixbuf :: (MonadIO m, ImageK o, PixbufK a) => o -> a -> m () Source
PixbufAnimation
data ImagePixbufAnimationPropertyInfo Source
AttrInfo ImagePixbufAnimationPropertyInfo Source | |
type AttrLabel ImagePixbufAnimationPropertyInfo = "Image::pixbuf-animation" Source | |
type AttrGetType ImagePixbufAnimationPropertyInfo = PixbufAnimation Source | |
type AttrBaseTypeConstraint ImagePixbufAnimationPropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImagePixbufAnimationPropertyInfo = PixbufAnimationK Source | |
type AttrAllowedOps ImagePixbufAnimationPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
constructImagePixbufAnimation :: PixbufAnimationK a => a -> IO ([Char], GValue) Source
getImagePixbufAnimation :: (MonadIO m, ImageK o) => o -> m PixbufAnimation Source
setImagePixbufAnimation :: (MonadIO m, ImageK o, PixbufAnimationK a) => o -> a -> m () Source
PixelSize
data ImagePixelSizePropertyInfo Source
AttrInfo ImagePixelSizePropertyInfo Source | |
type AttrLabel ImagePixelSizePropertyInfo = "Image::pixel-size" Source | |
type AttrGetType ImagePixelSizePropertyInfo = Int32 Source | |
type AttrBaseTypeConstraint ImagePixelSizePropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImagePixelSizePropertyInfo = * ~ Int32 Source | |
type AttrAllowedOps ImagePixelSizePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImagePixelSize :: (MonadIO m, ImageK o) => o -> m Int32 Source
setImagePixelSize :: (MonadIO m, ImageK o) => o -> Int32 -> m () Source
Resource
data ImageResourcePropertyInfo Source
AttrInfo ImageResourcePropertyInfo Source | |
type AttrLabel ImageResourcePropertyInfo = "Image::resource" Source | |
type AttrGetType ImageResourcePropertyInfo = Text Source | |
type AttrBaseTypeConstraint ImageResourcePropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageResourcePropertyInfo = * ~ Text Source | |
type AttrAllowedOps ImageResourcePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageResource :: (MonadIO m, ImageK o) => o -> m Text Source
setImageResource :: (MonadIO m, ImageK o) => o -> Text -> m () Source
Stock
data ImageStockPropertyInfo Source
AttrInfo ImageStockPropertyInfo Source | |
type AttrLabel ImageStockPropertyInfo = "Image::stock" Source | |
type AttrGetType ImageStockPropertyInfo = Text Source | |
type AttrBaseTypeConstraint ImageStockPropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageStockPropertyInfo = * ~ Text Source | |
type AttrAllowedOps ImageStockPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageStock :: (MonadIO m, ImageK o) => o -> m Text Source
setImageStock :: (MonadIO m, ImageK o) => o -> Text -> m () Source
StorageType
data ImageStorageTypePropertyInfo Source
AttrInfo ImageStorageTypePropertyInfo Source | |
type AttrLabel ImageStorageTypePropertyInfo = "Image::storage-type" Source | |
type AttrGetType ImageStorageTypePropertyInfo = ImageType Source | |
type AttrBaseTypeConstraint ImageStorageTypePropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageStorageTypePropertyInfo = * ~ () Source | |
type AttrAllowedOps ImageStorageTypePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) Source |
getImageStorageType :: (MonadIO m, ImageK o) => o -> m ImageType Source
Surface
data ImageSurfacePropertyInfo Source
AttrInfo ImageSurfacePropertyInfo Source | |
type AttrLabel ImageSurfacePropertyInfo = "Image::surface" Source | |
type AttrGetType ImageSurfacePropertyInfo = Surface Source | |
type AttrBaseTypeConstraint ImageSurfacePropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageSurfacePropertyInfo = * ~ Surface Source | |
type AttrAllowedOps ImageSurfacePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageSurface :: (MonadIO m, ImageK o) => o -> m Surface Source
setImageSurface :: (MonadIO m, ImageK o) => o -> Surface -> m () Source
UseFallback
data ImageUseFallbackPropertyInfo Source
AttrInfo ImageUseFallbackPropertyInfo Source | |
type AttrLabel ImageUseFallbackPropertyInfo = "Image::use-fallback" Source | |
type AttrGetType ImageUseFallbackPropertyInfo = Bool Source | |
type AttrBaseTypeConstraint ImageUseFallbackPropertyInfo = ImageK Source | |
type AttrSetTypeConstraint ImageUseFallbackPropertyInfo = * ~ Bool Source | |
type AttrAllowedOps ImageUseFallbackPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getImageUseFallback :: (MonadIO m, ImageK o) => o -> m Bool Source
setImageUseFallback :: (MonadIO m, ImageK o) => o -> Bool -> m () Source