SCIMBridge
0.4.x
Main Page
Classes
Files
File List
File Members
client-common
scim-bridge-client-imcontext.h
Go to the documentation of this file.
1
/*
2
* SCIM Bridge
3
*
4
* Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
5
*
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation and
10
* appearing in the file LICENSE.LGPL included in the package of this file.
11
* You can also redistribute it and/or modify it under the terms of
12
* the GNU General Public License as published by the Free Software Foundation and
13
* appearing in the file LICENSE.GPL included in the package of this file.
14
*
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
*/
19
26
#ifndef SCIMBRIDGECLIENTIMCONTEXT_H_
27
#define SCIMBRIDGECLIENTIMCONTEXT_H_
28
29
#include "
scim-bridge.h
"
30
#include "
scim-bridge-attribute.h
"
31
#include "
scim-bridge-imcontext.h
"
32
#include "
scim-bridge-key-event.h
"
33
37
typedef
struct
_ScimBridgeClientIMContext
ScimBridgeClientIMContext
;
38
39
#ifdef __cplusplus
40
extern
"C"
41
{
42
#endif
43
50
void
scim_bridge_client_imcontext_set_id
(
ScimBridgeClientIMContext
*imcontext,
scim_bridge_imcontext_id_t
new_id);
51
59
scim_bridge_imcontext_id_t
scim_bridge_client_imcontext_get_id
(
const
ScimBridgeClientIMContext
*imcontext);
60
67
void
scim_bridge_client_imcontext_set_preedit_string
(
ScimBridgeClientIMContext
*imcontext,
const
char
*preedit_string);
68
75
void
scim_bridge_client_imcontext_set_preedit_shown
(
ScimBridgeClientIMContext
*imcontext,
boolean
preedit_shown);
76
83
void
scim_bridge_client_imcontext_set_preedit_cursor_position
(
ScimBridgeClientIMContext
*imcontext,
int
cursor_position);
84
92
void
scim_bridge_client_imcontext_set_preedit_attributes
(
ScimBridgeClientIMContext
*imcontext,
ScimBridgeAttribute
**
const
preedit_attributes,
int
attribute_count);
93
99
void
scim_bridge_client_imcontext_update_preedit
(
ScimBridgeClientIMContext
*imcontext);
100
107
void
scim_bridge_client_imcontext_set_commit_string
(
ScimBridgeClientIMContext
*imcontext,
const
char
*commit_string);
108
114
void
scim_bridge_client_imcontext_commit
(
ScimBridgeClientIMContext
*imcontext);
115
121
void
scim_bridge_client_imcontext_beep
(
ScimBridgeClientIMContext
*imcontext);
122
129
void
scim_bridge_client_imcontext_forward_key_event
(
ScimBridgeClientIMContext
*imcontext,
const
ScimBridgeKeyEvent
*key_event);
130
141
boolean
scim_bridge_client_imcontext_get_surrounding_text
(
ScimBridgeClientIMContext
*imcontext,
int
before_max,
int
after_max,
char
**
string
,
int
*cursor_position);
142
151
boolean
scim_bridge_client_imcontext_delete_surrounding_text
(
ScimBridgeClientIMContext
*imcontext,
int
offset,
int
length);
152
161
boolean
scim_bridge_client_imcontext_replace_surrounding_text
(
ScimBridgeClientIMContext
*imcontext,
int
cursor_position,
const
char
*
string
);
162
169
void
scim_bridge_client_imcontext_imengine_status_changed
(
ScimBridgeClientIMContext
*imcontext,
boolean
enabled);
170
171
#ifdef __cplusplus
172
}
173
#endif
174
#endif
/*SCIMBRIDGECLIENTIMCONTEXT_H_*/
Generated by
1.8.2