1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use cpp_core::Ref;
use qt_core::{QPtr, QString};
pub trait ButtonExt {
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_clicked<F: FnMut(&Self, bool) + 'static>(&self, cb: F);
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_pressed<F: FnMut(&Self) + 'static>(&self, cb: F);
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_toggled<F: FnMut(&Self, bool) + 'static>(&self, cb: F);
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_released<F: FnMut(&Self) + 'static>(&self, cb: F);
}
pub trait InputExt {
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_text_changed<F: FnMut(&Self, Ref<QString>) + 'static>(&self, cb: F);
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_return_pressed<F: FnMut(&Self) + 'static>(&self, cb: F);
}
pub trait TextExt {
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_redo_available<F: FnMut(&Self, bool) + 'static>(&self, cb: F);
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_selection_changed<F: FnMut(&Self) + 'static>(&self, cb: F);
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_text_changed<F: FnMut(&Self) + 'static>(&self, cb: F);
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_undo_available<F: FnMut(&Self, bool) + 'static>(&self, cb: F);
}
pub trait MenuExt {
/// # Safety
/// The QObjects referenced by self and receiver must be alive.
unsafe fn connect_triggered<F: FnMut(&Self, QPtr<qt_widgets::QAction>) + 'static>(&self, cb: F);
}