Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Image
should be implemented by Object
subtypes on behalf of
components which display image/pixmap information onscreen, and
which provide information (other than just widget borders, etc.)
via that image content. For instance, icons, buttons with icons,
toolbar elements, and image viewing panes typically should
implement Image
.
Image
primarily provides two types of information: coordinate
information (useful for screen review mode of screenreaders, and
for use by onscreen magnifiers), and descriptive information. The
descriptive information is provided for alternative, text-only
presentation of the most significant information present in the
image.
Synopsis
- newtype Image = Image (ManagedPtr Image)
- noImage :: Maybe Image
- class (ManagedPtrNewtype o, IsDescendantOf Image o) => IsImage o
- imageGetImageDescription :: (HasCallStack, MonadIO m, IsImage a) => a -> m Text
- imageGetImageLocale :: (HasCallStack, MonadIO m, IsImage a) => a -> m (Maybe Text)
- imageGetImagePosition :: (HasCallStack, MonadIO m, IsImage a) => a -> CoordType -> m (Int32, Int32)
- imageGetImageSize :: (HasCallStack, MonadIO m, IsImage a) => a -> m (Int32, Int32)
- imageSetImageDescription :: (HasCallStack, MonadIO m, IsImage a) => a -> Text -> m Bool
Exported types
Memory-managed wrapper type.
Instances
Eq Image Source # | |
WrappedPtr Image Source # | |
Defined in GI.Atk.Interfaces.Image wrappedPtrCalloc :: IO (Ptr Image) # wrappedPtrCopy :: Image -> IO Image # |
class (ManagedPtrNewtype o, IsDescendantOf Image o) => IsImage o Source #
Type class for types which implement Image
.
Instances
(ManagedPtrNewtype o, IsDescendantOf Image o) => IsImage o Source # | |
Defined in GI.Atk.Interfaces.Image |
Methods
Overloaded methods
getImageDescription
imageGetImageDescription Source #
:: (HasCallStack, MonadIO m, IsImage a) | |
=> a |
|
-> m Text | Returns: a string representing the image description |
Get a textual description of this image.
getImageLocale
:: (HasCallStack, MonadIO m, IsImage a) | |
=> a |
|
-> m (Maybe Text) | Returns: a string corresponding to the POSIX
LC_MESSAGES locale used by the image description, or |
No description available in the introspection data.
Since: 1.12
getImagePosition
imageGetImagePosition Source #
:: (HasCallStack, MonadIO m, IsImage a) | |
=> a |
|
-> CoordType |
|
-> m (Int32, Int32) |
Gets the position of the image in the form of a point specifying the images top-left corner.
getImageSize
:: (HasCallStack, MonadIO m, IsImage a) | |
=> a |
|
-> m (Int32, Int32) |
Get the width and height in pixels for the specified image.
The values of width
and height
are returned as -1 if the
values cannot be obtained (for instance, if the object is not onscreen).
setImageDescription
imageSetImageDescription Source #
:: (HasCallStack, MonadIO m, IsImage a) | |
=> a |
|
-> Text |
|
-> m Bool | Returns: boolean TRUE, or FALSE if operation could not be completed. |
Sets the textual description for this image.