30 ButtonEvent(
ButtonHandle button, ButtonEvent::Type type,
double time) :
44 ButtonEvent(
int keycode,
double time) :
58 ButtonEvent(
const std::wstring &candidate_string,
size_t highlight_start,
59 size_t highlight_end,
size_t cursor_pos) :
62 _candidate_string(candidate_string),
63 _highlight_start(highlight_start),
64 _highlight_end(highlight_end),
65 _cursor_pos(cursor_pos),
67 _time(
ClockObject::get_global_clock()->get_frame_time())
76 _button(copy._button),
77 _keycode(copy._keycode),
78 _candidate_string(copy._candidate_string),
79 _highlight_start(copy._highlight_start),
80 _highlight_end(copy._highlight_end),
81 _cursor_pos(copy._cursor_pos),
90 INLINE
void ButtonEvent::
92 _button = copy._button;
93 _keycode = copy._keycode;
94 _candidate_string = copy._candidate_string;
95 _highlight_start = copy._highlight_start;
96 _highlight_end = copy._highlight_end;
97 _cursor_pos = copy._cursor_pos;
107 return (_button == other._button &&
108 _keycode == other._keycode &&
109 _type == other._type);
115 INLINE
bool ButtonEvent::
123 INLINE
bool ButtonEvent::
125 if (_button != other._button) {
126 return _button < other._button;
128 if (_keycode != other._keycode) {
129 return _keycode < other._keycode;
132 return _type < other._type;
A ClockObject keeps track of elapsed real time and discrete time.