@@ -33,8 +33,8 @@ extern_methods!(
33
33
#[ method( lineFragmentRectForProposedRect: remainingRect: ) ]
34
34
pub unsafe fn lineFragmentRectForProposedRect_remainingRect(
35
35
& self ,
36
- proposedRect : NSRect ,
37
- remainingRect : NSRectPointer ,
36
+ proposed_rect : NSRect ,
37
+ remaining_rect : NSRectPointer ,
38
38
) -> NSRect ;
39
39
}
40
40
) ;
@@ -47,58 +47,58 @@ extern_methods!(
47
47
pub unsafe fn usesFontLeading( & self ) -> bool ;
48
48
49
49
#[ method( setUsesFontLeading: ) ]
50
- pub unsafe fn setUsesFontLeading( & self , usesFontLeading : bool ) ;
50
+ pub unsafe fn setUsesFontLeading( & self , uses_font_leading : bool ) ;
51
51
52
52
#[ method( typesetterBehavior) ]
53
53
pub unsafe fn typesetterBehavior( & self ) -> NSTypesetterBehavior ;
54
54
55
55
#[ method( setTypesetterBehavior: ) ]
56
- pub unsafe fn setTypesetterBehavior( & self , typesetterBehavior : NSTypesetterBehavior ) ;
56
+ pub unsafe fn setTypesetterBehavior( & self , typesetter_behavior : NSTypesetterBehavior ) ;
57
57
58
58
#[ method( hyphenationFactor) ]
59
59
pub unsafe fn hyphenationFactor( & self ) -> c_float;
60
60
61
61
#[ method( setHyphenationFactor: ) ]
62
- pub unsafe fn setHyphenationFactor( & self , hyphenationFactor : c_float) ;
62
+ pub unsafe fn setHyphenationFactor( & self , hyphenation_factor : c_float) ;
63
63
64
64
#[ method( lineFragmentPadding) ]
65
65
pub unsafe fn lineFragmentPadding( & self ) -> CGFloat ;
66
66
67
67
#[ method( setLineFragmentPadding: ) ]
68
- pub unsafe fn setLineFragmentPadding( & self , lineFragmentPadding : CGFloat ) ;
68
+ pub unsafe fn setLineFragmentPadding( & self , line_fragment_padding : CGFloat ) ;
69
69
70
70
#[ cfg( feature = "AppKit_NSFont" ) ]
71
71
#[ method_id( @__retain_semantics Other substituteFontForFont: ) ]
72
- pub unsafe fn substituteFontForFont( & self , originalFont : & NSFont ) -> Id <NSFont , Shared >;
72
+ pub unsafe fn substituteFontForFont( & self , original_font : & NSFont ) -> Id <NSFont , Shared >;
73
73
74
74
#[ cfg( feature = "AppKit_NSTextTab" ) ]
75
75
#[ method_id( @__retain_semantics Other textTabForGlyphLocation: writingDirection: maxLocation: ) ]
76
76
pub unsafe fn textTabForGlyphLocation_writingDirection_maxLocation(
77
77
& self ,
78
- glyphLocation : CGFloat ,
78
+ glyph_location : CGFloat ,
79
79
direction: NSWritingDirection ,
80
- maxLocation : CGFloat ,
80
+ max_location : CGFloat ,
81
81
) -> Option <Id <NSTextTab , Shared >>;
82
82
83
83
#[ method( bidiProcessingEnabled) ]
84
84
pub unsafe fn bidiProcessingEnabled( & self ) -> bool ;
85
85
86
86
#[ method( setBidiProcessingEnabled: ) ]
87
- pub unsafe fn setBidiProcessingEnabled( & self , bidiProcessingEnabled : bool ) ;
87
+ pub unsafe fn setBidiProcessingEnabled( & self , bidi_processing_enabled : bool ) ;
88
88
89
89
#[ cfg( feature = "Foundation_NSAttributedString" ) ]
90
90
#[ method_id( @__retain_semantics Other attributedString) ]
91
91
pub unsafe fn attributedString( & self ) -> Option <Id <NSAttributedString , Shared >>;
92
92
93
93
#[ cfg( feature = "Foundation_NSAttributedString" ) ]
94
94
#[ method( setAttributedString: ) ]
95
- pub unsafe fn setAttributedString( & self , attributedString : Option <& NSAttributedString >) ;
95
+ pub unsafe fn setAttributedString( & self , attributed_string : Option <& NSAttributedString >) ;
96
96
97
97
#[ method( setParagraphGlyphRange: separatorGlyphRange: ) ]
98
98
pub unsafe fn setParagraphGlyphRange_separatorGlyphRange(
99
99
& self ,
100
- paragraphRange : NSRange ,
101
- paragraphSeparatorRange : NSRange ,
100
+ paragraph_range : NSRange ,
101
+ paragraph_separator_range : NSRange ,
102
102
) ;
103
103
104
104
#[ method( paragraphGlyphRange) ]
@@ -110,27 +110,27 @@ extern_methods!(
110
110
#[ method( layoutParagraphAtPoint: ) ]
111
111
pub unsafe fn layoutParagraphAtPoint(
112
112
& self ,
113
- lineFragmentOrigin : NonNull <NSPoint >,
113
+ line_fragment_origin : NonNull <NSPoint >,
114
114
) -> NSUInteger ;
115
115
116
116
#[ method( lineSpacingAfterGlyphAtIndex: withProposedLineFragmentRect: ) ]
117
117
pub unsafe fn lineSpacingAfterGlyphAtIndex_withProposedLineFragmentRect(
118
118
& self ,
119
- glyphIndex : NSUInteger ,
119
+ glyph_index : NSUInteger ,
120
120
rect: NSRect ,
121
121
) -> CGFloat ;
122
122
123
123
#[ method( paragraphSpacingBeforeGlyphAtIndex: withProposedLineFragmentRect: ) ]
124
124
pub unsafe fn paragraphSpacingBeforeGlyphAtIndex_withProposedLineFragmentRect(
125
125
& self ,
126
- glyphIndex : NSUInteger ,
126
+ glyph_index : NSUInteger ,
127
127
rect: NSRect ,
128
128
) -> CGFloat ;
129
129
130
130
#[ method( paragraphSpacingAfterGlyphAtIndex: withProposedLineFragmentRect: ) ]
131
131
pub unsafe fn paragraphSpacingAfterGlyphAtIndex_withProposedLineFragmentRect(
132
132
& self ,
133
- glyphIndex : NSUInteger ,
133
+ glyph_index : NSUInteger ,
134
134
rect: NSRect ,
135
135
) -> CGFloat ;
136
136
@@ -143,15 +143,15 @@ extern_methods!(
143
143
pub unsafe fn currentTextContainer( & self ) -> Option <Id <NSTextContainer , Shared >>;
144
144
145
145
#[ method( setHardInvalidation: forGlyphRange: ) ]
146
- pub unsafe fn setHardInvalidation_forGlyphRange( & self , flag: bool , glyphRange : NSRange ) ;
146
+ pub unsafe fn setHardInvalidation_forGlyphRange( & self , flag: bool , glyph_range : NSRange ) ;
147
147
148
148
#[ method( getLineFragmentRect: usedRect: forParagraphSeparatorGlyphRange: atProposedOrigin: ) ]
149
149
pub unsafe fn getLineFragmentRect_usedRect_forParagraphSeparatorGlyphRange_atProposedOrigin(
150
150
& self ,
151
- lineFragmentRect : NonNull <NSRect >,
152
- lineFragmentUsedRect : NonNull <NSRect >,
153
- paragraphSeparatorGlyphRange : NSRange ,
154
- lineOrigin : NSPoint ,
151
+ line_fragment_rect : NonNull <NSRect >,
152
+ line_fragment_used_rect : NonNull <NSRect >,
153
+ paragraph_separator_glyph_range : NSRange ,
154
+ line_origin : NSPoint ,
155
155
) ;
156
156
}
157
157
) ;
@@ -163,39 +163,39 @@ extern_methods!(
163
163
#[ method( willSetLineFragmentRect: forGlyphRange: usedRect: baselineOffset: ) ]
164
164
pub unsafe fn willSetLineFragmentRect_forGlyphRange_usedRect_baselineOffset(
165
165
& self ,
166
- lineRect : NonNull <NSRect >,
167
- glyphRange : NSRange ,
168
- usedRect : NonNull <NSRect >,
169
- baselineOffset : NonNull <CGFloat >,
166
+ line_rect : NonNull <NSRect >,
167
+ glyph_range : NSRange ,
168
+ used_rect : NonNull <NSRect >,
169
+ baseline_offset : NonNull <CGFloat >,
170
170
) ;
171
171
172
172
#[ method( shouldBreakLineByWordBeforeCharacterAtIndex: ) ]
173
173
pub unsafe fn shouldBreakLineByWordBeforeCharacterAtIndex(
174
174
& self ,
175
- charIndex : NSUInteger ,
175
+ char_index : NSUInteger ,
176
176
) -> bool ;
177
177
178
178
#[ method( shouldBreakLineByHyphenatingBeforeCharacterAtIndex: ) ]
179
179
pub unsafe fn shouldBreakLineByHyphenatingBeforeCharacterAtIndex(
180
180
& self ,
181
- charIndex : NSUInteger ,
181
+ char_index : NSUInteger ,
182
182
) -> bool ;
183
183
184
184
#[ method( hyphenationFactorForGlyphAtIndex: ) ]
185
- pub unsafe fn hyphenationFactorForGlyphAtIndex( & self , glyphIndex : NSUInteger ) -> c_float;
185
+ pub unsafe fn hyphenationFactorForGlyphAtIndex( & self , glyph_index : NSUInteger ) -> c_float;
186
186
187
187
#[ method( hyphenCharacterForGlyphAtIndex: ) ]
188
- pub unsafe fn hyphenCharacterForGlyphAtIndex( & self , glyphIndex : NSUInteger ) -> UTF32Char ;
188
+ pub unsafe fn hyphenCharacterForGlyphAtIndex( & self , glyph_index : NSUInteger ) -> UTF32Char ;
189
189
190
190
#[ cfg( feature = "AppKit_NSTextContainer" ) ]
191
191
#[ method( boundingBoxForControlGlyphAtIndex: forTextContainer: proposedLineFragment: glyphPosition: characterIndex: ) ]
192
192
pub unsafe fn boundingBoxForControlGlyphAtIndex_forTextContainer_proposedLineFragment_glyphPosition_characterIndex(
193
193
& self ,
194
- glyphIndex : NSUInteger ,
195
- textContainer : & NSTextContainer ,
196
- proposedRect : NSRect ,
197
- glyphPosition : NSPoint ,
198
- charIndex : NSUInteger ,
194
+ glyph_index : NSUInteger ,
195
+ text_container : & NSTextContainer ,
196
+ proposed_rect : NSRect ,
197
+ glyph_position : NSPoint ,
198
+ char_index : NSUInteger ,
199
199
) -> NSRect ;
200
200
}
201
201
) ;
@@ -208,11 +208,11 @@ extern_methods!(
208
208
#[ method( getGlyphsInRange: glyphs: characterIndexes: glyphInscriptions: elasticBits: ) ]
209
209
pub unsafe fn getGlyphsInRange_glyphs_characterIndexes_glyphInscriptions_elasticBits(
210
210
& self ,
211
- glyphsRange : NSRange ,
212
- glyphBuffer : * mut NSGlyph ,
213
- charIndexBuffer : * mut NSUInteger ,
214
- inscribeBuffer : * mut NSGlyphInscription ,
215
- elasticBuffer : * mut Bool ,
211
+ glyphs_range : NSRange ,
212
+ glyph_buffer : * mut NSGlyph ,
213
+ char_index_buffer : * mut NSUInteger ,
214
+ inscribe_buffer : * mut NSGlyphInscription ,
215
+ elastic_buffer : * mut Bool ,
216
216
) -> NSUInteger ;
217
217
}
218
218
) ;
0 commit comments