36 INLINE
void set_keyrepeat(
bool flag);
37 INLINE
void set_keycode(
int keycode);
38 INLINE
void set_candidate(
const std::wstring &candidate_string,
39 size_t highlight_start,
43 INLINE
void set_mouse(
const LPoint2 &mouse);
44 INLINE
void set_outside(
bool flag);
47 INLINE
bool has_button()
const;
49 INLINE
bool is_keyrepeat()
const;
51 INLINE
bool has_keycode()
const;
52 INLINE
int get_keycode()
const;
54 INLINE
bool has_candidate()
const;
57 INLINE
const std::wstring &get_candidate_string()
const;
60 INLINE std::string get_candidate_string_encoded()
const;
61 INLINE std::string get_candidate_string_encoded(TextEncoder::Encoding encoding)
const;
62 INLINE
size_t get_highlight_start()
const;
63 INLINE
size_t get_highlight_end()
const;
64 INLINE
size_t get_cursor_pos()
const;
68 INLINE
bool has_mouse()
const;
69 INLINE
const LPoint2 &get_mouse()
const;
71 INLINE
bool is_outside()
const;
73 void output(std::ostream &out)
const;
78 std::wstring _candidate_string;
79 size_t _highlight_start;
80 size_t _highlight_end;
89 F_has_keycode = 0x008,
90 F_has_candidate = 0x010,
91 F_is_keyrepeat = 0x020,
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.