| 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.EngineDesc
Contents
Description
An IBusEngineDesc stores description data of IBusEngine.
The description data can either be passed to engineDescNew,
or loaded from an XML node through engineDescNewFromXmlNode
to construct IBusEngineDesc.
However, the recommended way to load engine description data is
using componentNewFromFile to load a component file,
which also includes engine description data.
Synopsis
- newtype EngineDesc = EngineDesc (ManagedPtr EngineDesc)
- class (GObject o, IsDescendantOf EngineDesc o) => IsEngineDesc o
- toEngineDesc :: (MonadIO m, IsEngineDesc o) => o -> m EngineDesc
- engineDescGetAuthor :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetDescription :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetHotkeys :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetIcon :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetIconPropKey :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetLanguage :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetLayout :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetLayoutOption :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetLayoutVariant :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetLicense :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetLongname :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetName :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetRank :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Word32
- engineDescGetSetup :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetSymbol :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetTextdomain :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescGetVersion :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> m Text
- engineDescNew :: (HasCallStack, MonadIO m) => Text -> Text -> Text -> Text -> Text -> Text -> Text -> Text -> m EngineDesc
- engineDescNewFromXmlNode :: (HasCallStack, MonadIO m) => XML -> m EngineDesc
- engineDescOutput :: (HasCallStack, MonadIO m, IsEngineDesc a) => a -> String -> Int32 -> m ()
- constructEngineDescAuthor :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescAuthor :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescDescription :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescDescription :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescHotkeys :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescHotkeys :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescIcon :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescIcon :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescIconPropKey :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescIconPropKey :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescLanguage :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescLanguage :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescLayout :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescLayout :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescLayoutOption :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescLayoutOption :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescLayoutVariant :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescLayoutVariant :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescLicense :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescLicense :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescLongname :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescLongname :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescName :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescName :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescRank :: (IsEngineDesc o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getEngineDescRank :: (MonadIO m, IsEngineDesc o) => o -> m Word32
- constructEngineDescSetup :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescSetup :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescSymbol :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescSymbol :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescTextdomain :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescTextdomain :: (MonadIO m, IsEngineDesc o) => o -> m Text
- constructEngineDescVersion :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o)
- getEngineDescVersion :: (MonadIO m, IsEngineDesc o) => o -> m Text
Exported types
newtype EngineDesc Source #
Memory-managed wrapper type.
Constructors
| EngineDesc (ManagedPtr EngineDesc) |
Instances
| Eq EngineDesc Source # | |
Defined in GI.IBus.Objects.EngineDesc | |
| GObject EngineDesc Source # | |
Defined in GI.IBus.Objects.EngineDesc | |
| ManagedPtrNewtype EngineDesc Source # | |
Defined in GI.IBus.Objects.EngineDesc Methods toManagedPtr :: EngineDesc -> ManagedPtr EngineDesc | |
| TypedObject EngineDesc Source # | |
Defined in GI.IBus.Objects.EngineDesc Methods glibType :: IO GType | |
| IsGValue EngineDesc Source # | Convert |
Defined in GI.IBus.Objects.EngineDesc | |
| HasParentTypes EngineDesc Source # | |
Defined in GI.IBus.Objects.EngineDesc | |
| type ParentTypes EngineDesc Source # | |
Defined in GI.IBus.Objects.EngineDesc | |
class (GObject o, IsDescendantOf EngineDesc o) => IsEngineDesc o Source #
Type class for types which can be safely cast to EngineDesc, for instance with toEngineDesc.
Instances
| (GObject o, IsDescendantOf EngineDesc o) => IsEngineDesc o Source # | |
Defined in GI.IBus.Objects.EngineDesc | |
toEngineDesc :: (MonadIO m, IsEngineDesc o) => o -> m EngineDesc Source #
Cast to EngineDesc, for types for which this is known to be safe. For general casts, use castTo.
Methods
Overloaded methods
getAuthor
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: author property in IBusEngineDesc |
Gets the author property in IBusEngineDesc. It should not be freed.
getDescription
engineDescGetDescription Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: description property in IBusEngineDesc |
Gets the description property in IBusEngineDesc. It should not be freed.
getHotkeys
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: hotkeys property in IBusEngineDesc |
Gets the hotkeys property in IBusEngineDesc. It should not be freed.
getIcon
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: icon property in IBusEngineDesc |
Gets the icon property in IBusEngineDesc. It should not be freed.
getIconPropKey
engineDescGetIconPropKey Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: IBusProperty.key for dynamic panel icon in IBusEngineDesc |
Gets the key of IBusProperty to load the panel icon dynamically in IBusEngineDesc. It should not be freed.
getLanguage
engineDescGetLanguage Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: language property in IBusEngineDesc |
Gets the language property in IBusEngineDesc. It should not be freed.
getLayout
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: layout property in IBusEngineDesc |
Gets the layout property in IBusEngineDesc. It should not be freed.
getLayoutOption
engineDescGetLayoutOption Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: keyboard option property in IBusEngineDesc |
Gets the keyboard option property in IBusEngineDesc. It should not be freed.
getLayoutVariant
engineDescGetLayoutVariant Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: keyboard variant property in IBusEngineDesc |
Gets the keyboard variant property in IBusEngineDesc. It should not be freed.
getLicense
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: license property in IBusEngineDesc |
Gets the license property in IBusEngineDesc. It should not be freed.
getLongname
engineDescGetLongname Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: longname property in IBusEngineDesc |
Gets the longname property in IBusEngineDesc. It should not be freed.
getName
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: name property in IBusEngineDesc |
Gets the name property in IBusEngineDesc. It should not be freed.
getRank
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Word32 | Returns: rank property in IBusEngineDesc |
Gets the rank property in IBusEngineDesc.
getSetup
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: setup property in IBusEngineDesc |
Gets the setup property in IBusEngineDesc. It should not be freed.
getSymbol
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: symbol property in IBusEngineDesc |
Gets the symbol property in IBusEngineDesc. It should not be freed.
getTextdomain
engineDescGetTextdomain Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: textdomain in IBusEngineDesc |
Gets the textdomain property in IBusEngineDesc. It should not be freed.
getVersion
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> m Text | Returns: version in IBusEngineDesc |
Gets the version property in IBusEngineDesc. It should not be freed.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Text |
|
| -> Text |
|
| -> Text |
|
| -> Text |
|
| -> Text |
|
| -> Text |
|
| -> Text |
|
| -> m EngineDesc | Returns: A newly allocated IBusEngineDesc. |
Creates a new EngineDesc.
If layout is "default", the engine inherits the current layout and
does not change the layout. The layouts "default" and "" are same.
E.g. If you switch JP XKB engine and an input method engine (IME),
the IME inherits the JP layout.
newFromXmlNode
engineDescNewFromXmlNode Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => XML |
|
| -> m EngineDesc | Returns: A newly allocated IBusEngineDesc that contains description from
|
Creates a new IBusEngineDesc from an XML node.
<note><para>This function is called by componentNewFromFile,
so developers normally do not need to call it directly.
</para></note>
output
Arguments
| :: (HasCallStack, MonadIO m, IsEngineDesc a) | |
| => a |
|
| -> String |
|
| -> Int32 |
|
| -> m () |
Output XML-formatted input method engine description.
The result will be append to GString specified in output.
Properties
author
The author of engine description
constructEngineDescAuthor :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “author” property. This is rarely needed directly, but it is used by new.
getEngineDescAuthor :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “author” property.
When overloading is enabled, this is equivalent to
get engineDesc #author
description
The description of engine description
constructEngineDescDescription :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “description” property. This is rarely needed directly, but it is used by new.
getEngineDescDescription :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “description” property.
When overloading is enabled, this is equivalent to
get engineDesc #description
hotkeys
The hotkeys of engine description
constructEngineDescHotkeys :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “hotkeys” property. This is rarely needed directly, but it is used by new.
getEngineDescHotkeys :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “hotkeys” property.
When overloading is enabled, this is equivalent to
get engineDesc #hotkeys
icon
The icon of engine description
constructEngineDescIcon :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “icon” property. This is rarely needed directly, but it is used by new.
getEngineDescIcon :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “icon” property.
When overloading is enabled, this is equivalent to
get engineDesc #icon
iconPropKey
The key of IBusProperty to change panel icon dynamically.
constructEngineDescIconPropKey :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “icon-prop-key” property. This is rarely needed directly, but it is used by new.
getEngineDescIconPropKey :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “icon-prop-key” property.
When overloading is enabled, this is equivalent to
get engineDesc #iconPropKey
language
The language of engine description
constructEngineDescLanguage :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “language” property. This is rarely needed directly, but it is used by new.
getEngineDescLanguage :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “language” property.
When overloading is enabled, this is equivalent to
get engineDesc #language
layout
The layout of engine description
constructEngineDescLayout :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “layout” property. This is rarely needed directly, but it is used by new.
getEngineDescLayout :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “layout” property.
When overloading is enabled, this is equivalent to
get engineDesc #layout
layoutOption
The keyboard option of engine description
constructEngineDescLayoutOption :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “layout-option” property. This is rarely needed directly, but it is used by new.
getEngineDescLayoutOption :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “layout-option” property.
When overloading is enabled, this is equivalent to
get engineDesc #layoutOption
layoutVariant
The keyboard variant of engine description
constructEngineDescLayoutVariant :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “layout-variant” property. This is rarely needed directly, but it is used by new.
getEngineDescLayoutVariant :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “layout-variant” property.
When overloading is enabled, this is equivalent to
get engineDesc #layoutVariant
license
The license of engine description
constructEngineDescLicense :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “license” property. This is rarely needed directly, but it is used by new.
getEngineDescLicense :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “license” property.
When overloading is enabled, this is equivalent to
get engineDesc #license
longname
The longname of engine description
constructEngineDescLongname :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “longname” property. This is rarely needed directly, but it is used by new.
getEngineDescLongname :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “longname” property.
When overloading is enabled, this is equivalent to
get engineDesc #longname
name
The name of engine description
constructEngineDescName :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “name” property. This is rarely needed directly, but it is used by new.
getEngineDescName :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “name” property.
When overloading is enabled, this is equivalent to
get engineDesc #name
rank
The rank of engine description
constructEngineDescRank :: (IsEngineDesc o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “rank” property. This is rarely needed directly, but it is used by new.
getEngineDescRank :: (MonadIO m, IsEngineDesc o) => o -> m Word32 Source #
Get the value of the “rank” property.
When overloading is enabled, this is equivalent to
get engineDesc #rank
setup
The exec lists of the engine setup command
constructEngineDescSetup :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “setup” property. This is rarely needed directly, but it is used by new.
getEngineDescSetup :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “setup” property.
When overloading is enabled, this is equivalent to
get engineDesc #setup
symbol
The symbol chars of engine description instead of icon image
constructEngineDescSymbol :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “symbol” property. This is rarely needed directly, but it is used by new.
getEngineDescSymbol :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “symbol” property.
When overloading is enabled, this is equivalent to
get engineDesc #symbol
textdomain
The textdomain of engine description
constructEngineDescTextdomain :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “textdomain” property. This is rarely needed directly, but it is used by new.
getEngineDescTextdomain :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “textdomain” property.
When overloading is enabled, this is equivalent to
get engineDesc #textdomain
version
The version number of engine description
constructEngineDescVersion :: (IsEngineDesc o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “version” property. This is rarely needed directly, but it is used by new.
getEngineDescVersion :: (MonadIO m, IsEngineDesc o) => o -> m Text Source #
Get the value of the “version” property.
When overloading is enabled, this is equivalent to
get engineDesc #version