Skip to content

Commit dca2631

Browse files
committed
Regenerate with snake case arguments
1 parent 1928f01 commit dca2631

File tree

514 files changed

+7101
-6795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

514 files changed

+7101
-6795
lines changed

AppKit/NSATSTypesetter.rs

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ extern_methods!(
3333
#[method(lineFragmentRectForProposedRect:remainingRect:)]
3434
pub unsafe fn lineFragmentRectForProposedRect_remainingRect(
3535
&self,
36-
proposedRect: NSRect,
37-
remainingRect: NSRectPointer,
36+
proposed_rect: NSRect,
37+
remaining_rect: NSRectPointer,
3838
) -> NSRect;
3939
}
4040
);
@@ -47,58 +47,58 @@ extern_methods!(
4747
pub unsafe fn usesFontLeading(&self) -> bool;
4848

4949
#[method(setUsesFontLeading:)]
50-
pub unsafe fn setUsesFontLeading(&self, usesFontLeading: bool);
50+
pub unsafe fn setUsesFontLeading(&self, uses_font_leading: bool);
5151

5252
#[method(typesetterBehavior)]
5353
pub unsafe fn typesetterBehavior(&self) -> NSTypesetterBehavior;
5454

5555
#[method(setTypesetterBehavior:)]
56-
pub unsafe fn setTypesetterBehavior(&self, typesetterBehavior: NSTypesetterBehavior);
56+
pub unsafe fn setTypesetterBehavior(&self, typesetter_behavior: NSTypesetterBehavior);
5757

5858
#[method(hyphenationFactor)]
5959
pub unsafe fn hyphenationFactor(&self) -> c_float;
6060

6161
#[method(setHyphenationFactor:)]
62-
pub unsafe fn setHyphenationFactor(&self, hyphenationFactor: c_float);
62+
pub unsafe fn setHyphenationFactor(&self, hyphenation_factor: c_float);
6363

6464
#[method(lineFragmentPadding)]
6565
pub unsafe fn lineFragmentPadding(&self) -> CGFloat;
6666

6767
#[method(setLineFragmentPadding:)]
68-
pub unsafe fn setLineFragmentPadding(&self, lineFragmentPadding: CGFloat);
68+
pub unsafe fn setLineFragmentPadding(&self, line_fragment_padding: CGFloat);
6969

7070
#[cfg(feature = "AppKit_NSFont")]
7171
#[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>;
7373

7474
#[cfg(feature = "AppKit_NSTextTab")]
7575
#[method_id(@__retain_semantics Other textTabForGlyphLocation:writingDirection:maxLocation:)]
7676
pub unsafe fn textTabForGlyphLocation_writingDirection_maxLocation(
7777
&self,
78-
glyphLocation: CGFloat,
78+
glyph_location: CGFloat,
7979
direction: NSWritingDirection,
80-
maxLocation: CGFloat,
80+
max_location: CGFloat,
8181
) -> Option<Id<NSTextTab, Shared>>;
8282

8383
#[method(bidiProcessingEnabled)]
8484
pub unsafe fn bidiProcessingEnabled(&self) -> bool;
8585

8686
#[method(setBidiProcessingEnabled:)]
87-
pub unsafe fn setBidiProcessingEnabled(&self, bidiProcessingEnabled: bool);
87+
pub unsafe fn setBidiProcessingEnabled(&self, bidi_processing_enabled: bool);
8888

8989
#[cfg(feature = "Foundation_NSAttributedString")]
9090
#[method_id(@__retain_semantics Other attributedString)]
9191
pub unsafe fn attributedString(&self) -> Option<Id<NSAttributedString, Shared>>;
9292

9393
#[cfg(feature = "Foundation_NSAttributedString")]
9494
#[method(setAttributedString:)]
95-
pub unsafe fn setAttributedString(&self, attributedString: Option<&NSAttributedString>);
95+
pub unsafe fn setAttributedString(&self, attributed_string: Option<&NSAttributedString>);
9696

9797
#[method(setParagraphGlyphRange:separatorGlyphRange:)]
9898
pub unsafe fn setParagraphGlyphRange_separatorGlyphRange(
9999
&self,
100-
paragraphRange: NSRange,
101-
paragraphSeparatorRange: NSRange,
100+
paragraph_range: NSRange,
101+
paragraph_separator_range: NSRange,
102102
);
103103

104104
#[method(paragraphGlyphRange)]
@@ -110,27 +110,27 @@ extern_methods!(
110110
#[method(layoutParagraphAtPoint:)]
111111
pub unsafe fn layoutParagraphAtPoint(
112112
&self,
113-
lineFragmentOrigin: NonNull<NSPoint>,
113+
line_fragment_origin: NonNull<NSPoint>,
114114
) -> NSUInteger;
115115

116116
#[method(lineSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:)]
117117
pub unsafe fn lineSpacingAfterGlyphAtIndex_withProposedLineFragmentRect(
118118
&self,
119-
glyphIndex: NSUInteger,
119+
glyph_index: NSUInteger,
120120
rect: NSRect,
121121
) -> CGFloat;
122122

123123
#[method(paragraphSpacingBeforeGlyphAtIndex:withProposedLineFragmentRect:)]
124124
pub unsafe fn paragraphSpacingBeforeGlyphAtIndex_withProposedLineFragmentRect(
125125
&self,
126-
glyphIndex: NSUInteger,
126+
glyph_index: NSUInteger,
127127
rect: NSRect,
128128
) -> CGFloat;
129129

130130
#[method(paragraphSpacingAfterGlyphAtIndex:withProposedLineFragmentRect:)]
131131
pub unsafe fn paragraphSpacingAfterGlyphAtIndex_withProposedLineFragmentRect(
132132
&self,
133-
glyphIndex: NSUInteger,
133+
glyph_index: NSUInteger,
134134
rect: NSRect,
135135
) -> CGFloat;
136136

@@ -143,15 +143,15 @@ extern_methods!(
143143
pub unsafe fn currentTextContainer(&self) -> Option<Id<NSTextContainer, Shared>>;
144144

145145
#[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);
147147

148148
#[method(getLineFragmentRect:usedRect:forParagraphSeparatorGlyphRange:atProposedOrigin:)]
149149
pub unsafe fn getLineFragmentRect_usedRect_forParagraphSeparatorGlyphRange_atProposedOrigin(
150150
&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,
155155
);
156156
}
157157
);
@@ -163,39 +163,39 @@ extern_methods!(
163163
#[method(willSetLineFragmentRect:forGlyphRange:usedRect:baselineOffset:)]
164164
pub unsafe fn willSetLineFragmentRect_forGlyphRange_usedRect_baselineOffset(
165165
&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>,
170170
);
171171

172172
#[method(shouldBreakLineByWordBeforeCharacterAtIndex:)]
173173
pub unsafe fn shouldBreakLineByWordBeforeCharacterAtIndex(
174174
&self,
175-
charIndex: NSUInteger,
175+
char_index: NSUInteger,
176176
) -> bool;
177177

178178
#[method(shouldBreakLineByHyphenatingBeforeCharacterAtIndex:)]
179179
pub unsafe fn shouldBreakLineByHyphenatingBeforeCharacterAtIndex(
180180
&self,
181-
charIndex: NSUInteger,
181+
char_index: NSUInteger,
182182
) -> bool;
183183

184184
#[method(hyphenationFactorForGlyphAtIndex:)]
185-
pub unsafe fn hyphenationFactorForGlyphAtIndex(&self, glyphIndex: NSUInteger) -> c_float;
185+
pub unsafe fn hyphenationFactorForGlyphAtIndex(&self, glyph_index: NSUInteger) -> c_float;
186186

187187
#[method(hyphenCharacterForGlyphAtIndex:)]
188-
pub unsafe fn hyphenCharacterForGlyphAtIndex(&self, glyphIndex: NSUInteger) -> UTF32Char;
188+
pub unsafe fn hyphenCharacterForGlyphAtIndex(&self, glyph_index: NSUInteger) -> UTF32Char;
189189

190190
#[cfg(feature = "AppKit_NSTextContainer")]
191191
#[method(boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:)]
192192
pub unsafe fn boundingBoxForControlGlyphAtIndex_forTextContainer_proposedLineFragment_glyphPosition_characterIndex(
193193
&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,
199199
) -> NSRect;
200200
}
201201
);
@@ -208,11 +208,11 @@ extern_methods!(
208208
#[method(getGlyphsInRange:glyphs:characterIndexes:glyphInscriptions:elasticBits:)]
209209
pub unsafe fn getGlyphsInRange_glyphs_characterIndexes_glyphInscriptions_elasticBits(
210210
&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,
216216
) -> NSUInteger;
217217
}
218218
);

AppKit/NSAccessibility.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ extern_static!(
4444

4545
extern_fn!(
4646
#[cfg(feature = "AppKit_NSView")]
47-
pub unsafe fn NSAccessibilityFrameInView(parentView: &NSView, frame: NSRect) -> NSRect;
47+
pub unsafe fn NSAccessibilityFrameInView(parent_view: &NSView, frame: NSRect) -> NSRect;
4848
);
4949

5050
extern_fn!(
5151
#[cfg(feature = "AppKit_NSView")]
52-
pub unsafe fn NSAccessibilityPointInView(parentView: &NSView, point: NSPoint) -> NSPoint;
52+
pub unsafe fn NSAccessibilityPointInView(parent_view: &NSView, point: NSPoint) -> NSPoint;
5353
);
5454

5555
extern_fn!(
@@ -95,13 +95,14 @@ extern_fn!(
9595

9696
extern_fn!(
9797
#[cfg(feature = "Foundation_NSArray")]
98-
pub unsafe fn NSAccessibilityUnignoredChildren(originalChildren: &NSArray) -> NonNull<NSArray>;
98+
pub unsafe fn NSAccessibilityUnignoredChildren(original_children: &NSArray)
99+
-> NonNull<NSArray>;
99100
);
100101

101102
extern_fn!(
102103
#[cfg(feature = "Foundation_NSArray")]
103104
pub unsafe fn NSAccessibilityUnignoredChildrenForOnlyChild(
104-
originalChild: &Object,
105+
original_child: &Object,
105106
) -> NonNull<NSArray>;
106107
);
107108

AppKit/NSAccessibilityConstants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ extern_fn!(
866866
pub unsafe fn NSAccessibilityPostNotificationWithUserInfo(
867867
element: &Object,
868868
notification: &NSAccessibilityNotificationName,
869-
userInfo: Option<&NSDictionary<NSAccessibilityNotificationUserInfoKey, Object>>,
869+
user_info: Option<&NSDictionary<NSAccessibilityNotificationUserInfoKey, Object>>,
870870
);
871871
);
872872

AppKit/NSAccessibilityCustomRotor.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ extern_methods!(
6060
pub unsafe fn initWithLabel_itemSearchDelegate(
6161
this: Option<Allocated<Self>>,
6262
label: &NSString,
63-
itemSearchDelegate: &NSAccessibilityCustomRotorItemSearchDelegate,
63+
item_search_delegate: &NSAccessibilityCustomRotorItemSearchDelegate,
6464
) -> Id<Self, Shared>;
6565

6666
#[method_id(@__retain_semantics Init initWithRotorType:itemSearchDelegate:)]
6767
pub unsafe fn initWithRotorType_itemSearchDelegate(
6868
this: Option<Allocated<Self>>,
69-
rotorType: NSAccessibilityCustomRotorType,
70-
itemSearchDelegate: &NSAccessibilityCustomRotorItemSearchDelegate,
69+
rotor_type: NSAccessibilityCustomRotorType,
70+
item_search_delegate: &NSAccessibilityCustomRotorItemSearchDelegate,
7171
) -> Id<Self, Shared>;
7272

7373
#[method(type)]
@@ -92,7 +92,7 @@ extern_methods!(
9292
#[method(setItemSearchDelegate:)]
9393
pub unsafe fn setItemSearchDelegate(
9494
&self,
95-
itemSearchDelegate: Option<&NSAccessibilityCustomRotorItemSearchDelegate>,
95+
item_search_delegate: Option<&NSAccessibilityCustomRotorItemSearchDelegate>,
9696
);
9797

9898
#[method_id(@__retain_semantics Other itemLoadingDelegate)]
@@ -103,7 +103,7 @@ extern_methods!(
103103
#[method(setItemLoadingDelegate:)]
104104
pub unsafe fn setItemLoadingDelegate(
105105
&self,
106-
itemLoadingDelegate: Option<&NSAccessibilityElementLoading>,
106+
item_loading_delegate: Option<&NSAccessibilityElementLoading>,
107107
);
108108
}
109109
);
@@ -132,7 +132,7 @@ extern_methods!(
132132
#[method(setCurrentItem:)]
133133
pub unsafe fn setCurrentItem(
134134
&self,
135-
currentItem: Option<&NSAccessibilityCustomRotorItemResult>,
135+
current_item: Option<&NSAccessibilityCustomRotorItemResult>,
136136
);
137137

138138
#[method(searchDirection)]
@@ -141,7 +141,7 @@ extern_methods!(
141141
#[method(setSearchDirection:)]
142142
pub unsafe fn setSearchDirection(
143143
&self,
144-
searchDirection: NSAccessibilityCustomRotorSearchDirection,
144+
search_direction: NSAccessibilityCustomRotorSearchDirection,
145145
);
146146

147147
#[cfg(feature = "Foundation_NSString")]
@@ -150,7 +150,7 @@ extern_methods!(
150150

151151
#[cfg(feature = "Foundation_NSString")]
152152
#[method(setFilterString:)]
153-
pub unsafe fn setFilterString(&self, filterString: &NSString);
153+
pub unsafe fn setFilterString(&self, filter_string: &NSString);
154154
}
155155
);
156156

@@ -177,15 +177,15 @@ extern_methods!(
177177
#[method_id(@__retain_semantics Init initWithTargetElement:)]
178178
pub unsafe fn initWithTargetElement(
179179
this: Option<Allocated<Self>>,
180-
targetElement: &NSAccessibilityElement,
180+
target_element: &NSAccessibilityElement,
181181
) -> Id<Self, Shared>;
182182

183183
#[cfg(feature = "Foundation_NSString")]
184184
#[method_id(@__retain_semantics Init initWithItemLoadingToken:customLabel:)]
185185
pub unsafe fn initWithItemLoadingToken_customLabel(
186186
this: Option<Allocated<Self>>,
187-
itemLoadingToken: &NSAccessibilityLoadingToken,
188-
customLabel: &NSString,
187+
item_loading_token: &NSAccessibilityLoadingToken,
188+
custom_label: &NSString,
189189
) -> Id<Self, Shared>;
190190

191191
#[method_id(@__retain_semantics Other targetElement)]
@@ -198,15 +198,15 @@ extern_methods!(
198198
pub unsafe fn targetRange(&self) -> NSRange;
199199

200200
#[method(setTargetRange:)]
201-
pub unsafe fn setTargetRange(&self, targetRange: NSRange);
201+
pub unsafe fn setTargetRange(&self, target_range: NSRange);
202202

203203
#[cfg(feature = "Foundation_NSString")]
204204
#[method_id(@__retain_semantics Other customLabel)]
205205
pub unsafe fn customLabel(&self) -> Option<Id<NSString, Shared>>;
206206

207207
#[cfg(feature = "Foundation_NSString")]
208208
#[method(setCustomLabel:)]
209-
pub unsafe fn setCustomLabel(&self, customLabel: Option<&NSString>);
209+
pub unsafe fn setCustomLabel(&self, custom_label: Option<&NSString>);
210210
}
211211
);
212212

@@ -223,7 +223,7 @@ extern_protocol!(
223223
pub unsafe fn rotor_resultForSearchParameters(
224224
&self,
225225
rotor: &NSAccessibilityCustomRotor,
226-
searchParameters: &NSAccessibilityCustomRotorSearchParameters,
226+
search_parameters: &NSAccessibilityCustomRotorSearchParameters,
227227
) -> Option<Id<NSAccessibilityCustomRotorItemResult, Shared>>;
228228
}
229229
);

AppKit/NSAccessibilityElement.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ extern_methods!(
2929
) -> Id<Object, Shared>;
3030

3131
#[method(accessibilityAddChildElement:)]
32-
pub unsafe fn accessibilityAddChildElement(&self, childElement: &NSAccessibilityElement);
32+
pub unsafe fn accessibilityAddChildElement(&self, child_element: &NSAccessibilityElement);
3333

3434
#[method(accessibilityFrameInParentSpace)]
3535
pub unsafe fn accessibilityFrameInParentSpace(&self) -> NSRect;
3636

3737
#[method(setAccessibilityFrameInParentSpace:)]
3838
pub unsafe fn setAccessibilityFrameInParentSpace(
3939
&self,
40-
accessibilityFrameInParentSpace: NSRect,
40+
accessibility_frame_in_parent_space: NSRect,
4141
);
4242
}
4343
);

0 commit comments

Comments
 (0)