Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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 # | |
GObject Attribute Source # | |
Defined in GI.IBus.Objects.Attribute | |
ManagedPtrNewtype Attribute Source # | |
Defined in GI.IBus.Objects.Attribute toManagedPtr :: Attribute -> ManagedPtr Attribute | |
TypedObject Attribute Source # | |
Defined in GI.IBus.Objects.Attribute | |
HasParentTypes Attribute Source # | |
Defined in GI.IBus.Objects.Attribute | |
IsGValue (Maybe Attribute) Source # | Convert |
Defined in GI.IBus.Objects.Attribute gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Attribute -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, copy, destroy, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, removeQattachment, runDispose, serializeObject, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAttrType, getData, getEndIndex, getProperty, getQattachment, getQdata, getStartIndex, getValue.
Setters
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.