This repository was archived by the owner on Mar 4, 2024. It is now read-only.
File tree 5 files changed +45
-42
lines changed 5 files changed +45
-42
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ trust_return_value_nullability = true
12
12
13
13
generate = [
14
14
" GObject.BindingFlags" ,
15
- " GObject.ParamFlags" ,
16
15
" GObject.SignalFlags" ,
17
16
]
18
17
@@ -22,6 +21,7 @@ ignore = [
22
21
manual = [
23
22
" GObject.Object" ,
24
23
" GObject.Value" ,
24
+ " GObject.ParamFlags" ,
25
25
]
26
26
27
27
[[object ]]
Original file line number Diff line number Diff line change @@ -68,45 +68,6 @@ impl SetValue for BindingFlags {
68
68
}
69
69
}
70
70
71
- bitflags ! {
72
- pub struct ParamFlags : u32 {
73
- const READABLE = 1 ;
74
- const WRITABLE = 2 ;
75
- const READWRITE = 3 ;
76
- const CONSTRUCT = 4 ;
77
- const CONSTRUCT_ONLY = 8 ;
78
- const LAX_VALIDATION = 16 ;
79
- const STATIC_NAME = 32 ;
80
- const PRIVATE = 32 ;
81
- const STATIC_NICK = 64 ;
82
- const STATIC_BLURB = 128 ;
83
- const EXPLICIT_NOTIFY = 1073741824 ;
84
- const DEPRECATED = 2147483648 ;
85
- }
86
- }
87
-
88
- impl fmt:: Display for ParamFlags {
89
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
90
- <Self as fmt:: Debug >:: fmt ( self , f)
91
- }
92
- }
93
-
94
- #[ doc( hidden) ]
95
- impl ToGlib for ParamFlags {
96
- type GlibType = gobject_ffi:: GParamFlags ;
97
-
98
- fn to_glib ( & self ) -> gobject_ffi:: GParamFlags {
99
- self . bits ( )
100
- }
101
- }
102
-
103
- #[ doc( hidden) ]
104
- impl FromGlib < gobject_ffi:: GParamFlags > for ParamFlags {
105
- unsafe fn from_glib ( value : gobject_ffi:: GParamFlags ) -> ParamFlags {
106
- ParamFlags :: from_bits_truncate ( value)
107
- }
108
- }
109
-
110
71
bitflags ! {
111
72
pub struct SignalFlags : u32 {
112
73
const RUN_FIRST = 1 ;
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ pub use self::binding::Binding;
7
7
8
8
mod flags;
9
9
pub use self :: flags:: BindingFlags ;
10
- pub use self :: flags:: ParamFlags ;
11
10
pub use self :: flags:: SignalFlags ;
12
11
13
12
#[ doc( hidden) ]
Original file line number Diff line number Diff line change
1
+ // Take a look at the license at the top of the repository in the LICENSE file.
2
+
3
+ use crate :: translate:: * ;
4
+
5
+ bitflags:: bitflags! {
6
+ pub struct ParamFlags : u32 {
7
+ const READABLE = 1 ;
8
+ const WRITABLE = 2 ;
9
+ const READWRITE = 3 ;
10
+ const CONSTRUCT = 4 ;
11
+ const CONSTRUCT_ONLY = 8 ;
12
+ const LAX_VALIDATION = 16 ;
13
+ const USER_0 = 128 ;
14
+ const USER_1 = 256 ;
15
+ const USER_2 = 1024 ;
16
+ const USER_3 = 2048 ;
17
+ const USER_4 = 4096 ;
18
+ const USER_5 = 8192 ;
19
+ const USER_6 = 16384 ;
20
+ const USER_7 = 32768 ;
21
+ const USER_8 = 65536 ;
22
+ const EXPLICIT_NOTIFY = 1073741824 ;
23
+ const DEPRECATED = 2147483648 ;
24
+ }
25
+ }
26
+
27
+ #[ doc( hidden) ]
28
+ impl ToGlib for ParamFlags {
29
+ type GlibType = gobject_ffi:: GParamFlags ;
30
+
31
+ fn to_glib ( & self ) -> gobject_ffi:: GParamFlags {
32
+ self . bits ( )
33
+ }
34
+ }
35
+
36
+ #[ doc( hidden) ]
37
+ impl FromGlib < gobject_ffi:: GParamFlags > for ParamFlags {
38
+ unsafe fn from_glib ( value : gobject_ffi:: GParamFlags ) -> ParamFlags {
39
+ ParamFlags :: from_bits_truncate ( value)
40
+ }
41
+ }
Original file line number Diff line number Diff line change 2
2
3
3
//! GObject bindings
4
4
5
- pub mod auto;
5
+ mod auto;
6
6
mod binding;
7
+ mod flags;
7
8
8
9
pub use self :: auto:: * ;
10
+ pub use self :: flags:: * ;
9
11
//pub use self::auto::functions::*;
You can’t perform that action at this time.
0 commit comments