@@ -68,57 +68,64 @@ impl Stroke {
68
68
}
69
69
70
70
#[ doc( alias = "gsk_stroke_set_dash" ) ]
71
- pub fn set_dash ( & mut self , dash : & [ f32 ] ) {
71
+ pub fn set_dash ( & self , dash : & [ f32 ] ) {
72
72
let n_dash = dash. len ( ) as _ ;
73
73
unsafe {
74
- ffi:: gsk_stroke_set_dash ( self . to_glib_none_mut ( ) . 0 , dash. to_glib_none ( ) . 0 , n_dash) ;
74
+ ffi:: gsk_stroke_set_dash (
75
+ mut_override ( self . to_glib_none ( ) . 0 ) ,
76
+ dash. to_glib_none ( ) . 0 ,
77
+ n_dash,
78
+ ) ;
75
79
}
76
80
}
77
81
78
82
#[ doc( alias = "gsk_stroke_set_dash_offset" ) ]
79
- pub fn set_dash_offset ( & mut self , offset : f32 ) {
83
+ pub fn set_dash_offset ( & self , offset : f32 ) {
80
84
unsafe {
81
- ffi:: gsk_stroke_set_dash_offset ( self . to_glib_none_mut ( ) . 0 , offset) ;
85
+ ffi:: gsk_stroke_set_dash_offset ( mut_override ( self . to_glib_none ( ) . 0 ) , offset) ;
82
86
}
83
87
}
84
88
85
89
#[ doc( alias = "gsk_stroke_set_line_cap" ) ]
86
- pub fn set_line_cap ( & mut self , line_cap : LineCap ) {
90
+ pub fn set_line_cap ( & self , line_cap : LineCap ) {
87
91
unsafe {
88
- ffi:: gsk_stroke_set_line_cap ( self . to_glib_none_mut ( ) . 0 , line_cap. into_glib ( ) ) ;
92
+ ffi:: gsk_stroke_set_line_cap ( mut_override ( self . to_glib_none ( ) . 0 ) , line_cap. into_glib ( ) ) ;
89
93
}
90
94
}
91
95
92
96
#[ doc( alias = "gsk_stroke_set_line_join" ) ]
93
- pub fn set_line_join ( & mut self , line_join : LineJoin ) {
97
+ pub fn set_line_join ( & self , line_join : LineJoin ) {
94
98
unsafe {
95
- ffi:: gsk_stroke_set_line_join ( self . to_glib_none_mut ( ) . 0 , line_join. into_glib ( ) ) ;
99
+ ffi:: gsk_stroke_set_line_join (
100
+ mut_override ( self . to_glib_none ( ) . 0 ) ,
101
+ line_join. into_glib ( ) ,
102
+ ) ;
96
103
}
97
104
}
98
105
99
106
#[ doc( alias = "gsk_stroke_set_line_width" ) ]
100
- pub fn set_line_width ( & mut self , line_width : f32 ) {
107
+ pub fn set_line_width ( & self , line_width : f32 ) {
101
108
unsafe {
102
- ffi:: gsk_stroke_set_line_width ( self . to_glib_none_mut ( ) . 0 , line_width) ;
109
+ ffi:: gsk_stroke_set_line_width ( mut_override ( self . to_glib_none ( ) . 0 ) , line_width) ;
103
110
}
104
111
}
105
112
106
113
#[ doc( alias = "gsk_stroke_set_miter_limit" ) ]
107
- pub fn set_miter_limit ( & mut self , limit : f32 ) {
114
+ pub fn set_miter_limit ( & self , limit : f32 ) {
108
115
unsafe {
109
- ffi:: gsk_stroke_set_miter_limit ( self . to_glib_none_mut ( ) . 0 , limit) ;
116
+ ffi:: gsk_stroke_set_miter_limit ( mut_override ( self . to_glib_none ( ) . 0 ) , limit) ;
110
117
}
111
118
}
112
119
113
120
#[ doc( alias = "gsk_stroke_to_cairo" ) ]
114
- pub fn to_cairo ( & self , cr : & mut cairo:: Context ) {
121
+ pub fn to_cairo ( & self , cr : & cairo:: Context ) {
115
122
unsafe {
116
- ffi:: gsk_stroke_to_cairo ( self . to_glib_none ( ) . 0 , cr. to_glib_none_mut ( ) . 0 ) ;
123
+ ffi:: gsk_stroke_to_cairo ( self . to_glib_none ( ) . 0 , mut_override ( cr. to_glib_none ( ) . 0 ) ) ;
117
124
}
118
125
}
119
126
120
127
#[ doc( alias = "gsk_stroke_equal" ) ]
121
- fn equal ( & self , stroke2 : Option < & Stroke > ) -> bool {
128
+ fn equal ( & self , stroke2 : & Stroke ) -> bool {
122
129
assert_initialized_main_thread ! ( ) ;
123
130
unsafe {
124
131
from_glib ( ffi:: gsk_stroke_equal (
0 commit comments