17 void visual_event_queue_add (
VisEventQueue *
self, VisEvent *event)
19 visual_return_if_fail (
self !=
nullptr);
25 int visual_event_queue_poll (
VisEventQueue *
self, VisEvent *event)
27 visual_return_val_if_fail (
self !=
nullptr, FALSE);
28 visual_return_val_if_fail (
self !=
nullptr, FALSE);
30 return self->poll (*event);
35 auto event =
new LV::Event;
42 event->event.keyboard.keysym.sym = keysym;
43 event->event.keyboard.keysym.mod = keymod;
50 auto event =
new LV::Event;
55 event->event.mousemotion.x = dx;
56 event->event.mousemotion.y = dy;
63 auto event =
new LV::Event;
70 event->event.mousebutton.button = button;
71 event->event.mousebutton.state = state;
73 event->event.mousebutton.x = x;
74 event->event.mousebutton.y = y;
81 auto event =
new LV::Event;
85 event->event.resize.width = width;
86 event->event.resize.height = height;
93 auto event =
new LV::Event;
98 event->event.newsong.songinfo = songinfo;
105 auto event =
new LV::Event;
110 event->event.param.param = param;
117 auto event =
new LV::Event;
126 auto event =
new LV::Event;
129 event->event.visibility.is_visible = is_visible;
136 auto event =
new LV::Event;
140 event->event.custom.event_id = eid;
141 event->event.custom.data_int = param_int;
142 event->event.custom.data_ptr = param_ptr;
149 visual_return_if_fail (dest !=
nullptr);
150 visual_return_if_fail (src !=
nullptr);