classicube_helpers\events/
tab_list.rs1use std::os::raw::c_int;
2
3use crate::make_event_handler;
4
5make_event_handler!(
6 TabList,
8 Added,
9 Int,
10 (
11 {
12 name: id,
13 rust_type: u8,
14 c_type: c_int,
15 to_rust: |id| u8::try_from(id).unwrap(),
16 },
17 )
18);
19
20make_event_handler!(
21 TabList,
23 Changed,
24 Int,
25 (
26 {
27 name: id,
28 rust_type: u8,
29 c_type: c_int,
30 to_rust: |id| u8::try_from(id).unwrap(),
31 },
32 )
33);
34
35make_event_handler!(
36 TabList,
38 Removed,
39 Int,
40 (
41 {
42 name: id,
43 rust_type: u8,
44 c_type: c_int,
45 to_rust: |id| u8::try_from(id).unwrap(),
46 },
47 )
48);