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.Pango.Structs.AttrShape
Description
The AttrShape
structure is used to represent attributes which
impose shape restrictions.
- newtype AttrShape = AttrShape (ManagedPtr AttrShape)
- newZeroAttrShape :: MonadIO m => m AttrShape
- noAttrShape :: Maybe AttrShape
- attrShapeNew :: (HasCallStack, MonadIO m) => Rectangle -> Rectangle -> m Attribute
- getAttrShapeAttr :: MonadIO m => AttrShape -> m Attribute
- clearAttrShapeCopyFunc :: MonadIO m => AttrShape -> m ()
- getAttrShapeCopyFunc :: MonadIO m => AttrShape -> m (Maybe AttrDataCopyFunc_WithClosures)
- setAttrShapeCopyFunc :: MonadIO m => AttrShape -> FunPtr C_AttrDataCopyFunc -> m ()
- clearAttrShapeData :: MonadIO m => AttrShape -> m ()
- getAttrShapeData :: MonadIO m => AttrShape -> m (Ptr ())
- setAttrShapeData :: MonadIO m => AttrShape -> Ptr () -> m ()
- clearAttrShapeDestroyFunc :: MonadIO m => AttrShape -> m ()
- getAttrShapeDestroyFunc :: MonadIO m => AttrShape -> m (Maybe DestroyNotify)
- setAttrShapeDestroyFunc :: MonadIO m => AttrShape -> FunPtr C_DestroyNotify -> m ()
- getAttrShapeInkRect :: MonadIO m => AttrShape -> m Rectangle
- getAttrShapeLogicalRect :: MonadIO m => AttrShape -> m Rectangle
Exported types
Constructors
AttrShape (ManagedPtr AttrShape) |
Instances
WrappedPtr AttrShape Source # | |
(~) AttrOpTag tag AttrSet => Constructible AttrShape tag Source # | |
newZeroAttrShape :: MonadIO m => m AttrShape Source #
Construct a AttrShape
struct initialized to zero.
Methods
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> Rectangle |
|
-> Rectangle |
|
-> m Attribute | Returns: the newly allocated |
Create a new shape attribute. A shape is used to impose a
particular ink and logical rectangle on the result of shaping a
particular glyph. This might be used, for instance, for
embedding a picture or a widget inside a Layout
.
Properties
attr
copyFunc
clearAttrShapeCopyFunc :: MonadIO m => AttrShape -> m () Source #
getAttrShapeCopyFunc :: MonadIO m => AttrShape -> m (Maybe AttrDataCopyFunc_WithClosures) Source #
setAttrShapeCopyFunc :: MonadIO m => AttrShape -> FunPtr C_AttrDataCopyFunc -> m () Source #
data
clearAttrShapeData :: MonadIO m => AttrShape -> m () Source #
destroyFunc
clearAttrShapeDestroyFunc :: MonadIO m => AttrShape -> m () Source #
getAttrShapeDestroyFunc :: MonadIO m => AttrShape -> m (Maybe DestroyNotify) Source #
setAttrShapeDestroyFunc :: MonadIO m => AttrShape -> FunPtr C_DestroyNotify -> m () Source #