1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
/*
* SPDX-FileCopyrightText: 2021~2021 CSSlayer <wengxt@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
#ifndef _GTK4_FCITXIMCONTEXTPRIVATE_H_
#define _GTK4_FCITXIMCONTEXTPRIVATE_H_
#include "fcitximcontext.h"
#include "gtk4inputwindow.h"
struct _FcitxIMContext {
GtkIMContext parent;
GtkWidget *client_widget;
bool has_rect;
GdkRectangle area;
FcitxGClient *client;
GtkIMContext *slave;
int has_focus;
guint32 time;
guint32 last_key_code;
bool last_is_release;
gboolean use_preedit;
gboolean support_surrounding_text;
gboolean is_inpreedit;
gboolean is_wayland;
char *preedit_string;
char *commit_preedit_string;
char *surrounding_text;
int cursor_pos;
guint64 capability_from_toolkit;
guint64 last_updated_capability;
PangoAttrList *attrlist;
int last_cursor_pos;
int last_anchor_pos;
struct xkb_compose_state *xkbComposeState;
GHashTable *pending_events;
GHashTable *handled_events;
GQueue *handled_events_list;
gboolean ignore_reset;
fcitx::gtk::Gtk4InputWindow *candidate_window;
};
struct _FcitxIMContextClass {
GtkIMContextClass parent;
/* klass members */
};
#endif // _GTK4_FCITXIMCONTEXTPRIVATE_H_
|