15 #ifndef MOUSEWATCHERPARAMETER_H 16 #define MOUSEWATCHERPARAMETER_H 18 #include "pandabase.h" 20 #include "buttonHandle.h" 21 #include "modifierButtons.h" 22 #include "textEncoder.h" 34 INLINE MouseWatcherParameter(
const MouseWatcherParameter &other);
35 INLINE
void operator = (
const MouseWatcherParameter &other);
36 INLINE ~MouseWatcherParameter();
39 INLINE
void set_keyrepeat(
bool flag);
40 INLINE
void set_keycode(
int keycode);
41 INLINE
void set_candidate(
const wstring &candidate_string,
42 size_t highlight_start,
46 INLINE
void set_mouse(
const LPoint2 &mouse);
47 INLINE
void set_outside(
bool flag);
50 INLINE
bool has_button()
const;
52 INLINE
bool is_keyrepeat()
const;
54 INLINE
bool has_keycode()
const;
55 INLINE
int get_keycode()
const;
57 INLINE
bool has_candidate()
const;
60 INLINE
const wstring &get_candidate_string()
const;
63 INLINE
string get_candidate_string_encoded()
const;
64 INLINE
string get_candidate_string_encoded(TextEncoder::Encoding encoding)
const;
65 INLINE
size_t get_highlight_start()
const;
66 INLINE
size_t get_highlight_end()
const;
67 INLINE
size_t get_cursor_pos()
const;
71 INLINE
bool has_mouse()
const;
72 INLINE
const LPoint2 &get_mouse()
const;
74 INLINE
bool is_outside()
const;
76 void output(ostream &out)
const;
81 wstring _candidate_string;
82 size_t _highlight_start;
83 size_t _highlight_end;
92 F_has_keycode = 0x008,
93 F_has_candidate = 0x010,
94 F_is_keyrepeat = 0x020,
101 #include "mouseWatcherParameter.I"
This is a two-component point in space.
This is sent along as a parameter to most events generated for a region to indicate the mouse and but...