Struct objc2_app_kit::NSBezierPath
source · #[repr(C)]pub struct NSBezierPath { /* private fields */ }
Available on crate feature
NSBezierPath
only.Implementations§
source§impl NSBezierPath
impl NSBezierPath
pub unsafe fn bezierPath() -> Id<NSBezierPath>
pub unsafe fn bezierPathWithRect(rect: NSRect) -> Id<NSBezierPath>
pub unsafe fn bezierPathWithOvalInRect(rect: NSRect) -> Id<NSBezierPath>
pub unsafe fn bezierPathWithRoundedRect_xRadius_yRadius( rect: NSRect, x_radius: CGFloat, y_radius: CGFloat ) -> Id<NSBezierPath>
pub unsafe fn fillRect(rect: NSRect)
pub unsafe fn strokeRect(rect: NSRect)
pub unsafe fn clipRect(rect: NSRect)
pub unsafe fn strokeLineFromPoint_toPoint(point1: NSPoint, point2: NSPoint)
pub unsafe fn drawPackedGlyphs_atPoint( packed_glyphs: NonNull<c_char>, point: NSPoint )
pub unsafe fn defaultMiterLimit() -> CGFloat
pub unsafe fn setDefaultMiterLimit(default_miter_limit: CGFloat)
pub unsafe fn defaultFlatness() -> CGFloat
pub unsafe fn setDefaultFlatness(default_flatness: CGFloat)
pub unsafe fn defaultWindingRule() -> NSWindingRule
pub unsafe fn setDefaultWindingRule(default_winding_rule: NSWindingRule)
pub unsafe fn defaultLineCapStyle() -> NSLineCapStyle
pub unsafe fn setDefaultLineCapStyle(default_line_cap_style: NSLineCapStyle)
pub unsafe fn defaultLineJoinStyle() -> NSLineJoinStyle
pub unsafe fn setDefaultLineJoinStyle(default_line_join_style: NSLineJoinStyle)
pub unsafe fn defaultLineWidth() -> CGFloat
pub unsafe fn setDefaultLineWidth(default_line_width: CGFloat)
pub unsafe fn moveToPoint(&self, point: NSPoint)
pub unsafe fn lineToPoint(&self, point: NSPoint)
pub unsafe fn curveToPoint_controlPoint1_controlPoint2( &self, end_point: NSPoint, control_point1: NSPoint, control_point2: NSPoint )
pub unsafe fn curveToPoint_controlPoint( &self, end_point: NSPoint, control_point: NSPoint )
pub unsafe fn closePath(&self)
pub unsafe fn removeAllPoints(&self)
pub unsafe fn relativeMoveToPoint(&self, point: NSPoint)
pub unsafe fn relativeLineToPoint(&self, point: NSPoint)
pub unsafe fn relativeCurveToPoint_controlPoint1_controlPoint2( &self, end_point: NSPoint, control_point1: NSPoint, control_point2: NSPoint )
pub unsafe fn relativeCurveToPoint_controlPoint( &self, end_point: NSPoint, control_point: NSPoint )
pub unsafe fn lineWidth(&self) -> CGFloat
pub unsafe fn setLineWidth(&self, line_width: CGFloat)
pub unsafe fn lineCapStyle(&self) -> NSLineCapStyle
pub unsafe fn setLineCapStyle(&self, line_cap_style: NSLineCapStyle)
pub unsafe fn lineJoinStyle(&self) -> NSLineJoinStyle
pub unsafe fn setLineJoinStyle(&self, line_join_style: NSLineJoinStyle)
pub unsafe fn windingRule(&self) -> NSWindingRule
pub unsafe fn setWindingRule(&self, winding_rule: NSWindingRule)
pub unsafe fn miterLimit(&self) -> CGFloat
pub unsafe fn setMiterLimit(&self, miter_limit: CGFloat)
pub unsafe fn flatness(&self) -> CGFloat
pub unsafe fn setFlatness(&self, flatness: CGFloat)
pub unsafe fn getLineDash_count_phase( &self, pattern: *mut CGFloat, count: *mut NSInteger, phase: *mut CGFloat )
pub unsafe fn setLineDash_count_phase( &self, pattern: *mut CGFloat, count: NSInteger, phase: CGFloat )
pub unsafe fn stroke(&self)
pub unsafe fn fill(&self)
pub unsafe fn addClip(&self)
pub unsafe fn setClip(&self)
pub unsafe fn bezierPathByFlatteningPath(&self) -> Id<NSBezierPath>
pub unsafe fn bezierPathByReversingPath(&self) -> Id<NSBezierPath>
pub unsafe fn transformUsingAffineTransform( &self, transform: &NSAffineTransform )
pub unsafe fn isEmpty(&self) -> bool
pub unsafe fn currentPoint(&self) -> NSPoint
pub unsafe fn controlPointBounds(&self) -> NSRect
pub unsafe fn bounds(&self) -> NSRect
pub unsafe fn elementCount(&self) -> NSInteger
pub unsafe fn elementAtIndex_associatedPoints( &self, index: NSInteger, points: NSPointArray ) -> NSBezierPathElement
pub unsafe fn elementAtIndex(&self, index: NSInteger) -> NSBezierPathElement
pub unsafe fn setAssociatedPoints_atIndex( &self, points: NSPointArray, index: NSInteger )
pub unsafe fn appendBezierPath(&self, path: &NSBezierPath)
pub unsafe fn appendBezierPathWithRect(&self, rect: NSRect)
pub unsafe fn appendBezierPathWithPoints_count( &self, points: NSPointArray, count: NSInteger )
pub unsafe fn appendBezierPathWithOvalInRect(&self, rect: NSRect)
pub unsafe fn appendBezierPathWithArcWithCenter_radius_startAngle_endAngle_clockwise( &self, center: NSPoint, radius: CGFloat, start_angle: CGFloat, end_angle: CGFloat, clockwise: bool )
pub unsafe fn appendBezierPathWithArcWithCenter_radius_startAngle_endAngle( &self, center: NSPoint, radius: CGFloat, start_angle: CGFloat, end_angle: CGFloat )
pub unsafe fn appendBezierPathWithArcFromPoint_toPoint_radius( &self, point1: NSPoint, point2: NSPoint, radius: CGFloat )
pub unsafe fn appendBezierPathWithRoundedRect_xRadius_yRadius( &self, rect: NSRect, x_radius: CGFloat, y_radius: CGFloat )
pub unsafe fn containsPoint(&self, point: NSPoint) -> bool
source§impl NSBezierPath
impl NSBezierPath
Methods declared on superclass NSObject
source§impl NSBezierPath
impl NSBezierPath
NSBezierPathDeprecated
pub unsafe fn cachesBezierPath(&self) -> bool
👎Deprecated
pub unsafe fn setCachesBezierPath(&self, flag: bool)
👎Deprecated
pub unsafe fn appendBezierPathWithGlyph_inFont( &self, glyph: NSGlyph, font: &NSFont )
👎Deprecated: Use -appendBezierPathWithCGGlyph:inFont: instead
Available on crate feature
NSFont
only.pub unsafe fn appendBezierPathWithGlyphs_count_inFont( &self, glyphs: NonNull<NSGlyph>, count: NSInteger, font: &NSFont )
👎Deprecated: Use -appendBezierPathWithCGGlyphs:count:inFont: instead
Available on crate feature
NSFont
only.pub unsafe fn appendBezierPathWithPackedGlyphs( &self, packed_glyphs: NonNull<c_char> )
👎Deprecated: Use -appendBezierPathWithCGGlyphs:count:inFont: instead
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature NSAccessibilityConstants
only.
pub fn class(&self) -> &'static AnyClass
NSAccessibilityConstants
only.Dynamically find the class of this object.
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.NSAccessibilityConstants
only.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.NSAccessibilityConstants
only.Use Ivar::load_mut
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementations§
source§impl AsMut<AnyObject> for NSBezierPath
impl AsMut<AnyObject> for NSBezierPath
source§impl AsMut<NSBezierPath> for NSBezierPath
impl AsMut<NSBezierPath> for NSBezierPath
source§impl AsMut<NSObject> for NSBezierPath
impl AsMut<NSObject> for NSBezierPath
source§impl AsRef<AnyObject> for NSBezierPath
impl AsRef<AnyObject> for NSBezierPath
source§impl AsRef<NSBezierPath> for NSBezierPath
impl AsRef<NSBezierPath> for NSBezierPath
source§impl AsRef<NSObject> for NSBezierPath
impl AsRef<NSObject> for NSBezierPath
source§impl Borrow<AnyObject> for NSBezierPath
impl Borrow<AnyObject> for NSBezierPath
source§impl Borrow<NSObject> for NSBezierPath
impl Borrow<NSObject> for NSBezierPath
source§impl BorrowMut<AnyObject> for NSBezierPath
impl BorrowMut<AnyObject> for NSBezierPath
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for NSBezierPath
impl BorrowMut<NSObject> for NSBezierPath
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl ClassType for NSBezierPath
impl ClassType for NSBezierPath
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSBezierPath"
const NAME: &'static str = "NSBezierPath"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for NSBezierPath
impl Debug for NSBezierPath
source§impl Deref for NSBezierPath
impl Deref for NSBezierPath
source§impl DerefMut for NSBezierPath
impl DerefMut for NSBezierPath
source§impl Hash for NSBezierPath
impl Hash for NSBezierPath
source§impl NSCoding for NSBezierPath
impl NSCoding for NSBezierPath
source§impl NSCopying for NSBezierPath
impl NSCopying for NSBezierPath
source§impl NSObjectProtocol for NSBezierPath
impl NSObjectProtocol for NSBezierPath
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Id<NSObject>
fn debugDescription(&self) -> Id<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl NSSecureCoding for NSBezierPath
impl NSSecureCoding for NSBezierPath
source§impl PartialEq for NSBezierPath
impl PartialEq for NSBezierPath
source§fn eq(&self, other: &NSBezierPath) -> bool
fn eq(&self, other: &NSBezierPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSBezierPath
impl RefEncode for NSBezierPath
source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSBezierPath
impl Message for NSBezierPath
impl StructuralPartialEq for NSBezierPath
Auto Trait Implementations§
impl !Freeze for NSBezierPath
impl !RefUnwindSafe for NSBezierPath
impl !Send for NSBezierPath
impl !Sync for NSBezierPath
impl !Unpin for NSBezierPath
impl !UnwindSafe for NSBezierPath
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more