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 |
The Attribute
structure represents the common portions of all
attributes. Particular types of attributes include this structure
as their initial portion. The common portion of the attribute holds
the range to which the value in the type-specific part of the attribute
applies and should be initialized using attributeInit
.
By default an attribute will have an all-inclusive range of [0,G_MAXUINT
].
- newtype Attribute = Attribute (ManagedPtr Attribute)
- noAttribute :: Maybe Attribute
- data AttributeDestroyMethodInfo
- attributeDestroy :: (HasCallStack, MonadIO m) => Attribute -> m ()
- data AttributeEqualMethodInfo
- attributeEqual :: (HasCallStack, MonadIO m) => Attribute -> Attribute -> m Bool
- data AttributeInitMethodInfo
- attributeInit :: (HasCallStack, MonadIO m) => Attribute -> AttrClass -> m ()
- attribute_endIndex :: AttrLabelProxy "endIndex"
- getAttributeEndIndex :: MonadIO m => Attribute -> m Word32
- setAttributeEndIndex :: MonadIO m => Attribute -> Word32 -> m ()
- attribute_klass :: AttrLabelProxy "klass"
- clearAttributeKlass :: MonadIO m => Attribute -> m ()
- getAttributeKlass :: MonadIO m => Attribute -> m (Maybe AttrClass)
- setAttributeKlass :: MonadIO m => Attribute -> Ptr AttrClass -> m ()
- attribute_startIndex :: AttrLabelProxy "startIndex"
- getAttributeStartIndex :: MonadIO m => Attribute -> m Word32
- setAttributeStartIndex :: MonadIO m => Attribute -> Word32 -> m ()
Exported types
WrappedPtr Attribute Source # | |
((~) * info (ResolveAttributeMethod t Attribute), MethodInfo * info Attribute p) => IsLabel t (Attribute -> p) Source # | |
((~) * info (ResolveAttributeMethod t Attribute), MethodInfo * info Attribute p) => IsLabelProxy t (Attribute -> p) Source # | |
HasAttributeList * Attribute Source # | |
((~) * signature (AttrClass -> m ()), MonadIO m) => MethodInfo * AttributeInitMethodInfo Attribute signature Source # | |
((~) * signature (Attribute -> m Bool), MonadIO m) => MethodInfo * AttributeEqualMethodInfo Attribute signature Source # | |
((~) * signature (m ()), MonadIO m) => MethodInfo * AttributeDestroyMethodInfo Attribute signature Source # | |
type AttributeList Attribute Source # | |
Methods
destroy
data AttributeDestroyMethodInfo Source #
((~) * signature (m ()), MonadIO m) => MethodInfo * AttributeDestroyMethodInfo Attribute signature Source # | |
:: (HasCallStack, MonadIO m) | |
=> Attribute |
|
-> m () |
Destroy a Attribute
and free all associated memory.
equal
data AttributeEqualMethodInfo Source #
((~) * signature (Attribute -> m Bool), MonadIO m) => MethodInfo * AttributeEqualMethodInfo Attribute signature Source # | |
:: (HasCallStack, MonadIO m) | |
=> Attribute |
|
-> Attribute |
|
-> m Bool | Returns: |
Compare two attributes for equality. This compares only the actual value of the two attributes and not the ranges that the attributes apply to.
init
data AttributeInitMethodInfo Source #
((~) * signature (AttrClass -> m ()), MonadIO m) => MethodInfo * AttributeInitMethodInfo Attribute signature Source # | |
Initializes attr
's klass to klass
,
it's start_index to ATTR_INDEX_FROM_TEXT_BEGINNING
and end_index to PANGO_ATTR_INDEX_TO_TEXT_END
such that the attribute applies
to the entire text by default.
Since: 1.20
Properties
endIndex
attribute_endIndex :: AttrLabelProxy "endIndex" Source #
klass
attribute_klass :: AttrLabelProxy "klass" Source #
clearAttributeKlass :: MonadIO m => Attribute -> m () Source #
startIndex
attribute_startIndex :: AttrLabelProxy "startIndex" Source #