Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
script_event_dispatch.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5namespace pulp::view {
6class View;
7}
8
10
11using GlobalKeyDispatcher = void (*)(int key_code, uint16_t modifiers, bool is_down);
12using RootKeyDispatcher = bool (*)(View& root, int key_code,
13 uint16_t modifiers, bool is_down);
14
16void dispatch_global_key(int key_code, uint16_t modifiers, bool is_down);
18bool dispatch_key_for_root(View& root, int key_code,
19 uint16_t modifiers, bool is_down);
20
21} // namespace pulp::view::script_events
Definition view.hpp:73
Definition script_event_dispatch.hpp:9
void(*)(int key_code, uint16_t modifiers, bool is_down) GlobalKeyDispatcher
Definition script_event_dispatch.hpp:11
bool(*)(View &root, int key_code, uint16_t modifiers, bool is_down) RootKeyDispatcher
Definition script_event_dispatch.hpp:12
void dispatch_global_key(int key_code, uint16_t modifiers, bool is_down)
void set_global_key_dispatcher(GlobalKeyDispatcher dispatcher) noexcept
bool dispatch_key_for_root(View &root, int key_code, uint16_t modifiers, bool is_down)
void set_root_key_dispatcher(RootKeyDispatcher dispatcher) noexcept
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27