Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data AttrPreedit
- data AttrType
- data AttrUnderline
- data BusGlobalBindingType
- data BusRequestNameReply
- data BusStartServiceByNameReply
- data Error
- catchError :: IO a -> (Error -> GErrorMessage -> IO a) -> IO a
- handleError :: (Error -> GErrorMessage -> IO a) -> IO a -> IO a
- data InputPurpose
- data Orientation
- data PreeditFocusMode
- data PropState
- data PropType
- data XEventType
Enumerations
AttrPreedit
data AttrPreedit Source #
Type of Pre-edit style as the semantic name.
The Wayland specs prefers to express the semantic values rather than RGB
values and text-input protocol version 1 defines some values:
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/unstable/text-input/text-input-unstable-v1.xml?ref_type=headsL251
IBus compiled the values for major input method engines: https://github.com/ibus/ibus/wiki/Wayland-Colors
Since: 1.5.29
AttrPreeditDefault | Default style for composing text. |
AttrPreeditNone | Style should be the same as in non-composing text. |
AttrPreeditWhole | Most language engines wish to draw underline in the typed whole preedit string except for the prediction string. (Chinese, Japanese, Typing-booster) |
AttrPreeditSelection | Modifying an active segment is distinguished against whole the preedit text. (Hangul, Japanese) |
AttrPreeditPrediction | A prediction string can be appended after the typed string. (Typing-booster) |
AttrPreeditPrefix | A prefix string can be an informative color. (Table) |
AttrPreeditSuffix | A suffix string can be an informative color. (Table) |
AttrPreeditErrorSpelling | An detected typo could be an error color with a spelling check or the word could not be found in a dictionary. The underline color also might be more visible. (Typing-booster, Table) |
AttrPreeditErrorCompose | A wrong compose key could be an error color. (Typing-booster) |
AnotherAttrPreedit Int | Catch-all for unknown values |
Instances
AttrType
Type enumeration of IBusText attribute.
AttrTypeUnderline | Decorate with underline. |
AttrTypeForeground | Foreground color. |
AttrTypeBackground | Background color. |
AnotherAttrType Int | Catch-all for unknown values |
Instances
Enum AttrType Source # | |
Show AttrType Source # | |
Eq AttrType Source # | |
Ord AttrType Source # | |
Defined in GI.IBus.Enums | |
BoxedEnum AttrType Source # | |
Defined in GI.IBus.Enums | |
TypedObject AttrType Source # | |
Defined in GI.IBus.Enums | |
HasParentTypes AttrType Source # | |
Defined in GI.IBus.Enums | |
type ParentTypes AttrType Source # | |
Defined in GI.IBus.Enums |
AttrUnderline
data AttrUnderline Source #
Type of IBusText attribute.
AttrUnderlineNone | No underline. |
AttrUnderlineSingle | Single underline. |
AttrUnderlineDouble | Double underline. |
AttrUnderlineLow | Low underline ? FIXME |
AttrUnderlineError | Error underline |
AnotherAttrUnderline Int | Catch-all for unknown values |
Instances
BusGlobalBindingType
data BusGlobalBindingType Source #
Type enumeration of IBusBusGlobalBindingType.
Since: 1.5.29
BusGlobalBindingTypeAny | Any types |
BusGlobalBindingTypeImeSwitcher | IME switcher |
BusGlobalBindingTypeEmojiTyping | Emoji typing |
AnotherBusGlobalBindingType Int | Catch-all for unknown values |
Instances
BusRequestNameReply
data BusRequestNameReply Source #
No description available in the introspection data.
BusRequestNameReplyPrimaryOwner | same as DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER |
BusRequestNameReplyInQueue | same as DBUS_REQUEST_NAME_REPLY_IN_QUEUE |
BusRequestNameReplyExists | same as DBUS_REQUEST_NAME_REPLY_EXISTS |
BusRequestNameReplyAlreadyOwner | same as DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER |
AnotherBusRequestNameReply Int | Catch-all for unknown values |
Instances
BusStartServiceByNameReply
data BusStartServiceByNameReply Source #
No description available in the introspection data.
BusStartServiceByNameReplySuccess | same as DBUS_START_REPLY_SUCCESS |
BusStartServiceByNameReplyAlreadyRunning | same as DBUS_START_REPLY_ALREADY_RUNNING |
AnotherBusStartServiceByNameReply Int | Catch-all for unknown values |
Instances
Error
No description available in the introspection data.
ErrorNoEngine | There is no engine associated with input context. |
ErrorNoConfig | There is no config module running. |
ErrorFailed | General failure. |
AnotherError Int | Catch-all for unknown values |
Instances
Enum Error Source # | |
Show Error Source # | |
Eq Error Source # | |
Ord Error Source # | |
BoxedEnum Error Source # | |
Defined in GI.IBus.Enums | |
TypedObject Error Source # | |
Defined in GI.IBus.Enums | |
GErrorClass Error Source # | |
Defined in GI.IBus.Enums gerrorClassDomain :: Error -> Text | |
HasParentTypes Error Source # | |
Defined in GI.IBus.Enums | |
type ParentTypes Error Source # | |
Defined in GI.IBus.Enums |
catchError :: IO a -> (Error -> GErrorMessage -> IO a) -> IO a Source #
Catch exceptions of type Error
. This is a specialized version of catchGErrorJustDomain
.
handleError :: (Error -> GErrorMessage -> IO a) -> IO a -> IO a Source #
Handle exceptions of type Error
. This is a specialized version of handleGErrorJustDomain
.
InputPurpose
data InputPurpose Source #
Describes primary purpose of the input context. This information is particularly useful to implement intelligent behavior in engines, such as automatic input-mode switch and text prediction.
Note that the purpose is not meant to impose a totally strict rule about allowed characters, and does not replace input validation. It is fine for an on-screen keyboard to let the user override the character set restriction that is expressed by the purpose. The application is expected to validate the entry contents, even if it specified a purpose.
The difference between iBUSINPUTPURPOSEDIGITS
and
iBUSINPUTPURPOSENUMBER
is that the former accepts only digits
while the latter also some punctuation (like commas or points, plus,
minus) and “e” or “E” as in 3.14E+000.
This enumeration may be extended in the future; engines should interpret unknown values as 'free form'.
Since: 1.5.4
InputPurposeFreeForm | Allow any character |
InputPurposeAlpha | Allow only alphabetic characters |
InputPurposeDigits | Allow only digits |
InputPurposeNumber | Edited field expects numbers |
InputPurposePhone | Edited field expects phone number |
InputPurposeUrl | Edited field expects URL |
InputPurposeEmail | Edited field expects email address |
InputPurposeName | Edited field expects the name of a person |
InputPurposePassword | Like |
InputPurposePin | Like |
InputPurposeTerminal | Allow any character, in addition to control codes. Since 1.5.24 |
AnotherInputPurpose Int | Catch-all for unknown values |
Instances
Orientation
data Orientation Source #
Orientation of UI.
OrientationHorizontal | Horizontal orientation. |
OrientationVertical | Vertival orientation. |
OrientationSystem | Use ibus global orientation setup. |
AnotherOrientation Int | Catch-all for unknown values |
Instances
PreeditFocusMode
data PreeditFocusMode Source #
Pre-edit commit mode when the focus is lost.
PreeditFocusModeClear | pre-edit text is cleared. |
PreeditFocusModeCommit | pre-edit text is committed. |
AnotherPreeditFocusMode Int | Catch-all for unknown values |
Instances
PropState
State of Property
. The actual effect depends on PropType
of the
IBusProperty.
<variablelist> <varlistentry> <term>PROP_TYPE_TOGGLE</term> <listitem><para>Emphasized if PROP_STATE_CHECKED, normal otherwise.</para></listitem> </varlistentry> <varlistentry> <term>PROP_TYPE_RADIO</term> <listitem><para>Option checked if PROP_STATE_CHECKED, unchecked otherwise.</para></listitem> </varlistentry> </variablelist> No effect on other types.
PropStateUnchecked | Property option is unchecked. |
PropStateChecked | Property option is checked. |
PropStateInconsistent | The state is inconsistent with the associated IME property. |
AnotherPropState Int | Catch-all for unknown values |
Instances
Enum PropState Source # | |
Defined in GI.IBus.Enums succ :: PropState -> PropState # pred :: PropState -> PropState # fromEnum :: PropState -> Int # enumFrom :: PropState -> [PropState] # enumFromThen :: PropState -> PropState -> [PropState] # enumFromTo :: PropState -> PropState -> [PropState] # enumFromThenTo :: PropState -> PropState -> PropState -> [PropState] # | |
Show PropState Source # | |
Eq PropState Source # | |
Ord PropState Source # | |
Defined in GI.IBus.Enums | |
BoxedEnum PropState Source # | |
Defined in GI.IBus.Enums | |
TypedObject PropState Source # | |
Defined in GI.IBus.Enums | |
HasParentTypes PropState Source # | |
Defined in GI.IBus.Enums | |
type ParentTypes PropState Source # | |
Defined in GI.IBus.Enums |
PropType
Type enumeration of IBusProperty.
PropTypeNormal | Property is shown as normal text. |
PropTypeToggle | Property is shown as a toggle button. |
PropTypeRadio | Property is shown as a radio selection option. |
PropTypeMenu | Property is shown as a menu, usually imply it has sub menu items. |
PropTypeSeparator | A separator for menu. |
AnotherPropType Int | Catch-all for unknown values |
Instances
Enum PropType Source # | |
Show PropType Source # | |
Eq PropType Source # | |
Ord PropType Source # | |
Defined in GI.IBus.Enums | |
BoxedEnum PropType Source # | |
Defined in GI.IBus.Enums | |
TypedObject PropType Source # | |
Defined in GI.IBus.Enums | |
HasParentTypes PropType Source # | |
Defined in GI.IBus.Enums | |
type ParentTypes PropType Source # | |
Defined in GI.IBus.Enums |
XEventType
data XEventType Source #
No description available in the introspection data.
XEventTypeNothing | No description available in the introspection data. |
XEventTypeKeyPress | No description available in the introspection data. |
XEventTypeKeyRelease | No description available in the introspection data. |
XEventTypeOther | No description available in the introspection data. |
XEventTypeEventLast | No description available in the introspection data. |
AnotherXEventType Int | Catch-all for unknown values |