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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#![cfg_attr(feature = "ritual_rustdoc_nightly", feature(doc_cfg))]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(transparent)]
pub struct DrawingHint(::std::os::raw::c_int);
impl From<::std::os::raw::c_int> for DrawingHint {
fn from(value: ::std::os::raw::c_int) -> Self {
DrawingHint(value)
}
}
impl From<DrawingHint> for ::std::os::raw::c_int {
fn from(value: DrawingHint) -> Self {
value.0
}
}
impl DrawingHint {
pub fn to_int(&self) -> ::std::os::raw::c_int {
self.0
}
}
impl DrawingHint {
#[allow(non_upper_case_globals)]
pub const OpaqueTopLeft: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(1);
#[allow(non_upper_case_globals)]
pub const OpaqueTop: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(2);
#[allow(non_upper_case_globals)]
pub const OpaqueTopRight: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(4);
#[allow(non_upper_case_globals)]
pub const OpaqueLeft: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(8);
#[allow(non_upper_case_globals)]
pub const OpaqueCenter: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(16);
#[allow(non_upper_case_globals)]
pub const OpaqueRight: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(32);
#[allow(non_upper_case_globals)]
pub const OpaqueBottomLeft: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(64);
#[allow(non_upper_case_globals)]
pub const OpaqueBottom: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(128);
#[allow(non_upper_case_globals)]
pub const OpaqueBottomRight: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(256);
#[allow(non_upper_case_globals)]
pub const OpaqueCorners: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(325);
#[allow(non_upper_case_globals)]
pub const OpaqueEdges: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(170);
#[allow(non_upper_case_globals)]
pub const OpaqueFrame: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(495);
#[allow(non_upper_case_globals)]
pub const OpaqueAll: crate::q_draw_border_pixmap::DrawingHint =
crate::q_draw_border_pixmap::DrawingHint(511);
}
impl From<crate::q_draw_border_pixmap::DrawingHint>
for ::qt_core::QFlags<crate::q_draw_border_pixmap::DrawingHint>
{
fn from(value: crate::q_draw_border_pixmap::DrawingHint) -> Self {
Self::from(value.to_int())
}
}
impl<T: Into<::qt_core::QFlags<crate::q_draw_border_pixmap::DrawingHint>>> std::ops::BitOr<T>
for crate::q_draw_border_pixmap::DrawingHint
{
type Output = ::qt_core::QFlags<crate::q_draw_border_pixmap::DrawingHint>;
fn bitor(self, rhs: T) -> ::qt_core::QFlags<crate::q_draw_border_pixmap::DrawingHint> {
Into::<::qt_core::QFlags<crate::q_draw_border_pixmap::DrawingHint>>::into(self) | rhs
}
}