1#include "choice_event.h"
10 case CET_GRAB_FOCUS:
return "grab_focus";
11 case CET_LOOSE_FOCUS:
return "loose_focus";
12 case CET_SELECTED:
return "selected";
13 case CET_UNSELECTED:
return "unselected";
14 default:
return "unknown";
33 std::cerr <<
"choice_event::stream_in not implemented yet" << std::endl;
ChoiceEventType get_type() const
return whether type of choice event
ChoiceEventType type
store type of choice event
void stream_out(std::ostream &os) const
write to stream
void set_type(ChoiceEventType _type)
set the type of the choice event
void stream_in(std::istream &is)
read from stream
choice_event(ChoiceEventType _type, unsigned char _modifiers=0, unsigned char _toggle_keys=0, double _time=0)
construct a choice
virtual void stream_out(std::ostream &os) const
write to stream
ChoiceEventType
different choice event types
@ EID_CHOICE
id for focus or selection change events
std::string get_choice_type_string(ChoiceEventType type)
convert a choice event type into a readable string