NSValueUIGeometryExtensions

Trait NSValueUIGeometryExtensions 

Source
pub unsafe trait NSValueUIGeometryExtensions:
    ClassType
    + Sized
    + Sealed {
Show 16 methods // Provided methods unsafe fn valueWithCGPoint(point: CGPoint) -> Retained<NSValue> { ... } unsafe fn valueWithCGVector(vector: CGVector) -> Retained<NSValue> { ... } unsafe fn valueWithCGSize(size: CGSize) -> Retained<NSValue> { ... } unsafe fn valueWithCGRect(rect: CGRect) -> Retained<NSValue> { ... } unsafe fn valueWithCGAffineTransform( transform: CGAffineTransform, ) -> Retained<NSValue> { ... } unsafe fn valueWithUIEdgeInsets(insets: UIEdgeInsets) -> Retained<NSValue> { ... } unsafe fn valueWithDirectionalEdgeInsets( insets: NSDirectionalEdgeInsets, ) -> Retained<NSValue> { ... } unsafe fn valueWithUIOffset(insets: UIOffset) -> Retained<NSValue> { ... } unsafe fn CGPointValue(&self) -> CGPoint { ... } unsafe fn CGVectorValue(&self) -> CGVector { ... } unsafe fn CGSizeValue(&self) -> CGSize { ... } unsafe fn CGRectValue(&self) -> CGRect { ... } unsafe fn CGAffineTransformValue(&self) -> CGAffineTransform { ... } unsafe fn UIEdgeInsetsValue(&self) -> UIEdgeInsets { ... } unsafe fn directionalEdgeInsetsValue(&self) -> NSDirectionalEdgeInsets { ... } unsafe fn UIOffsetValue(&self) -> UIOffset { ... }
}
Available on crate feature UIGeometry only.
Expand description

Category on NSValue.

Provided Methods§

Source

unsafe fn valueWithCGPoint(point: CGPoint) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithCGVector(vector: CGVector) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithCGSize(size: CGSize) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithCGRect(rect: CGRect) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithCGAffineTransform( transform: CGAffineTransform, ) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithUIEdgeInsets(insets: UIEdgeInsets) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithDirectionalEdgeInsets( insets: NSDirectionalEdgeInsets, ) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn valueWithUIOffset(insets: UIOffset) -> Retained<NSValue>

Available on crate feature objc2-core-foundation only.
Source

unsafe fn CGPointValue(&self) -> CGPoint

Available on crate feature objc2-core-foundation only.
Source

unsafe fn CGVectorValue(&self) -> CGVector

Available on crate feature objc2-core-foundation only.
Source

unsafe fn CGSizeValue(&self) -> CGSize

Available on crate feature objc2-core-foundation only.
Source

unsafe fn CGRectValue(&self) -> CGRect

Available on crate feature objc2-core-foundation only.
Source

unsafe fn CGAffineTransformValue(&self) -> CGAffineTransform

Available on crate feature objc2-core-foundation only.
Source

unsafe fn UIEdgeInsetsValue(&self) -> UIEdgeInsets

Available on crate feature objc2-core-foundation only.
Source

unsafe fn directionalEdgeInsetsValue(&self) -> NSDirectionalEdgeInsets

Available on crate feature objc2-core-foundation only.
Source

unsafe fn UIOffsetValue(&self) -> UIOffset

Available on crate feature objc2-core-foundation only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSValueUIGeometryExtensions for NSValue

Implementors§