gi-ibus-1.5.3: IBus bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.IBus.Objects.EngineSimple

Description

An IBusEngineSimple provides table-based input method logic.

see_also: Engine

Synopsis

Exported types

newtype EngineSimple Source #

Memory-managed wrapper type.

Constructors

EngineSimple (ManagedPtr EngineSimple) 

Instances

Instances details
Eq EngineSimple Source # 
Instance details

Defined in GI.IBus.Objects.EngineSimple

GObject EngineSimple Source # 
Instance details

Defined in GI.IBus.Objects.EngineSimple

ManagedPtrNewtype EngineSimple Source # 
Instance details

Defined in GI.IBus.Objects.EngineSimple

Methods

toManagedPtr :: EngineSimple -> ManagedPtr EngineSimple

TypedObject EngineSimple Source # 
Instance details

Defined in GI.IBus.Objects.EngineSimple

Methods

glibType :: IO GType

HasParentTypes EngineSimple Source # 
Instance details

Defined in GI.IBus.Objects.EngineSimple

IsGValue (Maybe EngineSimple) Source #

Convert EngineSimple to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.IBus.Objects.EngineSimple

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe EngineSimple -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe EngineSimple)

type ParentTypes EngineSimple Source # 
Instance details

Defined in GI.IBus.Objects.EngineSimple

type ParentTypes EngineSimple = '[Engine, Service, Object, Object]

class (GObject o, IsDescendantOf EngineSimple o) => IsEngineSimple o Source #

Type class for types which can be safely cast to EngineSimple, for instance with toEngineSimple.

Instances

Instances details
(GObject o, IsDescendantOf EngineSimple o) => IsEngineSimple o Source # 
Instance details

Defined in GI.IBus.Objects.EngineSimple

toEngineSimple :: (MonadIO m, IsEngineSimple o) => o -> m EngineSimple Source #

Cast to EngineSimple, for types for which this is known to be safe. For general casts, use castTo.

Methods

addComposeFile

engineSimpleAddComposeFile Source #

Arguments

:: (HasCallStack, MonadIO m, IsEngineSimple a) 
=> a

simple: An IBusEngineSimple.

-> Text

file: The compose file.

-> m Bool

Returns: True if the file is loaded.

Call engineSimpleAddTable internally by locale.

addTable

engineSimpleAddTable Source #

Arguments

:: (HasCallStack, MonadIO m, IsEngineSimple a) 
=> a

simple: An IBusEngineSimple.

-> [Word16]

data: The table which must be available during the whole life of the simple engine.

-> Int32

maxSeqLen: Maximum length of a swquence in the table (cannot be greater than MAX_COMPOSE_LEN)

-> Int32

nSeqs: number of sequences in the table

-> m () 

Adds an additional table to search to the engine. Each row of the table consists of max_seq_len key symbols followed by two guint16 interpreted as the high and low words of a gunicode value. Tables are searched starting from the last added.

The table must be sorted in dictionary order on the numeric value of the key symbol fields. (Values beyond the length of the sequence should be zero.)

addTableByLocale

engineSimpleAddTableByLocale Source #

Arguments

:: (HasCallStack, MonadIO m, IsEngineSimple a) 
=> a

simple: An IBusEngineSimple.

-> Maybe Text

locale: The locale name. If the locale is Nothing, the current locale is used.

-> m Bool

Returns: True if the locale is matched to the table.

Call engineSimpleAddTable internally by locale.