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.Atk.Interfaces.Image
Contents
Description
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.
- newtype Image = Image (ManagedPtr Image)
- noImage :: Maybe Image
- class ManagedPtrNewtype a => IsImage a
- data ImageGetImageDescriptionMethodInfo
- imageGetImageDescription :: (HasCallStack, MonadIO m, IsImage a) => a -> m Text
- data ImageGetImageLocaleMethodInfo
- imageGetImageLocale :: (HasCallStack, MonadIO m, IsImage a) => a -> m (Maybe Text)
- data ImageGetImagePositionMethodInfo
- imageGetImagePosition :: (HasCallStack, MonadIO m, IsImage a) => a -> CoordType -> m (Int32, Int32)
- data ImageGetImageSizeMethodInfo
- imageGetImageSize :: (HasCallStack, MonadIO m, IsImage a) => a -> m (Int32, Int32)
- data ImageSetImageDescriptionMethodInfo
- imageSetImageDescription :: (HasCallStack, MonadIO m, IsImage a) => a -> Text -> m Bool
Exported types
Constructors
Image (ManagedPtr Image) |
Instances
WrappedPtr Image # | |
IsImage Image # | |
((~) * info (ResolveImageMethod t Image), MethodInfo * info Image p) => IsLabel t (Image -> p) # | |
((~) * info (ResolveImageMethod t Image), MethodInfo * info Image p) => IsLabelProxy t (Image -> p) # | |
type SignalList Image # | |
class ManagedPtrNewtype a => IsImage a #
Methods
getImageDescription
data ImageGetImageDescriptionMethodInfo #
Instances
((~) * signature (m Text), MonadIO m, IsImage a) => MethodInfo * ImageGetImageDescriptionMethodInfo a signature # | |
Arguments
:: (HasCallStack, MonadIO m, IsImage a) | |
=> a |
|
-> m Text | Returns: a string representing the image description |
Get a textual description of this image.
getImageLocale
data ImageGetImageLocaleMethodInfo #
Instances
((~) * signature (m (Maybe Text)), MonadIO m, IsImage a) => MethodInfo * ImageGetImageLocaleMethodInfo a signature # | |
Arguments
:: (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
data ImageGetImagePositionMethodInfo #
Instances
((~) * signature (CoordType -> m (Int32, Int32)), MonadIO m, IsImage a) => MethodInfo * ImageGetImagePositionMethodInfo a signature # | |
Arguments
:: (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
data ImageGetImageSizeMethodInfo #
Instances
((~) * signature (m (Int32, Int32)), MonadIO m, IsImage a) => MethodInfo * ImageGetImageSizeMethodInfo a signature # | |
Arguments
:: (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
data ImageSetImageDescriptionMethodInfo #
Instances
((~) * signature (Text -> m Bool), MonadIO m, IsImage a) => MethodInfo * ImageSetImageDescriptionMethodInfo a signature # | |