Struct objc2_app_kit::NSLayoutManager

source ·
#[repr(C)]
pub struct NSLayoutManager { /* private fields */ }
Available on crate feature NSLayoutManager only.

Implementations§

source§

impl NSLayoutManager

source

pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>

source

pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>

source

pub unsafe fn textStorage(&self) -> Option<Retained<NSTextStorage>>

Available on crate feature NSTextStorage only.
source

pub unsafe fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)

Available on crate feature NSTextStorage only.
source

pub unsafe fn replaceTextStorage(&self, new_text_storage: &NSTextStorage)

Available on crate feature NSTextStorage only.
source

pub unsafe fn textContainers(&self) -> Retained<NSArray<NSTextContainer>>

Available on crate feature NSTextContainer only.
source

pub unsafe fn addTextContainer(&self, container: &NSTextContainer)

Available on crate feature NSTextContainer only.
source

pub unsafe fn insertTextContainer_atIndex( &self, container: &NSTextContainer, index: NSUInteger )

Available on crate feature NSTextContainer only.
source

pub unsafe fn removeTextContainerAtIndex(&self, index: NSUInteger)

source

pub unsafe fn textContainerChangedGeometry(&self, container: &NSTextContainer)

Available on crate feature NSTextContainer only.
source

pub unsafe fn textContainerChangedTextView(&self, container: &NSTextContainer)

Available on crate feature NSTextContainer only.
source

pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn NSLayoutManagerDelegate>>>

source

pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn NSLayoutManagerDelegate>> )

source

pub unsafe fn showsInvisibleCharacters(&self) -> bool

source

pub unsafe fn setShowsInvisibleCharacters( &self, shows_invisible_characters: bool )

source

pub unsafe fn showsControlCharacters(&self) -> bool

source

pub unsafe fn setShowsControlCharacters(&self, shows_control_characters: bool)

source

pub unsafe fn usesDefaultHyphenation(&self) -> bool

source

pub unsafe fn setUsesDefaultHyphenation(&self, uses_default_hyphenation: bool)

source

pub unsafe fn usesFontLeading(&self) -> bool

source

pub unsafe fn setUsesFontLeading(&self, uses_font_leading: bool)

source

pub unsafe fn allowsNonContiguousLayout(&self) -> bool

source

pub unsafe fn setAllowsNonContiguousLayout( &self, allows_non_contiguous_layout: bool )

source

pub unsafe fn hasNonContiguousLayout(&self) -> bool

source

pub unsafe fn limitsLayoutForSuspiciousContents(&self) -> bool

source

pub unsafe fn setLimitsLayoutForSuspiciousContents( &self, limits_layout_for_suspicious_contents: bool )

source

pub unsafe fn backgroundLayoutEnabled(&self) -> bool

source

pub unsafe fn setBackgroundLayoutEnabled(&self, background_layout_enabled: bool)

source

pub unsafe fn defaultAttachmentScaling(&self) -> NSImageScaling

Available on crate feature NSCell only.
source

pub unsafe fn setDefaultAttachmentScaling( &self, default_attachment_scaling: NSImageScaling )

Available on crate feature NSCell only.
source

pub unsafe fn typesetter(&self) -> Retained<NSTypesetter>

Available on crate feature NSTypesetter only.
source

pub unsafe fn setTypesetter(&self, typesetter: &NSTypesetter)

Available on crate feature NSTypesetter only.
source

pub unsafe fn typesetterBehavior(&self) -> NSTypesetterBehavior

source

pub unsafe fn setTypesetterBehavior( &self, typesetter_behavior: NSTypesetterBehavior )

source

pub unsafe fn invalidateGlyphsForCharacterRange_changeInLength_actualCharacterRange( &self, char_range: NSRange, delta: NSInteger, actual_char_range: NSRangePointer )

source

pub unsafe fn invalidateLayoutForCharacterRange_actualCharacterRange( &self, char_range: NSRange, actual_char_range: NSRangePointer )

source

pub unsafe fn invalidateDisplayForCharacterRange(&self, char_range: NSRange)

source

pub unsafe fn invalidateDisplayForGlyphRange(&self, glyph_range: NSRange)

source

pub unsafe fn processEditingForTextStorage_edited_range_changeInLength_invalidatedRange( &self, text_storage: &NSTextStorage, edit_mask: NSTextStorageEditActions, new_char_range: NSRange, delta: NSInteger, invalidated_char_range: NSRange )

Available on crate feature NSTextStorage only.
source

pub unsafe fn ensureGlyphsForCharacterRange(&self, char_range: NSRange)

source

pub unsafe fn ensureGlyphsForGlyphRange(&self, glyph_range: NSRange)

source

pub unsafe fn ensureLayoutForCharacterRange(&self, char_range: NSRange)

source

pub unsafe fn ensureLayoutForGlyphRange(&self, glyph_range: NSRange)

source

pub unsafe fn ensureLayoutForTextContainer(&self, container: &NSTextContainer)

Available on crate feature NSTextContainer only.
source

pub unsafe fn ensureLayoutForBoundingRect_inTextContainer( &self, bounds: NSRect, container: &NSTextContainer )

Available on crate feature NSTextContainer only.
source

pub unsafe fn numberOfGlyphs(&self) -> NSUInteger

source

pub unsafe fn isValidGlyphIndex(&self, glyph_index: NSUInteger) -> bool

source

pub unsafe fn propertyForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> NSGlyphProperty

source

pub unsafe fn characterIndexForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> NSUInteger

source

pub unsafe fn glyphIndexForCharacterAtIndex( &self, char_index: NSUInteger ) -> NSUInteger

source

pub unsafe fn setTextContainer_forGlyphRange( &self, container: &NSTextContainer, glyph_range: NSRange )

Available on crate feature NSTextContainer only.
source

pub unsafe fn setLineFragmentRect_forGlyphRange_usedRect( &self, fragment_rect: NSRect, glyph_range: NSRange, used_rect: NSRect )

source

pub unsafe fn setExtraLineFragmentRect_usedRect_textContainer( &self, fragment_rect: NSRect, used_rect: NSRect, container: &NSTextContainer )

Available on crate feature NSTextContainer only.
source

pub unsafe fn setLocation_forStartOfGlyphRange( &self, location: NSPoint, glyph_range: NSRange )

source

pub unsafe fn setNotShownAttribute_forGlyphAtIndex( &self, flag: bool, glyph_index: NSUInteger )

source

pub unsafe fn setDrawsOutsideLineFragment_forGlyphAtIndex( &self, flag: bool, glyph_index: NSUInteger )

source

pub unsafe fn setAttachmentSize_forGlyphRange( &self, attachment_size: NSSize, glyph_range: NSRange )

source

pub unsafe fn getFirstUnlaidCharacterIndex_glyphIndex( &self, char_index: *mut NSUInteger, glyph_index: *mut NSUInteger )

source

pub unsafe fn firstUnlaidCharacterIndex(&self) -> NSUInteger

source

pub unsafe fn firstUnlaidGlyphIndex(&self) -> NSUInteger

source

pub unsafe fn textContainerForGlyphAtIndex_effectiveRange( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> Option<Retained<NSTextContainer>>

Available on crate feature NSTextContainer only.
source

pub unsafe fn textContainerForGlyphAtIndex_effectiveRange_withoutAdditionalLayout( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer, flag: bool ) -> Option<Retained<NSTextContainer>>

Available on crate feature NSTextContainer only.
source

pub unsafe fn usedRectForTextContainer( &self, container: &NSTextContainer ) -> NSRect

Available on crate feature NSTextContainer only.
source

pub unsafe fn lineFragmentRectForGlyphAtIndex_effectiveRange( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> NSRect

source

pub unsafe fn lineFragmentRectForGlyphAtIndex_effectiveRange_withoutAdditionalLayout( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer, flag: bool ) -> NSRect

source

pub unsafe fn lineFragmentUsedRectForGlyphAtIndex_effectiveRange( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> NSRect

source

pub unsafe fn lineFragmentUsedRectForGlyphAtIndex_effectiveRange_withoutAdditionalLayout( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer, flag: bool ) -> NSRect

source

pub unsafe fn extraLineFragmentRect(&self) -> NSRect

source

pub unsafe fn extraLineFragmentUsedRect(&self) -> NSRect

source

pub unsafe fn extraLineFragmentTextContainer( &self ) -> Option<Retained<NSTextContainer>>

Available on crate feature NSTextContainer only.
source

pub unsafe fn locationForGlyphAtIndex(&self, glyph_index: NSUInteger) -> NSPoint

source

pub unsafe fn notShownAttributeForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> bool

source

pub unsafe fn drawsOutsideLineFragmentForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> bool

source

pub unsafe fn attachmentSizeForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> NSSize

source

pub unsafe fn truncatedGlyphRangeInLineFragmentForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> NSRange

source

pub unsafe fn glyphRangeForCharacterRange_actualCharacterRange( &self, char_range: NSRange, actual_char_range: NSRangePointer ) -> NSRange

source

pub unsafe fn characterRangeForGlyphRange_actualGlyphRange( &self, glyph_range: NSRange, actual_glyph_range: NSRangePointer ) -> NSRange

source

pub unsafe fn glyphRangeForTextContainer( &self, container: &NSTextContainer ) -> NSRange

Available on crate feature NSTextContainer only.
source

pub unsafe fn rangeOfNominallySpacedGlyphsContainingIndex( &self, glyph_index: NSUInteger ) -> NSRange

source

pub unsafe fn boundingRectForGlyphRange_inTextContainer( &self, glyph_range: NSRange, container: &NSTextContainer ) -> NSRect

Available on crate feature NSTextContainer only.
source

pub unsafe fn glyphRangeForBoundingRect_inTextContainer( &self, bounds: NSRect, container: &NSTextContainer ) -> NSRange

Available on crate feature NSTextContainer only.
source

pub unsafe fn glyphRangeForBoundingRectWithoutAdditionalLayout_inTextContainer( &self, bounds: NSRect, container: &NSTextContainer ) -> NSRange

Available on crate feature NSTextContainer only.
source

pub unsafe fn glyphIndexForPoint_inTextContainer( &self, point: NSPoint, container: &NSTextContainer ) -> NSUInteger

Available on crate feature NSTextContainer only.
source

pub unsafe fn fractionOfDistanceThroughGlyphForPoint_inTextContainer( &self, point: NSPoint, container: &NSTextContainer ) -> CGFloat

Available on crate feature NSTextContainer only.
source

pub unsafe fn characterIndexForPoint_inTextContainer_fractionOfDistanceBetweenInsertionPoints( &self, point: NSPoint, container: &NSTextContainer, partial_fraction: *mut CGFloat ) -> NSUInteger

Available on crate feature NSTextContainer only.
source

pub unsafe fn getLineFragmentInsertionPointsForCharacterAtIndex_alternatePositions_inDisplayOrder_positions_characterIndexes( &self, char_index: NSUInteger, a_flag: bool, d_flag: bool, positions: *mut CGFloat, char_indexes: *mut NSUInteger ) -> NSUInteger

source

pub unsafe fn enumerateLineFragmentsForGlyphRange_usingBlock( &self, glyph_range: NSRange, block: &Block<dyn Fn(NSRect, NSRect, NonNull<NSTextContainer>, NSRange, NonNull<Bool>)> )

Available on crate features NSTextContainer and block2 only.
source

pub unsafe fn enumerateEnclosingRectsForGlyphRange_withinSelectedGlyphRange_inTextContainer_usingBlock( &self, glyph_range: NSRange, selected_range: NSRange, text_container: &NSTextContainer, block: &Block<dyn Fn(NSRect, NonNull<Bool>)> )

Available on crate features NSTextContainer and block2 only.
source

pub unsafe fn drawBackgroundForGlyphRange_atPoint( &self, glyphs_to_show: NSRange, origin: NSPoint )

source

pub unsafe fn drawGlyphsForGlyphRange_atPoint( &self, glyphs_to_show: NSRange, origin: NSPoint )

source

pub unsafe fn fillBackgroundRectArray_count_forCharacterRange_color( &self, rect_array: NonNull<NSRect>, rect_count: NSUInteger, char_range: NSRange, color: &NSColor )

Available on crate feature NSColor only.
source

pub unsafe fn drawUnderlineForGlyphRange_underlineType_baselineOffset_lineFragmentRect_lineFragmentGlyphRange_containerOrigin( &self, glyph_range: NSRange, underline_val: NSUnderlineStyle, baseline_offset: CGFloat, line_rect: NSRect, line_glyph_range: NSRange, container_origin: NSPoint )

Available on crate feature NSAttributedString only.
source

pub unsafe fn underlineGlyphRange_underlineType_lineFragmentRect_lineFragmentGlyphRange_containerOrigin( &self, glyph_range: NSRange, underline_val: NSUnderlineStyle, line_rect: NSRect, line_glyph_range: NSRange, container_origin: NSPoint )

Available on crate feature NSAttributedString only.
source

pub unsafe fn drawStrikethroughForGlyphRange_strikethroughType_baselineOffset_lineFragmentRect_lineFragmentGlyphRange_containerOrigin( &self, glyph_range: NSRange, strikethrough_val: NSUnderlineStyle, baseline_offset: CGFloat, line_rect: NSRect, line_glyph_range: NSRange, container_origin: NSPoint )

Available on crate feature NSAttributedString only.
source

pub unsafe fn strikethroughGlyphRange_strikethroughType_lineFragmentRect_lineFragmentGlyphRange_containerOrigin( &self, glyph_range: NSRange, strikethrough_val: NSUnderlineStyle, line_rect: NSRect, line_glyph_range: NSRange, container_origin: NSPoint )

Available on crate feature NSAttributedString only.
source

pub unsafe fn showAttachmentCell_inRect_characterIndex( &self, cell: &NSCell, rect: NSRect, attachment_index: NSUInteger )

Available on crate feature NSCell only.
source

pub unsafe fn setLayoutRect_forTextBlock_glyphRange( &self, rect: NSRect, block: &NSTextBlock, glyph_range: NSRange )

Available on crate feature NSTextTable only.
source

pub unsafe fn setBoundsRect_forTextBlock_glyphRange( &self, rect: NSRect, block: &NSTextBlock, glyph_range: NSRange )

Available on crate feature NSTextTable only.
source

pub unsafe fn layoutRectForTextBlock_glyphRange( &self, block: &NSTextBlock, glyph_range: NSRange ) -> NSRect

Available on crate feature NSTextTable only.
source

pub unsafe fn boundsRectForTextBlock_glyphRange( &self, block: &NSTextBlock, glyph_range: NSRange ) -> NSRect

Available on crate feature NSTextTable only.
source

pub unsafe fn layoutRectForTextBlock_atIndex_effectiveRange( &self, block: &NSTextBlock, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> NSRect

Available on crate feature NSTextTable only.
source

pub unsafe fn boundsRectForTextBlock_atIndex_effectiveRange( &self, block: &NSTextBlock, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> NSRect

Available on crate feature NSTextTable only.
source

pub unsafe fn temporaryAttributesAtCharacterIndex_effectiveRange( &self, char_index: NSUInteger, effective_char_range: NSRangePointer ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>

source

pub unsafe fn setTemporaryAttributes_forCharacterRange( &self, attrs: &NSDictionary<NSAttributedStringKey, AnyObject>, char_range: NSRange )

source

pub unsafe fn addTemporaryAttributes_forCharacterRange( &self, attrs: &NSDictionary<NSAttributedStringKey, AnyObject>, char_range: NSRange )

source

pub unsafe fn removeTemporaryAttribute_forCharacterRange( &self, attr_name: &NSAttributedStringKey, char_range: NSRange )

source

pub unsafe fn temporaryAttribute_atCharacterIndex_effectiveRange( &self, attr_name: &NSAttributedStringKey, location: NSUInteger, range: NSRangePointer ) -> Option<Retained<AnyObject>>

source

pub unsafe fn temporaryAttribute_atCharacterIndex_longestEffectiveRange_inRange( &self, attr_name: &NSAttributedStringKey, location: NSUInteger, range: NSRangePointer, range_limit: NSRange ) -> Option<Retained<AnyObject>>

source

pub unsafe fn temporaryAttributesAtCharacterIndex_longestEffectiveRange_inRange( &self, location: NSUInteger, range: NSRangePointer, range_limit: NSRange ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>

source

pub unsafe fn addTemporaryAttribute_value_forCharacterRange( &self, attr_name: &NSAttributedStringKey, value: &AnyObject, char_range: NSRange )

source

pub unsafe fn defaultLineHeightForFont(&self, the_font: &NSFont) -> CGFloat

Available on crate feature NSFont only.
source

pub unsafe fn defaultBaselineOffsetForFont(&self, the_font: &NSFont) -> CGFloat

Available on crate feature NSFont only.
source§

impl NSLayoutManager

Methods declared on superclass NSObject

source

pub unsafe fn new() -> Retained<Self>

source§

impl NSLayoutManager

NSTextViewSupport

source

pub unsafe fn rulerMarkersForTextView_paragraphStyle_ruler( &self, view: &NSTextView, style: &NSParagraphStyle, ruler: &NSRulerView ) -> Retained<NSArray<NSRulerMarker>>

Available on crate features NSParagraphStyle and NSResponder and NSRulerMarker and NSRulerView and NSText and NSTextView and NSView only.
source

pub unsafe fn rulerAccessoryViewForTextView_paragraphStyle_ruler_enabled( &self, view: &NSTextView, style: &NSParagraphStyle, ruler: &NSRulerView, is_enabled: bool ) -> Option<Retained<NSView>>

Available on crate features NSParagraphStyle and NSResponder and NSRulerView and NSText and NSTextView and NSView only.
source

pub unsafe fn layoutManagerOwnsFirstResponderInWindow( &self, window: &NSWindow ) -> bool

Available on crate features NSResponder and NSWindow only.
source

pub unsafe fn firstTextView( &self, mtm: MainThreadMarker ) -> Option<Retained<NSTextView>>

Available on crate features NSResponder and NSText and NSTextView and NSView only.
source

pub unsafe fn textViewForBeginningOfSelection( &self, mtm: MainThreadMarker ) -> Option<Retained<NSTextView>>

Available on crate features NSResponder and NSText and NSTextView and NSView only.
source§

impl NSLayoutManager

NSLayoutManagerDeprecated

source

pub unsafe fn glyphAtIndex_isValidIndex( &self, glyph_index: NSUInteger, is_valid_index: *mut Bool ) -> NSGlyph

Available on crate feature NSFont only.
source

pub unsafe fn glyphAtIndex(&self, glyph_index: NSUInteger) -> NSGlyph

Available on crate feature NSFont only.
source

pub unsafe fn rectArrayForCharacterRange_withinSelectedCharacterRange_inTextContainer_rectCount( &self, char_range: NSRange, sel_char_range: NSRange, container: &NSTextContainer, rect_count: NonNull<NSUInteger> ) -> NSRectArray

Available on crate feature NSTextContainer only.
source

pub unsafe fn rectArrayForGlyphRange_withinSelectedGlyphRange_inTextContainer_rectCount( &self, glyph_range: NSRange, sel_glyph_range: NSRange, container: &NSTextContainer, rect_count: NonNull<NSUInteger> ) -> NSRectArray

Available on crate feature NSTextContainer only.
source

pub unsafe fn usesScreenFonts(&self) -> bool

👎Deprecated
source

pub unsafe fn setUsesScreenFonts(&self, uses_screen_fonts: bool)

👎Deprecated
source

pub unsafe fn substituteFontForFont( &self, original_font: &NSFont ) -> Retained<NSFont>

👎Deprecated
Available on crate feature NSFont only.
source

pub unsafe fn insertGlyphs_length_forStartingGlyphAtIndex_characterIndex( &self, glyphs: NonNull<NSGlyph>, length: NSUInteger, glyph_index: NSUInteger, char_index: NSUInteger )

👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
Available on crate feature NSFont only.
source

pub unsafe fn insertGlyph_atGlyphIndex_characterIndex( &self, glyph: NSGlyph, glyph_index: NSUInteger, char_index: NSUInteger )

👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
Available on crate feature NSFont only.
source

pub unsafe fn replaceGlyphAtIndex_withGlyph( &self, glyph_index: NSUInteger, new_glyph: NSGlyph )

👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
Available on crate feature NSFont only.
source

pub unsafe fn deleteGlyphsInRange(&self, glyph_range: NSRange)

👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
source

pub unsafe fn setCharacterIndex_forGlyphAtIndex( &self, char_index: NSUInteger, glyph_index: NSUInteger )

👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
source

pub unsafe fn setIntAttribute_value_forGlyphAtIndex( &self, attribute_tag: NSInteger, val: NSInteger, glyph_index: NSUInteger )

👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
source

pub unsafe fn invalidateGlyphsOnLayoutInvalidationForGlyphRange( &self, glyph_range: NSRange )

👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
source

pub unsafe fn intAttribute_forGlyphAtIndex( &self, attribute_tag: NSInteger, glyph_index: NSUInteger ) -> NSInteger

👎Deprecated: Use -getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels: instead
source

pub unsafe fn getGlyphsInRange_glyphs_characterIndexes_glyphInscriptions_elasticBits( &self, glyph_range: NSRange, glyph_buffer: *mut NSGlyph, char_index_buffer: *mut NSUInteger, inscribe_buffer: *mut NSGlyphInscription, elastic_buffer: *mut Bool ) -> NSUInteger

👎Deprecated: Use -getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels: instead
Available on crate feature NSFont only.
source

pub unsafe fn getGlyphsInRange_glyphs_characterIndexes_glyphInscriptions_elasticBits_bidiLevels( &self, glyph_range: NSRange, glyph_buffer: *mut NSGlyph, char_index_buffer: *mut NSUInteger, inscribe_buffer: *mut NSGlyphInscription, elastic_buffer: *mut Bool, bidi_level_buffer: *mut c_uchar ) -> NSUInteger

👎Deprecated: Use -getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels: instead
Available on crate feature NSFont only.
source

pub unsafe fn getGlyphs_range( &self, glyph_array: *mut NSGlyph, glyph_range: NSRange ) -> NSUInteger

👎Deprecated: Use -getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels: instead
Available on crate feature NSFont only.
source

pub unsafe fn invalidateLayoutForCharacterRange_isSoft_actualCharacterRange( &self, char_range: NSRange, flag: bool, actual_char_range: NSRangePointer )

👎Deprecated: Use -invalidateLayoutForCharacterRange:actualCharacterRange: instead
source

pub unsafe fn textStorage_edited_range_changeInLength_invalidatedRange( &self, str: &NSTextStorage, edited_mask: NSTextStorageEditedOptions, new_char_range: NSRange, delta: NSInteger, invalidated_char_range: NSRange )

👎Deprecated: Use -processEditingForTextStorage:edited:range:changeInLength:invalidatedRange: instead
Available on crate feature NSTextStorage only.
source

pub unsafe fn setLocations_startingGlyphIndexes_count_forGlyphRange( &self, locations: NSPointArray, glyph_indexes: NonNull<NSUInteger>, count: NSUInteger, glyph_range: NSRange )

👎Deprecated: Use -setLocation:forStartOfGlyphRange: instead
source

pub unsafe fn showPackedGlyphs_length_glyphRange_atPoint_font_color_printingAdjustment( &self, glyphs: NonNull<c_char>, glyph_len: NSUInteger, glyph_range: NSRange, point: NSPoint, font: &NSFont, color: &NSColor, printing_adjustment: NSSize )

👎Deprecated: Use -showCGGlyphs:positions:count:font:matrix:attributes:inContext: instead
Available on crate features NSColor and NSFont only.
source

pub unsafe fn hyphenationFactor(&self) -> c_float

👎Deprecated: Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead.
source

pub unsafe fn setHyphenationFactor(&self, hyphenation_factor: c_float)

👎Deprecated: Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead.
source§

impl NSLayoutManager

NSGlyphGeneration

source

pub unsafe fn glyphGenerator(&self) -> Retained<NSGlyphGenerator>

Available on crate feature NSGlyphGenerator only.
source

pub unsafe fn setGlyphGenerator(&self, glyph_generator: &NSGlyphGenerator)

Available on crate feature NSGlyphGenerator only.

Methods from Deref<Target = NSObject>§

source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

source

pub fn class(&self) -> &'static AnyClass

Available on crate feature 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());
source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
Available on crate feature 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.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.
Available on crate feature 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 NSLayoutManager

source§

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSLayoutManager> for NSLayoutManager

source§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSObject> for NSLayoutManager

source§

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<AnyObject> for NSLayoutManager

source§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<NSLayoutManager> for NSLayoutManager

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<NSObject> for NSLayoutManager

source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<AnyObject> for NSLayoutManager

source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<NSObject> for NSLayoutManager

source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<AnyObject> for NSLayoutManager

source§

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<NSObject> for NSLayoutManager

source§

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
source§

impl ClassType for NSLayoutManager

§

type Super = NSObject

The superclass of this class. Read more
§

type Mutability = InteriorMutable

Whether the type is mutable or immutable. Read more
source§

const NAME: &'static str = "NSLayoutManager"

The name of the Objective-C class that this type represents. Read more
source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
source§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
source§

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
source§

fn retain(&self) -> Retained<Self>
where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
source§

fn alloc() -> Allocated<Self>

Allocate a new instance of the class. Read more
source§

impl Debug for NSLayoutManager

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for NSLayoutManager

§

type Target = NSObject

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for NSLayoutManager

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Hash for NSLayoutManager

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl NSCoding for NSLayoutManager

source§

unsafe fn encodeWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

impl NSGlyphStorage for NSLayoutManager

Available on crate feature NSGlyphGenerator only.
source§

unsafe fn insertGlyphs_length_forStartingGlyphAtIndex_characterIndex( &self, glyphs: NonNull<NSGlyph>, length: NSUInteger, glyph_index: NSUInteger, char_index: NSUInteger )
where Self: Sized + Message,

Available on crate feature NSFont only.
source§

unsafe fn setIntAttribute_value_forGlyphAtIndex( &self, attribute_tag: NSInteger, val: NSInteger, glyph_index: NSUInteger )
where Self: Sized + Message,

source§

unsafe fn attributedString(&self) -> Retained<NSAttributedString>
where Self: Sized + Message,

source§

unsafe fn layoutOptions(&self) -> NSUInteger
where Self: Sized + Message,

source§

impl NSObjectProtocol for NSLayoutManager

source§

fn isEqual(&self, other: &AnyObject) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
source§

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
source§

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

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
where T: ClassType, Self: Sized + Message,

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
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
source§

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
source§

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
source§

fn description(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object. Read more
source§

fn debugDescription(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging. Read more
source§

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
source§

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
source§

impl NSSecureCoding for NSLayoutManager

source§

unsafe fn supportsSecureCoding() -> bool
where Self: Sized + ClassType,

source§

impl PartialEq for NSLayoutManager

source§

fn eq(&self, other: &NSLayoutManager) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RefEncode for NSLayoutManager

source§

const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
source§

impl Eq for NSLayoutManager

source§

impl Message for NSLayoutManager

source§

impl StructuralPartialEq for NSLayoutManager

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CounterpartOrSelf for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityCounterpartOrSelf<T>,

§

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

The mutable counterpart of the type, or Self if the type has no mutable counterpart. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

source§

impl<T> IsAllocableAnyThread for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsAllocableAnyThread,

source§

impl<T> IsIdCloneable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

source§

impl<T> IsRetainable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,