| 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 |
GI.Gtk.Objects.Image
Contents
- 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
Description
- newtype Image = Image (ForeignPtr Image)
- class GObject o => IsImage o
- toImage :: IsImage o => o -> IO Image
- noImage :: Maybe Image
- data ImageClearMethodInfo
- imageClear :: (MonadIO m, IsImage a) => a -> m ()
- data ImageGetAnimationMethodInfo
- imageGetAnimation :: (MonadIO m, IsImage a) => a -> m (Maybe PixbufAnimation)
- data ImageGetGiconMethodInfo
- imageGetGicon :: (MonadIO m, IsImage a) => a -> m (Icon, Int32)
- data ImageGetIconNameMethodInfo
- imageGetIconName :: (MonadIO m, IsImage a) => a -> m (Text, Int32)
- data ImageGetIconSetMethodInfo
- imageGetIconSet :: (MonadIO m, IsImage a) => a -> m (IconSet, Int32)
- data ImageGetPixbufMethodInfo
- imageGetPixbuf :: (MonadIO m, IsImage a) => a -> m (Maybe Pixbuf)
- data ImageGetPixelSizeMethodInfo
- imageGetPixelSize :: (MonadIO m, IsImage a) => a -> m Int32
- data ImageGetStockMethodInfo
- imageGetStock :: (MonadIO m, IsImage a) => a -> m (Text, Int32)
- data ImageGetStorageTypeMethodInfo
- imageGetStorageType :: (MonadIO m, IsImage a) => a -> m ImageType
- imageNew :: MonadIO m => m Image
- imageNewFromAnimation :: (MonadIO m, IsPixbufAnimation a) => a -> m Image
- imageNewFromFile :: MonadIO m => [Char] -> m Image
- imageNewFromGicon :: (MonadIO m, IsIcon a) => a -> Int32 -> m Image
- imageNewFromIconName :: MonadIO m => Text -> Int32 -> m Image
- imageNewFromIconSet :: MonadIO m => IconSet -> Int32 -> m Image
- imageNewFromPixbuf :: (MonadIO m, IsPixbuf 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
- data ImageSetFromAnimationMethodInfo
- imageSetFromAnimation :: (MonadIO m, IsImage a, IsPixbufAnimation b) => a -> b -> m ()
- data ImageSetFromFileMethodInfo
- imageSetFromFile :: (MonadIO m, IsImage a) => a -> Maybe [Char] -> m ()
- data ImageSetFromGiconMethodInfo
- imageSetFromGicon :: (MonadIO m, IsImage a, IsIcon b) => a -> b -> Int32 -> m ()
- data ImageSetFromIconNameMethodInfo
- imageSetFromIconName :: (MonadIO m, IsImage a) => a -> Text -> Int32 -> m ()
- data ImageSetFromIconSetMethodInfo
- imageSetFromIconSet :: (MonadIO m, IsImage a) => a -> IconSet -> Int32 -> m ()
- data ImageSetFromPixbufMethodInfo
- imageSetFromPixbuf :: (MonadIO m, IsImage a, IsPixbuf b) => a -> Maybe b -> m ()
- data ImageSetFromResourceMethodInfo
- imageSetFromResource :: (MonadIO m, IsImage a) => a -> Maybe Text -> m ()
- data ImageSetFromStockMethodInfo
- imageSetFromStock :: (MonadIO m, IsImage a) => a -> Text -> Int32 -> m ()
- data ImageSetFromSurfaceMethodInfo
- imageSetFromSurface :: (MonadIO m, IsImage a) => a -> Surface -> m ()
- data ImageSetPixelSizeMethodInfo
- imageSetPixelSize :: (MonadIO m, IsImage a) => a -> Int32 -> m ()
- data ImageFilePropertyInfo
- clearImageFile :: (MonadIO m, IsImage o) => o -> m ()
- constructImageFile :: IsImage o => Text -> IO (GValueConstruct o)
- getImageFile :: (MonadIO m, IsImage o) => o -> m (Maybe Text)
- imageFile :: AttrLabelProxy "file"
- setImageFile :: (MonadIO m, IsImage o) => o -> Text -> m ()
- data ImageGiconPropertyInfo
- clearImageGicon :: (MonadIO m, IsImage o) => o -> m ()
- constructImageGicon :: (IsImage o, IsIcon a) => a -> IO (GValueConstruct o)
- getImageGicon :: (MonadIO m, IsImage o) => o -> m (Maybe Icon)
- imageGicon :: AttrLabelProxy "gicon"
- setImageGicon :: (MonadIO m, IsImage o, IsIcon a) => o -> a -> m ()
- data ImageIconNamePropertyInfo
- clearImageIconName :: (MonadIO m, IsImage o) => o -> m ()
- constructImageIconName :: IsImage o => Text -> IO (GValueConstruct o)
- getImageIconName :: (MonadIO m, IsImage o) => o -> m (Maybe Text)
- imageIconName :: AttrLabelProxy "iconName"
- setImageIconName :: (MonadIO m, IsImage o) => o -> Text -> m ()
- data ImageIconSetPropertyInfo
- clearImageIconSet :: (MonadIO m, IsImage o) => o -> m ()
- constructImageIconSet :: IsImage o => IconSet -> IO (GValueConstruct o)
- getImageIconSet :: (MonadIO m, IsImage o) => o -> m (Maybe IconSet)
- imageIconSet :: AttrLabelProxy "iconSet"
- setImageIconSet :: (MonadIO m, IsImage o) => o -> IconSet -> m ()
- data ImageIconSizePropertyInfo
- constructImageIconSize :: IsImage o => Int32 -> IO (GValueConstruct o)
- getImageIconSize :: (MonadIO m, IsImage o) => o -> m Int32
- imageIconSize :: AttrLabelProxy "iconSize"
- setImageIconSize :: (MonadIO m, IsImage o) => o -> Int32 -> m ()
- data ImagePixbufPropertyInfo
- clearImagePixbuf :: (MonadIO m, IsImage o) => o -> m ()
- constructImagePixbuf :: (IsImage o, IsPixbuf a) => a -> IO (GValueConstruct o)
- getImagePixbuf :: (MonadIO m, IsImage o) => o -> m (Maybe Pixbuf)
- imagePixbuf :: AttrLabelProxy "pixbuf"
- setImagePixbuf :: (MonadIO m, IsImage o, IsPixbuf a) => o -> a -> m ()
- data ImagePixbufAnimationPropertyInfo
- clearImagePixbufAnimation :: (MonadIO m, IsImage o) => o -> m ()
- constructImagePixbufAnimation :: (IsImage o, IsPixbufAnimation a) => a -> IO (GValueConstruct o)
- getImagePixbufAnimation :: (MonadIO m, IsImage o) => o -> m (Maybe PixbufAnimation)
- imagePixbufAnimation :: AttrLabelProxy "pixbufAnimation"
- setImagePixbufAnimation :: (MonadIO m, IsImage o, IsPixbufAnimation a) => o -> a -> m ()
- data ImagePixelSizePropertyInfo
- constructImagePixelSize :: IsImage o => Int32 -> IO (GValueConstruct o)
- getImagePixelSize :: (MonadIO m, IsImage o) => o -> m Int32
- imagePixelSize :: AttrLabelProxy "pixelSize"
- setImagePixelSize :: (MonadIO m, IsImage o) => o -> Int32 -> m ()
- data ImageResourcePropertyInfo
- clearImageResource :: (MonadIO m, IsImage o) => o -> m ()
- constructImageResource :: IsImage o => Text -> IO (GValueConstruct o)
- getImageResource :: (MonadIO m, IsImage o) => o -> m (Maybe Text)
- imageResource :: AttrLabelProxy "resource"
- setImageResource :: (MonadIO m, IsImage o) => o -> Text -> m ()
- data ImageStockPropertyInfo
- clearImageStock :: (MonadIO m, IsImage o) => o -> m ()
- constructImageStock :: IsImage o => Text -> IO (GValueConstruct o)
- getImageStock :: (MonadIO m, IsImage o) => o -> m (Maybe Text)
- imageStock :: AttrLabelProxy "stock"
- setImageStock :: (MonadIO m, IsImage o) => o -> Text -> m ()
- data ImageStorageTypePropertyInfo
- getImageStorageType :: (MonadIO m, IsImage o) => o -> m ImageType
- imageStorageType :: AttrLabelProxy "storageType"
- data ImageSurfacePropertyInfo
- clearImageSurface :: (MonadIO m, IsImage o) => o -> m ()
- constructImageSurface :: IsImage o => Surface -> IO (GValueConstruct o)
- getImageSurface :: (MonadIO m, IsImage o) => o -> m (Maybe Surface)
- imageSurface :: AttrLabelProxy "surface"
- setImageSurface :: (MonadIO m, IsImage o) => o -> Surface -> m ()
- data ImageUseFallbackPropertyInfo
- constructImageUseFallback :: IsImage o => Bool -> IO (GValueConstruct o)
- getImageUseFallback :: (MonadIO m, IsImage o) => o -> m Bool
- imageUseFallback :: AttrLabelProxy "useFallback"
- setImageUseFallback :: (MonadIO m, IsImage o) => o -> Bool -> m ()
Exported types
Constructors
| Image (ForeignPtr Image) |
Instances
| GObject Image Source # | |
| IsObject Image Source # | |
| IsWidget Image Source # | |
| IsMisc Image Source # | |
| IsBuildable Image Source # | |
| IsImplementorIface Image Source # | |
| IsImage Image Source # | |
| ((~) * info (ResolveImageMethod t Image), MethodInfo * info Image p) => IsLabel t (Image -> p) Source # | |
| ((~) * info (ResolveImageMethod t Image), MethodInfo * info Image p) => IsLabelProxy t (Image -> p) Source # | |
| HasAttributeList * Image Source # | |
| type SignalList Image Source # | |
| type AttributeList Image Source # | |
Methods
imageClear
data ImageClearMethodInfo Source #
imageClear :: (MonadIO m, IsImage a) => a -> m () Source #
imageGetAnimation
imageGetGicon
imageGetIconName
imageGetIconSet
imageGetIconSet :: (MonadIO m, IsImage a) => a -> m (IconSet, Int32) Source #
Deprecated: (Since version 3.10)Use gtk_image_get_icon_name() instead.
imageGetPixbuf
imageGetPixelSize
imageGetStock
imageGetStock :: (MonadIO m, IsImage a) => a -> m (Text, Int32) Source #
Deprecated: (Since version 3.10)Use gtk_image_get_icon_name() instead.
imageGetStorageType
imageNew
imageNewFromAnimation
imageNewFromAnimation :: (MonadIO m, IsPixbufAnimation a) => a -> m Image Source #
imageNewFromFile
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, IsImage a, IsPixbufAnimation b) => a -> b -> m () Source #
imageSetFromFile
imageSetFromGicon
imageSetFromIconName
imageSetFromIconSet
imageSetFromIconSet :: (MonadIO m, IsImage 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, IsImage a) => a -> Text -> Int32 -> m () Source #
Deprecated: (Since version 3.10)Use gtk_image_set_from_icon_name() instead.
imageSetFromSurface
imageSetFromSurface :: (MonadIO m, IsImage a) => a -> Surface -> m () Source #
imageSetPixelSize
Properties
File
data ImageFilePropertyInfo Source #
Instances
| AttrInfo ImageFilePropertyInfo Source # | |
| type AttrSetTypeConstraint ImageFilePropertyInfo Source # | |
| type AttrLabel ImageFilePropertyInfo Source # | |
| type AttrGetType ImageFilePropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageFilePropertyInfo Source # | |
| type AttrAllowedOps ImageFilePropertyInfo Source # | |
clearImageFile :: (MonadIO m, IsImage o) => o -> m () Source #
constructImageFile :: IsImage o => Text -> IO (GValueConstruct o) Source #
setImageFile :: (MonadIO m, IsImage o) => o -> Text -> m () Source #
Gicon
data ImageGiconPropertyInfo Source #
Instances
| AttrInfo ImageGiconPropertyInfo Source # | |
| type AttrSetTypeConstraint ImageGiconPropertyInfo Source # | |
| type AttrLabel ImageGiconPropertyInfo Source # | |
| type AttrGetType ImageGiconPropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageGiconPropertyInfo Source # | |
| type AttrAllowedOps ImageGiconPropertyInfo Source # | |
clearImageGicon :: (MonadIO m, IsImage o) => o -> m () Source #
constructImageGicon :: (IsImage o, IsIcon a) => a -> IO (GValueConstruct o) Source #
imageGicon :: AttrLabelProxy "gicon" Source #
setImageGicon :: (MonadIO m, IsImage o, IsIcon a) => o -> a -> m () Source #
IconName
data ImageIconNamePropertyInfo Source #
Instances
| AttrInfo ImageIconNamePropertyInfo Source # | |
| type AttrSetTypeConstraint ImageIconNamePropertyInfo Source # | |
| type AttrLabel ImageIconNamePropertyInfo Source # | |
| type AttrGetType ImageIconNamePropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageIconNamePropertyInfo Source # | |
| type AttrAllowedOps ImageIconNamePropertyInfo Source # | |
clearImageIconName :: (MonadIO m, IsImage o) => o -> m () Source #
constructImageIconName :: IsImage o => Text -> IO (GValueConstruct o) Source #
imageIconName :: AttrLabelProxy "iconName" Source #
setImageIconName :: (MonadIO m, IsImage o) => o -> Text -> m () Source #
IconSet
data ImageIconSetPropertyInfo Source #
Instances
| AttrInfo ImageIconSetPropertyInfo Source # | |
| type AttrSetTypeConstraint ImageIconSetPropertyInfo Source # | |
| type AttrLabel ImageIconSetPropertyInfo Source # | |
| type AttrGetType ImageIconSetPropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageIconSetPropertyInfo Source # | |
| type AttrAllowedOps ImageIconSetPropertyInfo Source # | |
clearImageIconSet :: (MonadIO m, IsImage o) => o -> m () Source #
imageIconSet :: AttrLabelProxy "iconSet" Source #
IconSize
data ImageIconSizePropertyInfo Source #
Instances
| AttrInfo ImageIconSizePropertyInfo Source # | |
| type AttrSetTypeConstraint ImageIconSizePropertyInfo Source # | |
| type AttrLabel ImageIconSizePropertyInfo Source # | |
| type AttrGetType ImageIconSizePropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageIconSizePropertyInfo Source # | |
| type AttrAllowedOps ImageIconSizePropertyInfo Source # | |
imageIconSize :: AttrLabelProxy "iconSize" Source #
Pixbuf
data ImagePixbufPropertyInfo Source #
Instances
| AttrInfo ImagePixbufPropertyInfo Source # | |
| type AttrSetTypeConstraint ImagePixbufPropertyInfo Source # | |
| type AttrLabel ImagePixbufPropertyInfo Source # | |
| type AttrGetType ImagePixbufPropertyInfo Source # | |
| type AttrBaseTypeConstraint ImagePixbufPropertyInfo Source # | |
| type AttrAllowedOps ImagePixbufPropertyInfo Source # | |
clearImagePixbuf :: (MonadIO m, IsImage o) => o -> m () Source #
constructImagePixbuf :: (IsImage o, IsPixbuf a) => a -> IO (GValueConstruct o) Source #
imagePixbuf :: AttrLabelProxy "pixbuf" Source #
setImagePixbuf :: (MonadIO m, IsImage o, IsPixbuf a) => o -> a -> m () Source #
PixbufAnimation
data ImagePixbufAnimationPropertyInfo Source #
Instances
| AttrInfo ImagePixbufAnimationPropertyInfo Source # | |
| type AttrSetTypeConstraint ImagePixbufAnimationPropertyInfo Source # | |
| type AttrLabel ImagePixbufAnimationPropertyInfo Source # | |
| type AttrGetType ImagePixbufAnimationPropertyInfo Source # | |
| type AttrBaseTypeConstraint ImagePixbufAnimationPropertyInfo Source # | |
| type AttrAllowedOps ImagePixbufAnimationPropertyInfo Source # | |
clearImagePixbufAnimation :: (MonadIO m, IsImage o) => o -> m () Source #
constructImagePixbufAnimation :: (IsImage o, IsPixbufAnimation a) => a -> IO (GValueConstruct o) Source #
imagePixbufAnimation :: AttrLabelProxy "pixbufAnimation" Source #
setImagePixbufAnimation :: (MonadIO m, IsImage o, IsPixbufAnimation a) => o -> a -> m () Source #
PixelSize
data ImagePixelSizePropertyInfo Source #
Instances
| AttrInfo ImagePixelSizePropertyInfo Source # | |
| type AttrSetTypeConstraint ImagePixelSizePropertyInfo Source # | |
| type AttrLabel ImagePixelSizePropertyInfo Source # | |
| type AttrGetType ImagePixelSizePropertyInfo Source # | |
| type AttrBaseTypeConstraint ImagePixelSizePropertyInfo Source # | |
| type AttrAllowedOps ImagePixelSizePropertyInfo Source # | |
imagePixelSize :: AttrLabelProxy "pixelSize" Source #
Resource
data ImageResourcePropertyInfo Source #
Instances
| AttrInfo ImageResourcePropertyInfo Source # | |
| type AttrSetTypeConstraint ImageResourcePropertyInfo Source # | |
| type AttrLabel ImageResourcePropertyInfo Source # | |
| type AttrGetType ImageResourcePropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageResourcePropertyInfo Source # | |
| type AttrAllowedOps ImageResourcePropertyInfo Source # | |
clearImageResource :: (MonadIO m, IsImage o) => o -> m () Source #
constructImageResource :: IsImage o => Text -> IO (GValueConstruct o) Source #
imageResource :: AttrLabelProxy "resource" Source #
setImageResource :: (MonadIO m, IsImage o) => o -> Text -> m () Source #
Stock
data ImageStockPropertyInfo Source #
Instances
| AttrInfo ImageStockPropertyInfo Source # | |
| type AttrSetTypeConstraint ImageStockPropertyInfo Source # | |
| type AttrLabel ImageStockPropertyInfo Source # | |
| type AttrGetType ImageStockPropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageStockPropertyInfo Source # | |
| type AttrAllowedOps ImageStockPropertyInfo Source # | |
clearImageStock :: (MonadIO m, IsImage o) => o -> m () Source #
constructImageStock :: IsImage o => Text -> IO (GValueConstruct o) Source #
imageStock :: AttrLabelProxy "stock" Source #
setImageStock :: (MonadIO m, IsImage o) => o -> Text -> m () Source #
StorageType
data ImageStorageTypePropertyInfo Source #
Instances
| AttrInfo ImageStorageTypePropertyInfo Source # | |
| type AttrSetTypeConstraint ImageStorageTypePropertyInfo Source # | |
| type AttrLabel ImageStorageTypePropertyInfo Source # | |
| type AttrGetType ImageStorageTypePropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageStorageTypePropertyInfo Source # | |
| type AttrAllowedOps ImageStorageTypePropertyInfo Source # | |
imageStorageType :: AttrLabelProxy "storageType" Source #
Surface
data ImageSurfacePropertyInfo Source #
Instances
| AttrInfo ImageSurfacePropertyInfo Source # | |
| type AttrSetTypeConstraint ImageSurfacePropertyInfo Source # | |
| type AttrLabel ImageSurfacePropertyInfo Source # | |
| type AttrGetType ImageSurfacePropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageSurfacePropertyInfo Source # | |
| type AttrAllowedOps ImageSurfacePropertyInfo Source # | |
clearImageSurface :: (MonadIO m, IsImage o) => o -> m () Source #
constructImageSurface :: IsImage o => Surface -> IO (GValueConstruct o) Source #
imageSurface :: AttrLabelProxy "surface" Source #
setImageSurface :: (MonadIO m, IsImage o) => o -> Surface -> m () Source #
UseFallback
data ImageUseFallbackPropertyInfo Source #
Instances
| AttrInfo ImageUseFallbackPropertyInfo Source # | |
| type AttrSetTypeConstraint ImageUseFallbackPropertyInfo Source # | |
| type AttrLabel ImageUseFallbackPropertyInfo Source # | |
| type AttrGetType ImageUseFallbackPropertyInfo Source # | |
| type AttrBaseTypeConstraint ImageUseFallbackPropertyInfo Source # | |
| type AttrAllowedOps ImageUseFallbackPropertyInfo Source # | |
imageUseFallback :: AttrLabelProxy "useFallback" Source #