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 |
An IBusAttribute represents an attribute that associate to IBusText. It decorates preedit buffer and auxiliary text with underline, foreground and background colors.
Synopsis
- newtype Attribute = Attribute (ManagedPtr Attribute)
- class (GObject o, IsDescendantOf Attribute o) => IsAttribute o
- toAttribute :: (MonadIO m, IsAttribute o) => o -> m Attribute
- attributeGetAttrType :: (HasCallStack, MonadIO m, IsAttribute a) => a -> m Word32
- attributeGetEndIndex :: (HasCallStack, MonadIO m, IsAttribute a) => a -> m Word32
- attributeGetStartIndex :: (HasCallStack, MonadIO m, IsAttribute a) => a -> m Word32
- attributeGetValue :: (HasCallStack, MonadIO m, IsAttribute a) => a -> m Word32
- attributeNew :: (HasCallStack, MonadIO m) => Word32 -> Word32 -> Word32 -> Word32 -> m Attribute
Exported types
Memory-managed wrapper type.
Instances
Eq Attribute Source # | |
IsGValue Attribute Source # | Convert |
GObject Attribute Source # | |
Defined in GI.IBus.Objects.Attribute gobjectType :: IO GType # | |
HasParentTypes Attribute Source # | |
Defined in GI.IBus.Objects.Attribute | |
type ParentTypes Attribute Source # | |
Defined in GI.IBus.Objects.Attribute |
class (GObject o, IsDescendantOf Attribute o) => IsAttribute o Source #
Type class for types which can be safely cast to Attribute
, for instance with toAttribute
.
Instances
(GObject o, IsDescendantOf Attribute o) => IsAttribute o Source # | |
Defined in GI.IBus.Objects.Attribute |
toAttribute :: (MonadIO m, IsAttribute o) => o -> m Attribute Source #
Methods
Overloaded methods
getAttrType
:: (HasCallStack, MonadIO m, IsAttribute a) | |
=> a |
|
-> m Word32 | Returns: An enum of |
Gets an enum of AttrType
.
getEndIndex
:: (HasCallStack, MonadIO m, IsAttribute a) | |
=> a |
|
-> m Word32 | Returns: A end unsigned index |
Gets an end unsigned index
getStartIndex
attributeGetStartIndex Source #
:: (HasCallStack, MonadIO m, IsAttribute a) | |
=> a |
|
-> m Word32 | Returns: A start unsigned index |
Gets a start unsigned index
getValue
:: (HasCallStack, MonadIO m, IsAttribute a) | |
=> a |
|
-> m Word32 | Returns: An unsigned int value relative with |
Gets an unsigned int value relative with AttrType
.
If the type is AttrTypeUnderline
, the return value is
AttrUnderline
. If the type is AttrTypeForeground
,
the return value is the color RGB.