| 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 |
GI.IBus.Objects.Attribute
Description
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 # | |
| GObject Attribute Source # | |
Defined in GI.IBus.Objects.Attribute | |
| ManagedPtrNewtype Attribute Source # | |
Defined in GI.IBus.Objects.Attribute Methods toManagedPtr :: Attribute -> ManagedPtr Attribute | |
| TypedObject Attribute Source # | |
Defined in GI.IBus.Objects.Attribute Methods glibType :: IO GType | |
| IsGValue Attribute Source # | Convert |
Defined in GI.IBus.Objects.Attribute | |
| 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
Arguments
| :: (HasCallStack, MonadIO m, IsAttribute a) | |
| => a |
|
| -> m Word32 | Returns: An enum of |
Gets an enum of AttrType.
getEndIndex
Arguments
| :: (HasCallStack, MonadIO m, IsAttribute a) | |
| => a |
|
| -> m Word32 | Returns: A end unsigned index |
Gets an end unsigned index
getStartIndex
attributeGetStartIndex Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAttribute a) | |
| => a |
|
| -> m Word32 | Returns: A start unsigned index |
Gets a start unsigned index
getValue
Arguments
| :: (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.