From cac4f26d0fa03fd133e5d247a9989cd19e847c11 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 8 Jul 2014 13:46:15 +0800 Subject: add function zhuyin_get_zhuyin_key_rest_offset --- src/zhuyin.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/zhuyin.h') diff --git a/src/zhuyin.h b/src/zhuyin.h index 398b8d0..24128eb 100644 --- a/src/zhuyin.h +++ b/src/zhuyin.h @@ -619,13 +619,27 @@ bool zhuyin_get_zhuyin_key_rest_positions(zhuyin_instance_t * instance, * @length: the length of the corresponding pinyin key. * @returns: whether the get operation is successful. * - * Get the length of the corresponding pinyin key. + * Get the length of the corresponding zhuyin key. * */ bool zhuyin_get_zhuyin_key_rest_length(zhuyin_instance_t * instance, ChewingKeyRest * key_rest, guint16 * length); +/** + * zhuyin_get_zhuyin_key_rest_offset: + * @instance: the zhuyin instance. + * @cursor: the cursor. + * @offset: the offset in the zhuyin array. + * @returns: whether the get operation is successful. + * + * Get the offset in the zhuyin key array. + * + */ +bool zhuyin_get_zhuyin_key_rest_offset(zhuyin_instance_t * instance, + guint16 cursor, + guint16 * offset); + /** * zhuyin_get_raw_full_pinyin: * @instance: the zhuyin instance. -- cgit