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
- attrShape_attr :: AttrLabelProxy "attr"
- getAttrShapeAttr :: MonadIO m => AttrShape -> m Attribute
- attrShape_copyFunc :: AttrLabelProxy "copyFunc"
- clearAttrShapeCopyFunc :: MonadIO m => AttrShape -> m ()
- getAttrShapeCopyFunc :: MonadIO m => AttrShape -> m (Maybe AttrDataCopyFunc_WithClosures)
- setAttrShapeCopyFunc :: MonadIO m => AttrShape -> FunPtr C_AttrDataCopyFunc -> m ()
- attrShape_data :: AttrLabelProxy "data"
- clearAttrShapeData :: MonadIO m => AttrShape -> m ()
- getAttrShapeData :: MonadIO m => AttrShape -> m (Ptr ())
- setAttrShapeData :: MonadIO m => AttrShape -> Ptr () -> m ()
- attrShape_destroyFunc :: AttrLabelProxy "destroyFunc"
- clearAttrShapeDestroyFunc :: MonadIO m => AttrShape -> m ()
- getAttrShapeDestroyFunc :: MonadIO m => AttrShape -> m (Maybe DestroyNotify)
- setAttrShapeDestroyFunc :: MonadIO m => AttrShape -> FunPtr C_DestroyNotify -> m ()
- attrShape_inkRect :: AttrLabelProxy "inkRect"
- getAttrShapeInkRect :: MonadIO m => AttrShape -> m Rectangle
- attrShape_logicalRect :: AttrLabelProxy "logicalRect"
- getAttrShapeLogicalRect :: MonadIO m => AttrShape -> m Rectangle
Exported types
Constructors
AttrShape (ManagedPtr AttrShape) |
Instances
WrappedPtr AttrShape Source # | |
(~) AttrOpTag tag AttrSet => Constructible AttrShape tag Source # | |
((~) * info (ResolveAttrShapeMethod t AttrShape), MethodInfo * info AttrShape p) => IsLabel t (AttrShape -> p) Source # | |
((~) * info (ResolveAttrShapeMethod t AttrShape), MethodInfo * info AttrShape p) => IsLabelProxy t (AttrShape -> p) Source # | |
HasAttributeList * AttrShape Source # | |
type AttributeList AttrShape 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
attrShape_attr :: AttrLabelProxy "attr" Source #
copyFunc
attrShape_copyFunc :: AttrLabelProxy "copyFunc" Source #
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
attrShape_data :: AttrLabelProxy "data" Source #
clearAttrShapeData :: MonadIO m => AttrShape -> m () Source #
destroyFunc
attrShape_destroyFunc :: AttrLabelProxy "destroyFunc" Source #
clearAttrShapeDestroyFunc :: MonadIO m => AttrShape -> m () Source #
getAttrShapeDestroyFunc :: MonadIO m => AttrShape -> m (Maybe DestroyNotify) Source #
setAttrShapeDestroyFunc :: MonadIO m => AttrShape -> FunPtr C_DestroyNotify -> m () Source #
inkRect
attrShape_inkRect :: AttrLabelProxy "inkRect" Source #
logicalRect
attrShape_logicalRect :: AttrLabelProxy "logicalRect" Source #