40
39
NUX_DECLARE_OBJECT_TYPE(IMTextEntry, nux::TextEntry);
45
nux::Property<std::string> preedit_string;
46
nux::Property<bool> im_enabled;
47
nux::Property<bool> im_active;
50
void CheckIMEnabled();
54
44
bool InspectKeyEvent(unsigned int eventType, unsigned int keysym, const char* character);
55
bool TryHandleEvent(unsigned int eventType, unsigned int keysym, const char* character);
56
void KeyEventToGdkEventKey(Event& event, GdkEventKey& gdk_event);
57
inline void CheckValidClientWindow(Window window);
58
45
bool TryHandleSpecial(unsigned int eventType, unsigned int keysym, const char* character);
46
void InsertText(std::string const& text);
63
void OnCommit(GtkIMContext* context, char* str);
64
void OnPreeditChanged(GtkIMContext* context);
65
void OnPreeditStart(GtkIMContext* context);
66
void OnPreeditEnd(GtkIMContext* context);
70
void UpdateCursorLocation();
49
void Paste(bool primary = false);
72
51
void OnMouseButtonUp(int x, int y, unsigned long bflags, unsigned long kflags);
75
glib::SignalManager sig_manager_;
76
GtkIMContext* im_context_;
77
GdkWindow* client_window_;