~ubuntu-branches/ubuntu/trusty/fcitx/trusty-proposed

« back to all changes in this revision

Viewing changes to src/lib/fcitx/hook.h

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-02-10 17:03:56 UTC
  • mfrom: (1.3.18) (33.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130210170356-2yuv6xy3ed378kn0
Tags: 1:4.2.7-1
* New upstream release.
* New binary packages:
  - fcitx-libs-gclient: D-Bus client library for Glib
  - fcitx-libs-qt: D-Bus client library for Qt
  - fcitx-module-quickphrase-editor: Quick Phrase editor module

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    typedef void (*FcitxIMEventHookFunc)(void* arg);
59
59
 
60
60
    /**
 
61
     * ic event hook function
 
62
     **/
 
63
    typedef void (*FcitxICEventHookFunc)(void* arg, struct _FcitxInputContext* ic);
 
64
 
 
65
    /**
61
66
     * Hotkey process struct
62
67
     **/
63
68
    typedef struct _FcitxHotkeyHook {
114
119
    } FcitxIMEventHook;
115
120
 
116
121
    /**
 
122
     * IC Event hook
 
123
     **/
 
124
    typedef struct _FcitxICEventHook {
 
125
        FcitxICEventHookFunc func; /**< callback function */
 
126
        void *arg; /**< argument for callback */
 
127
    } FcitxICEventHook;
 
128
    /**
117
129
     * register pre input filter
118
130
     *
119
131
     * @param instance fcitx instance
185
197
     * @return void
186
198
     **/
187
199
    void FcitxInstanceRegisterInputUnFocusHook(struct _FcitxInstance* instance, FcitxIMEventHook hook);
 
200
    /**
 
201
     * register im changed hook
 
202
     *
 
203
     * @param instance fcitx instance
 
204
     * @param hook new hook
 
205
     * @return void
 
206
     **/
 
207
    void FcitxInstanceRegisterIMChangedHook(struct _FcitxInstance* instance, FcitxIMEventHook hook);
188
208
 
189
209
    /**
190
210
     * register update candidate word hook
221
241
     * @return char*
222
242
     **/
223
243
    char* FcitxInstanceProcessCommitFilter(struct _FcitxInstance* instance, const char *in);
224
 
    
 
244
 
225
245
    /**
226
246
     * register ouput string filter
227
247
     *
228
248
     * @param instance fcitx instance
229
249
     * @param hook new hook
230
250
     * @return void
231
 
     * 
 
251
     *
232
252
     * @since 4.2.0
233
253
     **/
234
254
    void FcitxInstanceRegisterCommitFilter(struct _FcitxInstance* instance, FcitxStringFilterHook hook);
235
255
 
 
256
    /**
 
257
     * register a hook for watching when ic status changed
 
258
     *
 
259
     * @param instance fcitx instance
 
260
     * @param hook new hook
 
261
     * @return void
 
262
     *
 
263
     * @since 4.2.6
 
264
     **/
 
265
    void FcitxInstanceRegisterICStateChangedHook(struct _FcitxInstance* instance, FcitxICEventHook hook);
236
266
 
237
267
#ifdef __cplusplus
238
268
}