|
Packit Service |
1d8f1c |
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
|
|
Packit Service |
1d8f1c |
/* vim:set et sts=4: */
|
|
Packit Service |
1d8f1c |
/* ibus - The Input Bus
|
|
Packit Service |
1d8f1c |
* Copyright (C) 2008-2013 Peng Huang <shawn.p.huang@gmail.com>
|
|
Packit Service |
1d8f1c |
* Copyright (C) 2008-2015 Red Hat, Inc.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
1d8f1c |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
1d8f1c |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
1d8f1c |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
1d8f1c |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
1d8f1c |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
1d8f1c |
* Lesser General Public License for more details.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
1d8f1c |
* License along with this library; if not, write to the Free Software
|
|
Packit Service |
1d8f1c |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
|
Packit Service |
1d8f1c |
* USA
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
#if !defined (__IBUS_H_INSIDE__) && !defined (IBUS_COMPILATION)
|
|
Packit Service |
1d8f1c |
#error "Only <ibus.h> can be included directly"
|
|
Packit Service |
1d8f1c |
#endif
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
#ifndef __IBUS_TYPES_H_
|
|
Packit Service |
1d8f1c |
#define __IBUS_TYPES_H_
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* SECTION: ibustypes
|
|
Packit Service |
1d8f1c |
* @short_description: Generic types for IBus.
|
|
Packit Service |
1d8f1c |
* @stability: Stable
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* This section consists generic types for IBus, including shift/control key
|
|
Packit Service |
1d8f1c |
* modifiers,
|
|
Packit Service |
1d8f1c |
* and a rectangle structure.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusModifierType:
|
|
Packit Service |
1d8f1c |
* @IBUS_SHIFT_MASK: Shift is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_LOCK_MASK: Cap Lock is locked.
|
|
Packit Service |
1d8f1c |
* @IBUS_CONTROL_MASK: Control key is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_MOD1_MASK: Modifier 1 (Usually Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)) activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_MOD2_MASK: Modifier 2 (Usually Num_Lock (0x4d)) activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_MOD3_MASK: Modifier 3 activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_MOD4_MASK: Modifier 4 (Usually Super_L (0xce), Hyper_L (0xcf)) activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_MOD5_MASK: Modifier 5 (ISO_Level3_Shift (0x5c), Mode_switch (0xcb)) activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_BUTTON1_MASK: Mouse button 1 (left) is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_BUTTON2_MASK: Mouse button 2 (middle) is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_BUTTON3_MASK: Mouse button 3 (right) is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_BUTTON4_MASK: Mouse button 4 (scroll up) is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_BUTTON5_MASK: Mouse button 5 (scroll down) is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_HANDLED_MASK: Handled mask indicates the event has been handled by ibus.
|
|
Packit Service |
1d8f1c |
* @IBUS_FORWARD_MASK: Forward mask indicates the event has been forward from ibus.
|
|
Packit Service |
1d8f1c |
* @IBUS_IGNORED_MASK: It is an alias of IBUS_FORWARD_MASK.
|
|
Packit Service |
1d8f1c |
* @IBUS_SUPER_MASK: Super (Usually Win) key is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_HYPER_MASK: Hyper key is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_META_MASK: Meta key is activated.
|
|
Packit Service |
1d8f1c |
* @IBUS_RELEASE_MASK: Key is released.
|
|
Packit Service |
1d8f1c |
* @IBUS_MODIFIER_MASK: Modifier mask for the all the masks above.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Handles key modifier such as control, shift and alt and release event.
|
|
Packit Service |
1d8f1c |
* Note that nits 15 - 25 are currently unused, while bit 29 is used internally.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum
|
|
Packit Service |
1d8f1c |
{
|
|
Packit Service |
1d8f1c |
IBUS_SHIFT_MASK = 1 << 0,
|
|
Packit Service |
1d8f1c |
IBUS_LOCK_MASK = 1 << 1,
|
|
Packit Service |
1d8f1c |
IBUS_CONTROL_MASK = 1 << 2,
|
|
Packit Service |
1d8f1c |
IBUS_MOD1_MASK = 1 << 3,
|
|
Packit Service |
1d8f1c |
IBUS_MOD2_MASK = 1 << 4,
|
|
Packit Service |
1d8f1c |
IBUS_MOD3_MASK = 1 << 5,
|
|
Packit Service |
1d8f1c |
IBUS_MOD4_MASK = 1 << 6,
|
|
Packit Service |
1d8f1c |
IBUS_MOD5_MASK = 1 << 7,
|
|
Packit Service |
1d8f1c |
IBUS_BUTTON1_MASK = 1 << 8,
|
|
Packit Service |
1d8f1c |
IBUS_BUTTON2_MASK = 1 << 9,
|
|
Packit Service |
1d8f1c |
IBUS_BUTTON3_MASK = 1 << 10,
|
|
Packit Service |
1d8f1c |
IBUS_BUTTON4_MASK = 1 << 11,
|
|
Packit Service |
1d8f1c |
IBUS_BUTTON5_MASK = 1 << 12,
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/* The next few modifiers are used by XKB, so we skip to the end.
|
|
Packit Service |
1d8f1c |
* Bits 15 - 23 are currently unused. Bit 29 is used internally.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/* ibus mask */
|
|
Packit Service |
1d8f1c |
IBUS_HANDLED_MASK = 1 << 24,
|
|
Packit Service |
1d8f1c |
IBUS_FORWARD_MASK = 1 << 25,
|
|
Packit Service |
1d8f1c |
IBUS_IGNORED_MASK = IBUS_FORWARD_MASK,
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
IBUS_SUPER_MASK = 1 << 26,
|
|
Packit Service |
1d8f1c |
IBUS_HYPER_MASK = 1 << 27,
|
|
Packit Service |
1d8f1c |
IBUS_META_MASK = 1 << 28,
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
IBUS_RELEASE_MASK = 1 << 30,
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
IBUS_MODIFIER_MASK = 0x5f001fff
|
|
Packit Service |
1d8f1c |
} IBusModifierType;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusCapabilite:
|
|
Packit Service |
1d8f1c |
* @IBUS_CAP_PREEDIT_TEXT: UI is capable to show pre-edit text.
|
|
Packit Service |
1d8f1c |
* @IBUS_CAP_AUXILIARY_TEXT: UI is capable to show auxiliary text.
|
|
Packit Service |
1d8f1c |
* @IBUS_CAP_LOOKUP_TABLE: UI is capable to show the lookup table.
|
|
Packit Service |
1d8f1c |
* @IBUS_CAP_FOCUS: UI is capable to get focus.
|
|
Packit Service |
1d8f1c |
* @IBUS_CAP_PROPERTY: UI is capable to have property.
|
|
Packit Service |
1d8f1c |
* @IBUS_CAP_SURROUNDING_TEXT: Client can provide surround text,
|
|
Packit Service |
1d8f1c |
* or IME can handle surround text.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Capability flags of UI.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum {
|
|
Packit Service |
1d8f1c |
IBUS_CAP_PREEDIT_TEXT = 1 << 0,
|
|
Packit Service |
1d8f1c |
IBUS_CAP_AUXILIARY_TEXT = 1 << 1,
|
|
Packit Service |
1d8f1c |
IBUS_CAP_LOOKUP_TABLE = 1 << 2,
|
|
Packit Service |
1d8f1c |
IBUS_CAP_FOCUS = 1 << 3,
|
|
Packit Service |
1d8f1c |
IBUS_CAP_PROPERTY = 1 << 4,
|
|
Packit Service |
1d8f1c |
IBUS_CAP_SURROUNDING_TEXT = 1 << 5,
|
|
Packit Service |
1d8f1c |
} IBusCapabilite;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusPreeditFocusMode:
|
|
Packit Service |
1d8f1c |
* @IBUS_ENGINE_PREEDIT_CLEAR: pre-edit text is cleared.
|
|
Packit Service |
1d8f1c |
* @IBUS_ENGINE_PREEDIT_COMMIT: pre-edit text is committed.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Pre-edit commit mode when the focus is lost.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum {
|
|
Packit Service |
1d8f1c |
IBUS_ENGINE_PREEDIT_CLEAR = 0,
|
|
Packit Service |
1d8f1c |
IBUS_ENGINE_PREEDIT_COMMIT = 1,
|
|
Packit Service |
1d8f1c |
} IBusPreeditFocusMode;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusOrientation:
|
|
Packit Service |
1d8f1c |
* @IBUS_ORIENTATION_HORIZONTAL: Horizontal orientation.
|
|
Packit Service |
1d8f1c |
* @IBUS_ORIENTATION_VERTICAL: Vertival orientation.
|
|
Packit Service |
1d8f1c |
* @IBUS_ORIENTATION_SYSTEM: Use ibus global orientation setup.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Orientation of UI.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum {
|
|
Packit Service |
1d8f1c |
IBUS_ORIENTATION_HORIZONTAL = 0,
|
|
Packit Service |
1d8f1c |
IBUS_ORIENTATION_VERTICAL = 1,
|
|
Packit Service |
1d8f1c |
IBUS_ORIENTATION_SYSTEM = 2,
|
|
Packit Service |
1d8f1c |
} IBusOrientation;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusBusNameFlag:
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_NAME_FLAG_ALLOW_REPLACEMENT:
|
|
Packit Service |
1d8f1c |
* same as DBUS_NAME_FLAG_ALLOW_REPLACEMENT
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_NAME_FLAG_REPLACE_EXISTING:
|
|
Packit Service |
1d8f1c |
* same as DBUS_NAME_FLAG_REPLACE_EXISTING
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_NAME_FLAG_DO_NOT_QUEUE:
|
|
Packit Service |
1d8f1c |
* same as DBUS_NAME_FLAG_DO_NOT_QUEUE
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum {
|
|
Packit Service |
1d8f1c |
IBUS_BUS_NAME_FLAG_ALLOW_REPLACEMENT = (1 << 0),
|
|
Packit Service |
1d8f1c |
IBUS_BUS_NAME_FLAG_REPLACE_EXISTING = (1 << 1),
|
|
Packit Service |
1d8f1c |
IBUS_BUS_NAME_FLAG_DO_NOT_QUEUE = (1 << 2),
|
|
Packit Service |
1d8f1c |
} IBusBusNameFlag;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusBusRequestNameReply:
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_REQUEST_NAME_REPLY_PRIMARY_OWNER:
|
|
Packit Service |
1d8f1c |
* same as DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_REQUEST_NAME_REPLY_IN_QUEUE:
|
|
Packit Service |
1d8f1c |
* same as DBUS_REQUEST_NAME_REPLY_IN_QUEUE
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_REQUEST_NAME_REPLY_EXISTS:
|
|
Packit Service |
1d8f1c |
* same as DBUS_REQUEST_NAME_REPLY_EXISTS
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_REQUEST_NAME_REPLY_ALREADY_OWNER:
|
|
Packit Service |
1d8f1c |
* same as DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum {
|
|
Packit Service |
1d8f1c |
IBUS_BUS_REQUEST_NAME_REPLY_PRIMARY_OWNER = 1,
|
|
Packit Service |
1d8f1c |
IBUS_BUS_REQUEST_NAME_REPLY_IN_QUEUE = 2,
|
|
Packit Service |
1d8f1c |
IBUS_BUS_REQUEST_NAME_REPLY_EXISTS = 3,
|
|
Packit Service |
1d8f1c |
IBUS_BUS_REQUEST_NAME_REPLY_ALREADY_OWNER = 4,
|
|
Packit Service |
1d8f1c |
} IBusBusRequestNameReply;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusBusStartServiceByNameReply:
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_START_REPLY_SUCCESS:
|
|
Packit Service |
1d8f1c |
* same as DBUS_START_REPLY_SUCCESS
|
|
Packit Service |
1d8f1c |
* @IBUS_BUS_START_REPLY_ALREADY_RUNNING:
|
|
Packit Service |
1d8f1c |
* same as DBUS_START_REPLY_ALREADY_RUNNING
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum {
|
|
Packit Service |
1d8f1c |
IBUS_BUS_START_REPLY_SUCCESS = 1,
|
|
Packit Service |
1d8f1c |
IBUS_BUS_START_REPLY_ALREADY_RUNNING = 2,
|
|
Packit Service |
1d8f1c |
} IBusBusStartServiceByNameReply;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusError:
|
|
Packit Service |
1d8f1c |
* @IBUS_ERROR_NO_ENGINE:
|
|
Packit Service |
1d8f1c |
* There is no engine associated with input context.
|
|
Packit Service |
1d8f1c |
* @IBUS_ERROR_NO_CONFIG:
|
|
Packit Service |
1d8f1c |
* There is no config module running.
|
|
Packit Service |
1d8f1c |
* @IBUS_ERROR_FAILED:
|
|
Packit Service |
1d8f1c |
* General failure.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum {
|
|
Packit Service |
1d8f1c |
IBUS_ERROR_NO_ENGINE,
|
|
Packit Service |
1d8f1c |
IBUS_ERROR_NO_CONFIG,
|
|
Packit Service |
1d8f1c |
IBUS_ERROR_FAILED
|
|
Packit Service |
1d8f1c |
} IBusError;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusRectangle:
|
|
Packit Service |
1d8f1c |
* @x: x coordinate.
|
|
Packit Service |
1d8f1c |
* @y: y coordinate.
|
|
Packit Service |
1d8f1c |
* @width: width of the rectangle.
|
|
Packit Service |
1d8f1c |
* @height: height of the renctangl.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Rectangle definition.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef struct _IBusRectangle IBusRectangle;
|
|
Packit Service |
1d8f1c |
struct _IBusRectangle {
|
|
Packit Service |
1d8f1c |
gint x;
|
|
Packit Service |
1d8f1c |
gint y;
|
|
Packit Service |
1d8f1c |
gint width;
|
|
Packit Service |
1d8f1c |
gint height;
|
|
Packit Service |
1d8f1c |
};
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusFreeFunc:
|
|
Packit Service |
1d8f1c |
* @object: object to be freed.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Free function prototype.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef void (* IBusFreeFunc) (gpointer object);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusInputPurpose:
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_FREE_FORM: Allow any character
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_ALPHA: Allow only alphabetic characters
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_DIGITS: Allow only digits
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_NUMBER: Edited field expects numbers
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_PHONE: Edited field expects phone number
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_URL: Edited field expects URL
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_EMAIL: Edited field expects email address
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_NAME: Edited field expects the name of a person
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_PASSWORD: Like @IBUS_INPUT_PURPOSE_FREE_FORM,
|
|
Packit Service |
1d8f1c |
* but characters are hidden
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_PURPOSE_PIN: Like @IBUS_INPUT_PURPOSE_DIGITS, but
|
|
Packit Service |
1d8f1c |
* characters are hidden
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Describes primary purpose of the input context. This information
|
|
Packit Service |
1d8f1c |
* is particularly useful to implement intelligent behavior in
|
|
Packit Service |
1d8f1c |
* engines, such as automatic input-mode switch and text prediction.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* This enumeration may be extended in the future; engines should
|
|
Packit Service |
1d8f1c |
* interpret unknown values as 'free form'.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum
|
|
Packit Service |
1d8f1c |
{
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_FREE_FORM,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_ALPHA,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_DIGITS,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_NUMBER,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_PHONE,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_URL,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_EMAIL,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_NAME,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_PASSWORD,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_PURPOSE_PIN
|
|
Packit Service |
1d8f1c |
} IBusInputPurpose;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusInputHints:
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_NONE: No special behaviour suggested
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_SPELLCHECK: Suggest checking for typos
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_NO_SPELLCHECK: Suggest not checking for typos
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_WORD_COMPLETION: Suggest word completion
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_LOWERCASE: Suggest to convert all text to lowercase
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_UPPERCASE_CHARS: Suggest to capitalize all text
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_UPPERCASE_WORDS: Suggest to capitalize the first
|
|
Packit Service |
1d8f1c |
* character of each word
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_UPPERCASE_SENTENCES: Suggest to capitalize the
|
|
Packit Service |
1d8f1c |
* first word of each sentence
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_INHIBIT_OSK: Suggest to not show an onscreen keyboard
|
|
Packit Service |
1d8f1c |
* (e.g for a calculator that already has all the keys).
|
|
Packit Service |
1d8f1c |
* @IBUS_INPUT_HINT_VERTICAL_WRITING: The text is vertical.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Describes hints that might be taken into account by engines. Note
|
|
Packit Service |
1d8f1c |
* that engines may already tailor their behaviour according to the
|
|
Packit Service |
1d8f1c |
* #IBusInputPurpose of the entry.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
typedef enum
|
|
Packit Service |
1d8f1c |
{
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_NONE = 0,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_SPELLCHECK = 1 << 0,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_NO_SPELLCHECK = 1 << 1,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_WORD_COMPLETION = 1 << 2,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_LOWERCASE = 1 << 3,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_UPPERCASE_CHARS = 1 << 4,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_UPPERCASE_WORDS = 1 << 5,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_UPPERCASE_SENTENCES = 1 << 6,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_INHIBIT_OSK = 1 << 7,
|
|
Packit Service |
1d8f1c |
IBUS_INPUT_HINT_VERTICAL_WRITING = 1 << 8
|
|
Packit Service |
1d8f1c |
} IBusInputHints;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
#endif
|
|
Packit Service |
1d8f1c |
|