objc2_app_kit/generated/
NSBezierPath.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8#[cfg(feature = "objc2-core-graphics")]
9#[cfg(target_vendor = "apple")]
10use objc2_core_graphics::*;
11use objc2_foundation::*;
12
13use crate::*;
14
15/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nslinecapstyle?language=objc)
16// NS_ENUM
17#[repr(transparent)]
18#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
19pub struct NSLineCapStyle(pub NSUInteger);
20impl NSLineCapStyle {
21    #[doc(alias = "NSLineCapStyleButt")]
22    pub const Butt: Self = Self(0);
23    #[doc(alias = "NSLineCapStyleRound")]
24    pub const Round: Self = Self(1);
25    #[doc(alias = "NSLineCapStyleSquare")]
26    pub const Square: Self = Self(2);
27}
28
29unsafe impl Encode for NSLineCapStyle {
30    const ENCODING: Encoding = NSUInteger::ENCODING;
31}
32
33unsafe impl RefEncode for NSLineCapStyle {
34    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
35}
36
37/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nslinejoinstyle?language=objc)
38// NS_ENUM
39#[repr(transparent)]
40#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
41pub struct NSLineJoinStyle(pub NSUInteger);
42impl NSLineJoinStyle {
43    #[doc(alias = "NSLineJoinStyleMiter")]
44    pub const Miter: Self = Self(0);
45    #[doc(alias = "NSLineJoinStyleRound")]
46    pub const Round: Self = Self(1);
47    #[doc(alias = "NSLineJoinStyleBevel")]
48    pub const Bevel: Self = Self(2);
49}
50
51unsafe impl Encode for NSLineJoinStyle {
52    const ENCODING: Encoding = NSUInteger::ENCODING;
53}
54
55unsafe impl RefEncode for NSLineJoinStyle {
56    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
57}
58
59/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nswindingrule?language=objc)
60// NS_ENUM
61#[repr(transparent)]
62#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
63pub struct NSWindingRule(pub NSUInteger);
64impl NSWindingRule {
65    #[doc(alias = "NSWindingRuleNonZero")]
66    pub const NonZero: Self = Self(0);
67    #[doc(alias = "NSWindingRuleEvenOdd")]
68    pub const EvenOdd: Self = Self(1);
69}
70
71unsafe impl Encode for NSWindingRule {
72    const ENCODING: Encoding = NSUInteger::ENCODING;
73}
74
75unsafe impl RefEncode for NSWindingRule {
76    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
77}
78
79/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsbezierpathelement?language=objc)
80// NS_ENUM
81#[repr(transparent)]
82#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
83pub struct NSBezierPathElement(pub NSUInteger);
84impl NSBezierPathElement {
85    #[doc(alias = "NSBezierPathElementMoveTo")]
86    pub const MoveTo: Self = Self(0);
87    #[doc(alias = "NSBezierPathElementLineTo")]
88    pub const LineTo: Self = Self(1);
89    #[doc(alias = "NSBezierPathElementCubicCurveTo")]
90    pub const CubicCurveTo: Self = Self(2);
91    #[doc(alias = "NSBezierPathElementClosePath")]
92    pub const ClosePath: Self = Self(3);
93    #[doc(alias = "NSBezierPathElementQuadraticCurveTo")]
94    pub const QuadraticCurveTo: Self = Self(4);
95    #[doc(alias = "NSBezierPathElementCurveTo")]
96    #[deprecated]
97    pub const CurveTo: Self = Self(NSBezierPathElement::CubicCurveTo.0);
98}
99
100unsafe impl Encode for NSBezierPathElement {
101    const ENCODING: Encoding = NSUInteger::ENCODING;
102}
103
104unsafe impl RefEncode for NSBezierPathElement {
105    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
106}
107
108extern_class!(
109    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsbezierpath?language=objc)
110    #[unsafe(super(NSObject))]
111    #[derive(Debug, PartialEq, Eq, Hash)]
112    pub struct NSBezierPath;
113);
114
115extern_conformance!(
116    unsafe impl NSCoding for NSBezierPath {}
117);
118
119extern_conformance!(
120    unsafe impl NSCopying for NSBezierPath {}
121);
122
123unsafe impl CopyingHelper for NSBezierPath {
124    type Result = Self;
125}
126
127extern_conformance!(
128    unsafe impl NSObjectProtocol for NSBezierPath {}
129);
130
131extern_conformance!(
132    unsafe impl NSSecureCoding for NSBezierPath {}
133);
134
135impl NSBezierPath {
136    extern_methods!(
137        #[unsafe(method(bezierPath))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn bezierPath() -> Retained<NSBezierPath>;
140
141        #[unsafe(method(bezierPathWithRect:))]
142        #[unsafe(method_family = none)]
143        pub unsafe fn bezierPathWithRect(rect: NSRect) -> Retained<NSBezierPath>;
144
145        #[unsafe(method(bezierPathWithOvalInRect:))]
146        #[unsafe(method_family = none)]
147        pub unsafe fn bezierPathWithOvalInRect(rect: NSRect) -> Retained<NSBezierPath>;
148
149        #[cfg(feature = "objc2-core-foundation")]
150        #[unsafe(method(bezierPathWithRoundedRect:xRadius:yRadius:))]
151        #[unsafe(method_family = none)]
152        pub unsafe fn bezierPathWithRoundedRect_xRadius_yRadius(
153            rect: NSRect,
154            x_radius: CGFloat,
155            y_radius: CGFloat,
156        ) -> Retained<NSBezierPath>;
157
158        #[cfg(feature = "objc2-core-graphics")]
159        #[cfg(target_vendor = "apple")]
160        #[unsafe(method(bezierPathWithCGPath:))]
161        #[unsafe(method_family = none)]
162        pub unsafe fn bezierPathWithCGPath(cg_path: &CGPath) -> Retained<NSBezierPath>;
163
164        #[cfg(feature = "objc2-core-graphics")]
165        #[cfg(target_vendor = "apple")]
166        #[unsafe(method(CGPath))]
167        #[unsafe(method_family = none)]
168        pub unsafe fn CGPath(&self) -> Retained<CGPath>;
169
170        #[cfg(feature = "objc2-core-graphics")]
171        #[cfg(target_vendor = "apple")]
172        /// Setter for [`CGPath`][Self::CGPath].
173        #[unsafe(method(setCGPath:))]
174        #[unsafe(method_family = none)]
175        pub unsafe fn setCGPath(&self, cg_path: &CGPath);
176
177        #[unsafe(method(fillRect:))]
178        #[unsafe(method_family = none)]
179        pub unsafe fn fillRect(rect: NSRect);
180
181        #[unsafe(method(strokeRect:))]
182        #[unsafe(method_family = none)]
183        pub unsafe fn strokeRect(rect: NSRect);
184
185        #[unsafe(method(clipRect:))]
186        #[unsafe(method_family = none)]
187        pub unsafe fn clipRect(rect: NSRect);
188
189        #[unsafe(method(strokeLineFromPoint:toPoint:))]
190        #[unsafe(method_family = none)]
191        pub unsafe fn strokeLineFromPoint_toPoint(point1: NSPoint, point2: NSPoint);
192
193        #[unsafe(method(drawPackedGlyphs:atPoint:))]
194        #[unsafe(method_family = none)]
195        pub unsafe fn drawPackedGlyphs_atPoint(packed_glyphs: NonNull<c_char>, point: NSPoint);
196
197        #[cfg(feature = "objc2-core-foundation")]
198        #[unsafe(method(defaultMiterLimit))]
199        #[unsafe(method_family = none)]
200        pub unsafe fn defaultMiterLimit() -> CGFloat;
201
202        #[cfg(feature = "objc2-core-foundation")]
203        /// Setter for [`defaultMiterLimit`][Self::defaultMiterLimit].
204        #[unsafe(method(setDefaultMiterLimit:))]
205        #[unsafe(method_family = none)]
206        pub unsafe fn setDefaultMiterLimit(default_miter_limit: CGFloat);
207
208        #[cfg(feature = "objc2-core-foundation")]
209        #[unsafe(method(defaultFlatness))]
210        #[unsafe(method_family = none)]
211        pub unsafe fn defaultFlatness() -> CGFloat;
212
213        #[cfg(feature = "objc2-core-foundation")]
214        /// Setter for [`defaultFlatness`][Self::defaultFlatness].
215        #[unsafe(method(setDefaultFlatness:))]
216        #[unsafe(method_family = none)]
217        pub unsafe fn setDefaultFlatness(default_flatness: CGFloat);
218
219        #[unsafe(method(defaultWindingRule))]
220        #[unsafe(method_family = none)]
221        pub unsafe fn defaultWindingRule() -> NSWindingRule;
222
223        /// Setter for [`defaultWindingRule`][Self::defaultWindingRule].
224        #[unsafe(method(setDefaultWindingRule:))]
225        #[unsafe(method_family = none)]
226        pub unsafe fn setDefaultWindingRule(default_winding_rule: NSWindingRule);
227
228        #[unsafe(method(defaultLineCapStyle))]
229        #[unsafe(method_family = none)]
230        pub unsafe fn defaultLineCapStyle() -> NSLineCapStyle;
231
232        /// Setter for [`defaultLineCapStyle`][Self::defaultLineCapStyle].
233        #[unsafe(method(setDefaultLineCapStyle:))]
234        #[unsafe(method_family = none)]
235        pub unsafe fn setDefaultLineCapStyle(default_line_cap_style: NSLineCapStyle);
236
237        #[unsafe(method(defaultLineJoinStyle))]
238        #[unsafe(method_family = none)]
239        pub unsafe fn defaultLineJoinStyle() -> NSLineJoinStyle;
240
241        /// Setter for [`defaultLineJoinStyle`][Self::defaultLineJoinStyle].
242        #[unsafe(method(setDefaultLineJoinStyle:))]
243        #[unsafe(method_family = none)]
244        pub unsafe fn setDefaultLineJoinStyle(default_line_join_style: NSLineJoinStyle);
245
246        #[cfg(feature = "objc2-core-foundation")]
247        #[unsafe(method(defaultLineWidth))]
248        #[unsafe(method_family = none)]
249        pub unsafe fn defaultLineWidth() -> CGFloat;
250
251        #[cfg(feature = "objc2-core-foundation")]
252        /// Setter for [`defaultLineWidth`][Self::defaultLineWidth].
253        #[unsafe(method(setDefaultLineWidth:))]
254        #[unsafe(method_family = none)]
255        pub unsafe fn setDefaultLineWidth(default_line_width: CGFloat);
256
257        #[unsafe(method(moveToPoint:))]
258        #[unsafe(method_family = none)]
259        pub unsafe fn moveToPoint(&self, point: NSPoint);
260
261        #[unsafe(method(lineToPoint:))]
262        #[unsafe(method_family = none)]
263        pub unsafe fn lineToPoint(&self, point: NSPoint);
264
265        #[unsafe(method(curveToPoint:controlPoint1:controlPoint2:))]
266        #[unsafe(method_family = none)]
267        pub unsafe fn curveToPoint_controlPoint1_controlPoint2(
268            &self,
269            end_point: NSPoint,
270            control_point1: NSPoint,
271            control_point2: NSPoint,
272        );
273
274        #[unsafe(method(curveToPoint:controlPoint:))]
275        #[unsafe(method_family = none)]
276        pub unsafe fn curveToPoint_controlPoint(&self, end_point: NSPoint, control_point: NSPoint);
277
278        #[unsafe(method(closePath))]
279        #[unsafe(method_family = none)]
280        pub unsafe fn closePath(&self);
281
282        #[unsafe(method(removeAllPoints))]
283        #[unsafe(method_family = none)]
284        pub unsafe fn removeAllPoints(&self);
285
286        #[unsafe(method(relativeMoveToPoint:))]
287        #[unsafe(method_family = none)]
288        pub unsafe fn relativeMoveToPoint(&self, point: NSPoint);
289
290        #[unsafe(method(relativeLineToPoint:))]
291        #[unsafe(method_family = none)]
292        pub unsafe fn relativeLineToPoint(&self, point: NSPoint);
293
294        #[unsafe(method(relativeCurveToPoint:controlPoint1:controlPoint2:))]
295        #[unsafe(method_family = none)]
296        pub unsafe fn relativeCurveToPoint_controlPoint1_controlPoint2(
297            &self,
298            end_point: NSPoint,
299            control_point1: NSPoint,
300            control_point2: NSPoint,
301        );
302
303        #[unsafe(method(relativeCurveToPoint:controlPoint:))]
304        #[unsafe(method_family = none)]
305        pub unsafe fn relativeCurveToPoint_controlPoint(
306            &self,
307            end_point: NSPoint,
308            control_point: NSPoint,
309        );
310
311        #[cfg(feature = "objc2-core-foundation")]
312        #[unsafe(method(lineWidth))]
313        #[unsafe(method_family = none)]
314        pub unsafe fn lineWidth(&self) -> CGFloat;
315
316        #[cfg(feature = "objc2-core-foundation")]
317        /// Setter for [`lineWidth`][Self::lineWidth].
318        #[unsafe(method(setLineWidth:))]
319        #[unsafe(method_family = none)]
320        pub unsafe fn setLineWidth(&self, line_width: CGFloat);
321
322        #[unsafe(method(lineCapStyle))]
323        #[unsafe(method_family = none)]
324        pub unsafe fn lineCapStyle(&self) -> NSLineCapStyle;
325
326        /// Setter for [`lineCapStyle`][Self::lineCapStyle].
327        #[unsafe(method(setLineCapStyle:))]
328        #[unsafe(method_family = none)]
329        pub unsafe fn setLineCapStyle(&self, line_cap_style: NSLineCapStyle);
330
331        #[unsafe(method(lineJoinStyle))]
332        #[unsafe(method_family = none)]
333        pub unsafe fn lineJoinStyle(&self) -> NSLineJoinStyle;
334
335        /// Setter for [`lineJoinStyle`][Self::lineJoinStyle].
336        #[unsafe(method(setLineJoinStyle:))]
337        #[unsafe(method_family = none)]
338        pub unsafe fn setLineJoinStyle(&self, line_join_style: NSLineJoinStyle);
339
340        #[unsafe(method(windingRule))]
341        #[unsafe(method_family = none)]
342        pub unsafe fn windingRule(&self) -> NSWindingRule;
343
344        /// Setter for [`windingRule`][Self::windingRule].
345        #[unsafe(method(setWindingRule:))]
346        #[unsafe(method_family = none)]
347        pub unsafe fn setWindingRule(&self, winding_rule: NSWindingRule);
348
349        #[cfg(feature = "objc2-core-foundation")]
350        #[unsafe(method(miterLimit))]
351        #[unsafe(method_family = none)]
352        pub unsafe fn miterLimit(&self) -> CGFloat;
353
354        #[cfg(feature = "objc2-core-foundation")]
355        /// Setter for [`miterLimit`][Self::miterLimit].
356        #[unsafe(method(setMiterLimit:))]
357        #[unsafe(method_family = none)]
358        pub unsafe fn setMiterLimit(&self, miter_limit: CGFloat);
359
360        #[cfg(feature = "objc2-core-foundation")]
361        #[unsafe(method(flatness))]
362        #[unsafe(method_family = none)]
363        pub unsafe fn flatness(&self) -> CGFloat;
364
365        #[cfg(feature = "objc2-core-foundation")]
366        /// Setter for [`flatness`][Self::flatness].
367        #[unsafe(method(setFlatness:))]
368        #[unsafe(method_family = none)]
369        pub unsafe fn setFlatness(&self, flatness: CGFloat);
370
371        #[cfg(feature = "objc2-core-foundation")]
372        #[unsafe(method(getLineDash:count:phase:))]
373        #[unsafe(method_family = none)]
374        pub unsafe fn getLineDash_count_phase(
375            &self,
376            pattern: *mut CGFloat,
377            count: *mut NSInteger,
378            phase: *mut CGFloat,
379        );
380
381        #[cfg(feature = "objc2-core-foundation")]
382        #[unsafe(method(setLineDash:count:phase:))]
383        #[unsafe(method_family = none)]
384        pub unsafe fn setLineDash_count_phase(
385            &self,
386            pattern: *const CGFloat,
387            count: NSInteger,
388            phase: CGFloat,
389        );
390
391        #[unsafe(method(stroke))]
392        #[unsafe(method_family = none)]
393        pub unsafe fn stroke(&self);
394
395        #[unsafe(method(fill))]
396        #[unsafe(method_family = none)]
397        pub unsafe fn fill(&self);
398
399        #[unsafe(method(addClip))]
400        #[unsafe(method_family = none)]
401        pub unsafe fn addClip(&self);
402
403        #[unsafe(method(setClip))]
404        #[unsafe(method_family = none)]
405        pub unsafe fn setClip(&self);
406
407        #[unsafe(method(bezierPathByFlatteningPath))]
408        #[unsafe(method_family = none)]
409        pub unsafe fn bezierPathByFlatteningPath(&self) -> Retained<NSBezierPath>;
410
411        #[unsafe(method(bezierPathByReversingPath))]
412        #[unsafe(method_family = none)]
413        pub unsafe fn bezierPathByReversingPath(&self) -> Retained<NSBezierPath>;
414
415        #[unsafe(method(transformUsingAffineTransform:))]
416        #[unsafe(method_family = none)]
417        pub unsafe fn transformUsingAffineTransform(&self, transform: &NSAffineTransform);
418
419        #[unsafe(method(isEmpty))]
420        #[unsafe(method_family = none)]
421        pub unsafe fn isEmpty(&self) -> bool;
422
423        #[unsafe(method(currentPoint))]
424        #[unsafe(method_family = none)]
425        pub unsafe fn currentPoint(&self) -> NSPoint;
426
427        #[unsafe(method(controlPointBounds))]
428        #[unsafe(method_family = none)]
429        pub unsafe fn controlPointBounds(&self) -> NSRect;
430
431        #[unsafe(method(bounds))]
432        #[unsafe(method_family = none)]
433        pub unsafe fn bounds(&self) -> NSRect;
434
435        #[unsafe(method(elementCount))]
436        #[unsafe(method_family = none)]
437        pub unsafe fn elementCount(&self) -> NSInteger;
438
439        #[unsafe(method(elementAtIndex:associatedPoints:))]
440        #[unsafe(method_family = none)]
441        pub unsafe fn elementAtIndex_associatedPoints(
442            &self,
443            index: NSInteger,
444            points: NSPointArray,
445        ) -> NSBezierPathElement;
446
447        #[unsafe(method(elementAtIndex:))]
448        #[unsafe(method_family = none)]
449        pub unsafe fn elementAtIndex(&self, index: NSInteger) -> NSBezierPathElement;
450
451        #[unsafe(method(setAssociatedPoints:atIndex:))]
452        #[unsafe(method_family = none)]
453        pub unsafe fn setAssociatedPoints_atIndex(&self, points: NSPointArray, index: NSInteger);
454
455        #[unsafe(method(appendBezierPath:))]
456        #[unsafe(method_family = none)]
457        pub unsafe fn appendBezierPath(&self, path: &NSBezierPath);
458
459        #[unsafe(method(appendBezierPathWithRect:))]
460        #[unsafe(method_family = none)]
461        pub unsafe fn appendBezierPathWithRect(&self, rect: NSRect);
462
463        #[unsafe(method(appendBezierPathWithPoints:count:))]
464        #[unsafe(method_family = none)]
465        pub unsafe fn appendBezierPathWithPoints_count(
466            &self,
467            points: NSPointArray,
468            count: NSInteger,
469        );
470
471        #[unsafe(method(appendBezierPathWithOvalInRect:))]
472        #[unsafe(method_family = none)]
473        pub unsafe fn appendBezierPathWithOvalInRect(&self, rect: NSRect);
474
475        #[cfg(feature = "objc2-core-foundation")]
476        #[unsafe(method(appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:clockwise:))]
477        #[unsafe(method_family = none)]
478        pub unsafe fn appendBezierPathWithArcWithCenter_radius_startAngle_endAngle_clockwise(
479            &self,
480            center: NSPoint,
481            radius: CGFloat,
482            start_angle: CGFloat,
483            end_angle: CGFloat,
484            clockwise: bool,
485        );
486
487        #[cfg(feature = "objc2-core-foundation")]
488        #[unsafe(method(appendBezierPathWithArcWithCenter:radius:startAngle:endAngle:))]
489        #[unsafe(method_family = none)]
490        pub unsafe fn appendBezierPathWithArcWithCenter_radius_startAngle_endAngle(
491            &self,
492            center: NSPoint,
493            radius: CGFloat,
494            start_angle: CGFloat,
495            end_angle: CGFloat,
496        );
497
498        #[cfg(feature = "objc2-core-foundation")]
499        #[unsafe(method(appendBezierPathWithArcFromPoint:toPoint:radius:))]
500        #[unsafe(method_family = none)]
501        pub unsafe fn appendBezierPathWithArcFromPoint_toPoint_radius(
502            &self,
503            point1: NSPoint,
504            point2: NSPoint,
505            radius: CGFloat,
506        );
507
508        #[cfg(all(feature = "NSFont", feature = "objc2-core-graphics"))]
509        #[cfg(target_vendor = "apple")]
510        #[unsafe(method(appendBezierPathWithCGGlyph:inFont:))]
511        #[unsafe(method_family = none)]
512        pub unsafe fn appendBezierPathWithCGGlyph_inFont(&self, glyph: CGGlyph, font: &NSFont);
513
514        #[cfg(all(feature = "NSFont", feature = "objc2-core-graphics"))]
515        #[cfg(target_vendor = "apple")]
516        #[unsafe(method(appendBezierPathWithCGGlyphs:count:inFont:))]
517        #[unsafe(method_family = none)]
518        pub unsafe fn appendBezierPathWithCGGlyphs_count_inFont(
519            &self,
520            glyphs: NonNull<CGGlyph>,
521            count: NSInteger,
522            font: &NSFont,
523        );
524
525        #[cfg(feature = "objc2-core-foundation")]
526        #[unsafe(method(appendBezierPathWithRoundedRect:xRadius:yRadius:))]
527        #[unsafe(method_family = none)]
528        pub unsafe fn appendBezierPathWithRoundedRect_xRadius_yRadius(
529            &self,
530            rect: NSRect,
531            x_radius: CGFloat,
532            y_radius: CGFloat,
533        );
534
535        #[unsafe(method(containsPoint:))]
536        #[unsafe(method_family = none)]
537        pub unsafe fn containsPoint(&self, point: NSPoint) -> bool;
538    );
539}
540
541/// Methods declared on superclass `NSObject`.
542impl NSBezierPath {
543    extern_methods!(
544        #[unsafe(method(init))]
545        #[unsafe(method_family = init)]
546        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
547
548        #[unsafe(method(new))]
549        #[unsafe(method_family = new)]
550        pub unsafe fn new() -> Retained<Self>;
551    );
552}
553
554/// NSBezierPathDeprecated.
555impl NSBezierPath {
556    extern_methods!(
557        #[deprecated]
558        #[unsafe(method(cachesBezierPath))]
559        #[unsafe(method_family = none)]
560        pub unsafe fn cachesBezierPath(&self) -> bool;
561
562        #[deprecated]
563        #[unsafe(method(setCachesBezierPath:))]
564        #[unsafe(method_family = none)]
565        pub unsafe fn setCachesBezierPath(&self, flag: bool);
566
567        #[cfg(feature = "NSFont")]
568        #[deprecated = "Use -appendBezierPathWithCGGlyph:inFont: instead"]
569        #[unsafe(method(appendBezierPathWithGlyph:inFont:))]
570        #[unsafe(method_family = none)]
571        pub unsafe fn appendBezierPathWithGlyph_inFont(&self, glyph: NSGlyph, font: &NSFont);
572
573        #[cfg(feature = "NSFont")]
574        #[deprecated = "Use -appendBezierPathWithCGGlyphs:count:inFont: instead"]
575        #[unsafe(method(appendBezierPathWithGlyphs:count:inFont:))]
576        #[unsafe(method_family = none)]
577        pub unsafe fn appendBezierPathWithGlyphs_count_inFont(
578            &self,
579            glyphs: NonNull<NSGlyph>,
580            count: NSInteger,
581            font: &NSFont,
582        );
583
584        #[deprecated = "Use -appendBezierPathWithCGGlyphs:count:inFont: instead"]
585        #[unsafe(method(appendBezierPathWithPackedGlyphs:))]
586        #[unsafe(method_family = none)]
587        pub unsafe fn appendBezierPathWithPackedGlyphs(&self, packed_glyphs: NonNull<c_char>);
588    );
589}
590
591/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsbuttlinecapstyle?language=objc)
592pub static NSButtLineCapStyle: NSLineCapStyle = NSLineCapStyle(NSLineCapStyle::Butt.0);
593
594/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsroundlinecapstyle?language=objc)
595pub static NSRoundLineCapStyle: NSLineCapStyle = NSLineCapStyle(NSLineCapStyle::Round.0);
596
597/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nssquarelinecapstyle?language=objc)
598pub static NSSquareLineCapStyle: NSLineCapStyle = NSLineCapStyle(NSLineCapStyle::Square.0);
599
600/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsmiterlinejoinstyle?language=objc)
601pub static NSMiterLineJoinStyle: NSLineJoinStyle = NSLineJoinStyle(NSLineJoinStyle::Miter.0);
602
603/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsroundlinejoinstyle?language=objc)
604pub static NSRoundLineJoinStyle: NSLineJoinStyle = NSLineJoinStyle(NSLineJoinStyle::Round.0);
605
606/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsbevellinejoinstyle?language=objc)
607pub static NSBevelLineJoinStyle: NSLineJoinStyle = NSLineJoinStyle(NSLineJoinStyle::Bevel.0);
608
609/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsnonzerowindingrule?language=objc)
610pub static NSNonZeroWindingRule: NSWindingRule = NSWindingRule(NSWindingRule::NonZero.0);
611
612/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsevenoddwindingrule?language=objc)
613pub static NSEvenOddWindingRule: NSWindingRule = NSWindingRule(NSWindingRule::EvenOdd.0);
614
615/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsmovetobezierpathelement?language=objc)
616pub static NSMoveToBezierPathElement: NSBezierPathElement =
617    NSBezierPathElement(NSBezierPathElement::MoveTo.0);
618
619/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nslinetobezierpathelement?language=objc)
620pub static NSLineToBezierPathElement: NSBezierPathElement =
621    NSBezierPathElement(NSBezierPathElement::LineTo.0);
622
623/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nscurvetobezierpathelement?language=objc)
624pub static NSCurveToBezierPathElement: NSBezierPathElement =
625    NSBezierPathElement(NSBezierPathElement::CurveTo.0);
626
627/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsclosepathbezierpathelement?language=objc)
628pub static NSClosePathBezierPathElement: NSBezierPathElement =
629    NSBezierPathElement(NSBezierPathElement::ClosePath.0);