Struct objc2_app_kit::NSLayoutManager
source · #[repr(C)]pub struct NSLayoutManager { /* private fields */ }
Available on crate feature
NSLayoutManager
only.Implementations§
source§impl NSLayoutManager
impl NSLayoutManager
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>
pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
pub unsafe fn textStorage(&self) -> Option<Retained<NSTextStorage>>
Available on crate feature
NSTextStorage
only.pub unsafe fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
Available on crate feature
NSTextStorage
only.pub unsafe fn replaceTextStorage(&self, new_text_storage: &NSTextStorage)
Available on crate feature
NSTextStorage
only.pub unsafe fn textContainers(&self) -> Retained<NSArray<NSTextContainer>>
Available on crate feature
NSTextContainer
only.pub unsafe fn addTextContainer(&self, container: &NSTextContainer)
Available on crate feature
NSTextContainer
only.pub unsafe fn insertTextContainer_atIndex( &self, container: &NSTextContainer, index: NSUInteger )
Available on crate feature
NSTextContainer
only.pub unsafe fn removeTextContainerAtIndex(&self, index: NSUInteger)
pub unsafe fn textContainerChangedGeometry(&self, container: &NSTextContainer)
Available on crate feature
NSTextContainer
only.pub unsafe fn textContainerChangedTextView(&self, container: &NSTextContainer)
Available on crate feature
NSTextContainer
only.pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn NSLayoutManagerDelegate>>>
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn NSLayoutManagerDelegate>> )
pub unsafe fn showsInvisibleCharacters(&self) -> bool
pub unsafe fn setShowsInvisibleCharacters( &self, shows_invisible_characters: bool )
pub unsafe fn showsControlCharacters(&self) -> bool
pub unsafe fn setShowsControlCharacters(&self, shows_control_characters: bool)
pub unsafe fn usesDefaultHyphenation(&self) -> bool
pub unsafe fn setUsesDefaultHyphenation(&self, uses_default_hyphenation: bool)
pub unsafe fn usesFontLeading(&self) -> bool
pub unsafe fn setUsesFontLeading(&self, uses_font_leading: bool)
pub unsafe fn allowsNonContiguousLayout(&self) -> bool
pub unsafe fn setAllowsNonContiguousLayout( &self, allows_non_contiguous_layout: bool )
pub unsafe fn hasNonContiguousLayout(&self) -> bool
pub unsafe fn limitsLayoutForSuspiciousContents(&self) -> bool
pub unsafe fn setLimitsLayoutForSuspiciousContents( &self, limits_layout_for_suspicious_contents: bool )
pub unsafe fn backgroundLayoutEnabled(&self) -> bool
pub unsafe fn setBackgroundLayoutEnabled(&self, background_layout_enabled: bool)
pub unsafe fn defaultAttachmentScaling(&self) -> NSImageScaling
Available on crate feature
NSCell
only.pub unsafe fn setDefaultAttachmentScaling( &self, default_attachment_scaling: NSImageScaling )
Available on crate feature
NSCell
only.pub unsafe fn typesetter(&self) -> Retained<NSTypesetter>
Available on crate feature
NSTypesetter
only.pub unsafe fn setTypesetter(&self, typesetter: &NSTypesetter)
Available on crate feature
NSTypesetter
only.pub unsafe fn typesetterBehavior(&self) -> NSTypesetterBehavior
pub unsafe fn setTypesetterBehavior( &self, typesetter_behavior: NSTypesetterBehavior )
pub unsafe fn invalidateGlyphsForCharacterRange_changeInLength_actualCharacterRange( &self, char_range: NSRange, delta: NSInteger, actual_char_range: NSRangePointer )
pub unsafe fn invalidateLayoutForCharacterRange_actualCharacterRange( &self, char_range: NSRange, actual_char_range: NSRangePointer )
pub unsafe fn invalidateDisplayForCharacterRange(&self, char_range: NSRange)
pub unsafe fn invalidateDisplayForGlyphRange(&self, glyph_range: NSRange)
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.pub unsafe fn ensureGlyphsForCharacterRange(&self, char_range: NSRange)
pub unsafe fn ensureGlyphsForGlyphRange(&self, glyph_range: NSRange)
pub unsafe fn ensureLayoutForCharacterRange(&self, char_range: NSRange)
pub unsafe fn ensureLayoutForGlyphRange(&self, glyph_range: NSRange)
pub unsafe fn ensureLayoutForTextContainer(&self, container: &NSTextContainer)
Available on crate feature
NSTextContainer
only.pub unsafe fn ensureLayoutForBoundingRect_inTextContainer( &self, bounds: NSRect, container: &NSTextContainer )
Available on crate feature
NSTextContainer
only.pub unsafe fn numberOfGlyphs(&self) -> NSUInteger
pub unsafe fn isValidGlyphIndex(&self, glyph_index: NSUInteger) -> bool
pub unsafe fn propertyForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> NSGlyphProperty
pub unsafe fn characterIndexForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> NSUInteger
pub unsafe fn glyphIndexForCharacterAtIndex( &self, char_index: NSUInteger ) -> NSUInteger
pub unsafe fn setTextContainer_forGlyphRange( &self, container: &NSTextContainer, glyph_range: NSRange )
Available on crate feature
NSTextContainer
only.pub unsafe fn setLineFragmentRect_forGlyphRange_usedRect( &self, fragment_rect: NSRect, glyph_range: NSRange, used_rect: NSRect )
pub unsafe fn setExtraLineFragmentRect_usedRect_textContainer( &self, fragment_rect: NSRect, used_rect: NSRect, container: &NSTextContainer )
Available on crate feature
NSTextContainer
only.pub unsafe fn setLocation_forStartOfGlyphRange( &self, location: NSPoint, glyph_range: NSRange )
pub unsafe fn setNotShownAttribute_forGlyphAtIndex( &self, flag: bool, glyph_index: NSUInteger )
pub unsafe fn setDrawsOutsideLineFragment_forGlyphAtIndex( &self, flag: bool, glyph_index: NSUInteger )
pub unsafe fn setAttachmentSize_forGlyphRange( &self, attachment_size: NSSize, glyph_range: NSRange )
pub unsafe fn getFirstUnlaidCharacterIndex_glyphIndex( &self, char_index: *mut NSUInteger, glyph_index: *mut NSUInteger )
pub unsafe fn firstUnlaidCharacterIndex(&self) -> NSUInteger
pub unsafe fn firstUnlaidGlyphIndex(&self) -> NSUInteger
pub unsafe fn textContainerForGlyphAtIndex_effectiveRange( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> Option<Retained<NSTextContainer>>
Available on crate feature
NSTextContainer
only.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.pub unsafe fn usedRectForTextContainer( &self, container: &NSTextContainer ) -> NSRect
Available on crate feature
NSTextContainer
only.pub unsafe fn lineFragmentRectForGlyphAtIndex_effectiveRange( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> NSRect
pub unsafe fn lineFragmentRectForGlyphAtIndex_effectiveRange_withoutAdditionalLayout( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer, flag: bool ) -> NSRect
pub unsafe fn lineFragmentUsedRectForGlyphAtIndex_effectiveRange( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> NSRect
pub unsafe fn lineFragmentUsedRectForGlyphAtIndex_effectiveRange_withoutAdditionalLayout( &self, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer, flag: bool ) -> NSRect
pub unsafe fn extraLineFragmentRect(&self) -> NSRect
pub unsafe fn extraLineFragmentUsedRect(&self) -> NSRect
pub unsafe fn extraLineFragmentTextContainer( &self ) -> Option<Retained<NSTextContainer>>
Available on crate feature
NSTextContainer
only.pub unsafe fn locationForGlyphAtIndex(&self, glyph_index: NSUInteger) -> NSPoint
pub unsafe fn notShownAttributeForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> bool
pub unsafe fn drawsOutsideLineFragmentForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> bool
pub unsafe fn attachmentSizeForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> NSSize
pub unsafe fn truncatedGlyphRangeInLineFragmentForGlyphAtIndex( &self, glyph_index: NSUInteger ) -> NSRange
pub unsafe fn glyphRangeForCharacterRange_actualCharacterRange( &self, char_range: NSRange, actual_char_range: NSRangePointer ) -> NSRange
pub unsafe fn characterRangeForGlyphRange_actualGlyphRange( &self, glyph_range: NSRange, actual_glyph_range: NSRangePointer ) -> NSRange
pub unsafe fn glyphRangeForTextContainer( &self, container: &NSTextContainer ) -> NSRange
Available on crate feature
NSTextContainer
only.pub unsafe fn rangeOfNominallySpacedGlyphsContainingIndex( &self, glyph_index: NSUInteger ) -> NSRange
pub unsafe fn boundingRectForGlyphRange_inTextContainer( &self, glyph_range: NSRange, container: &NSTextContainer ) -> NSRect
Available on crate feature
NSTextContainer
only.pub unsafe fn glyphRangeForBoundingRect_inTextContainer( &self, bounds: NSRect, container: &NSTextContainer ) -> NSRange
Available on crate feature
NSTextContainer
only.pub unsafe fn glyphRangeForBoundingRectWithoutAdditionalLayout_inTextContainer( &self, bounds: NSRect, container: &NSTextContainer ) -> NSRange
Available on crate feature
NSTextContainer
only.pub unsafe fn glyphIndexForPoint_inTextContainer( &self, point: NSPoint, container: &NSTextContainer ) -> NSUInteger
Available on crate feature
NSTextContainer
only.pub unsafe fn fractionOfDistanceThroughGlyphForPoint_inTextContainer( &self, point: NSPoint, container: &NSTextContainer ) -> CGFloat
Available on crate feature
NSTextContainer
only.pub unsafe fn characterIndexForPoint_inTextContainer_fractionOfDistanceBetweenInsertionPoints( &self, point: NSPoint, container: &NSTextContainer, partial_fraction: *mut CGFloat ) -> NSUInteger
Available on crate feature
NSTextContainer
only.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
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.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.pub unsafe fn drawBackgroundForGlyphRange_atPoint( &self, glyphs_to_show: NSRange, origin: NSPoint )
pub unsafe fn drawGlyphsForGlyphRange_atPoint( &self, glyphs_to_show: NSRange, origin: NSPoint )
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.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.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.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.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.pub unsafe fn showAttachmentCell_inRect_characterIndex( &self, cell: &NSCell, rect: NSRect, attachment_index: NSUInteger )
Available on crate feature
NSCell
only.pub unsafe fn setLayoutRect_forTextBlock_glyphRange( &self, rect: NSRect, block: &NSTextBlock, glyph_range: NSRange )
Available on crate feature
NSTextTable
only.pub unsafe fn setBoundsRect_forTextBlock_glyphRange( &self, rect: NSRect, block: &NSTextBlock, glyph_range: NSRange )
Available on crate feature
NSTextTable
only.pub unsafe fn layoutRectForTextBlock_glyphRange( &self, block: &NSTextBlock, glyph_range: NSRange ) -> NSRect
Available on crate feature
NSTextTable
only.pub unsafe fn boundsRectForTextBlock_glyphRange( &self, block: &NSTextBlock, glyph_range: NSRange ) -> NSRect
Available on crate feature
NSTextTable
only.pub unsafe fn layoutRectForTextBlock_atIndex_effectiveRange( &self, block: &NSTextBlock, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> NSRect
Available on crate feature
NSTextTable
only.pub unsafe fn boundsRectForTextBlock_atIndex_effectiveRange( &self, block: &NSTextBlock, glyph_index: NSUInteger, effective_glyph_range: NSRangePointer ) -> NSRect
Available on crate feature
NSTextTable
only.pub unsafe fn temporaryAttributesAtCharacterIndex_effectiveRange( &self, char_index: NSUInteger, effective_char_range: NSRangePointer ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>
pub unsafe fn setTemporaryAttributes_forCharacterRange( &self, attrs: &NSDictionary<NSAttributedStringKey, AnyObject>, char_range: NSRange )
pub unsafe fn addTemporaryAttributes_forCharacterRange( &self, attrs: &NSDictionary<NSAttributedStringKey, AnyObject>, char_range: NSRange )
pub unsafe fn removeTemporaryAttribute_forCharacterRange( &self, attr_name: &NSAttributedStringKey, char_range: NSRange )
pub unsafe fn temporaryAttribute_atCharacterIndex_effectiveRange( &self, attr_name: &NSAttributedStringKey, location: NSUInteger, range: NSRangePointer ) -> Option<Retained<AnyObject>>
pub unsafe fn temporaryAttribute_atCharacterIndex_longestEffectiveRange_inRange( &self, attr_name: &NSAttributedStringKey, location: NSUInteger, range: NSRangePointer, range_limit: NSRange ) -> Option<Retained<AnyObject>>
pub unsafe fn temporaryAttributesAtCharacterIndex_longestEffectiveRange_inRange( &self, location: NSUInteger, range: NSRangePointer, range_limit: NSRange ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>
pub unsafe fn addTemporaryAttribute_value_forCharacterRange( &self, attr_name: &NSAttributedStringKey, value: &AnyObject, char_range: NSRange )
pub unsafe fn defaultLineHeightForFont(&self, the_font: &NSFont) -> CGFloat
Available on crate feature
NSFont
only.pub unsafe fn defaultBaselineOffsetForFont(&self, the_font: &NSFont) -> CGFloat
Available on crate feature
NSFont
only.source§impl NSLayoutManager
impl NSLayoutManager
Methods declared on superclass NSObject
source§impl NSLayoutManager
impl NSLayoutManager
NSTextViewSupport
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.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.pub unsafe fn layoutManagerOwnsFirstResponderInWindow( &self, window: &NSWindow ) -> bool
Available on crate features
NSResponder
and NSWindow
only.pub unsafe fn firstTextView( &self, mtm: MainThreadMarker ) -> Option<Retained<NSTextView>>
Available on crate features
NSResponder
and NSText
and NSTextView
and NSView
only.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
impl NSLayoutManager
NSLayoutManagerDeprecated
pub unsafe fn glyphAtIndex_isValidIndex( &self, glyph_index: NSUInteger, is_valid_index: *mut Bool ) -> NSGlyph
Available on crate feature
NSFont
only.pub unsafe fn glyphAtIndex(&self, glyph_index: NSUInteger) -> NSGlyph
Available on crate feature
NSFont
only.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.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.pub unsafe fn usesScreenFonts(&self) -> bool
👎Deprecated
pub unsafe fn setUsesScreenFonts(&self, uses_screen_fonts: bool)
👎Deprecated
pub unsafe fn substituteFontForFont( &self, original_font: &NSFont ) -> Retained<NSFont>
👎Deprecated
Available on crate feature
NSFont
only.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.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.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.pub unsafe fn deleteGlyphsInRange(&self, glyph_range: NSRange)
👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
pub unsafe fn setCharacterIndex_forGlyphAtIndex( &self, char_index: NSUInteger, glyph_index: NSUInteger )
👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
pub unsafe fn setIntAttribute_value_forGlyphAtIndex( &self, attribute_tag: NSInteger, val: NSInteger, glyph_index: NSUInteger )
👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
pub unsafe fn invalidateGlyphsOnLayoutInvalidationForGlyphRange( &self, glyph_range: NSRange )
👎Deprecated: Use -setGlyphs:properties:characterIndexes:font:forGlyphRange instead
pub unsafe fn intAttribute_forGlyphAtIndex( &self, attribute_tag: NSInteger, glyph_index: NSUInteger ) -> NSInteger
👎Deprecated: Use -getGlyphsInRange:glyphs:properties:characterIndexes:bidiLevels: instead
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.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.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.pub unsafe fn invalidateLayoutForCharacterRange_isSoft_actualCharacterRange( &self, char_range: NSRange, flag: bool, actual_char_range: NSRangePointer )
👎Deprecated: Use -invalidateLayoutForCharacterRange:actualCharacterRange: instead
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.pub unsafe fn setLocations_startingGlyphIndexes_count_forGlyphRange( &self, locations: NSPointArray, glyph_indexes: NonNull<NSUInteger>, count: NSUInteger, glyph_range: NSRange )
👎Deprecated: Use -setLocation:forStartOfGlyphRange: instead
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.pub unsafe fn hyphenationFactor(&self) -> c_float
👎Deprecated: Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead.
pub unsafe fn setHyphenationFactor(&self, hyphenation_factor: c_float)
👎Deprecated: Please use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead.
source§impl NSLayoutManager
impl NSLayoutManager
NSGlyphGeneration
pub unsafe fn glyphGenerator(&self) -> Retained<NSGlyphGenerator>
Available on crate feature
NSGlyphGenerator
only.pub unsafe fn setGlyphGenerator(&self, glyph_generator: &NSGlyphGenerator)
Available on crate feature
NSGlyphGenerator
only.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 NSLayoutManager
impl AsMut<AnyObject> for NSLayoutManager
source§impl AsMut<NSLayoutManager> for NSLayoutManager
impl AsMut<NSLayoutManager> for NSLayoutManager
source§impl AsMut<NSObject> for NSLayoutManager
impl AsMut<NSObject> for NSLayoutManager
source§impl AsRef<AnyObject> for NSLayoutManager
impl AsRef<AnyObject> for NSLayoutManager
source§impl AsRef<NSLayoutManager> for NSLayoutManager
impl AsRef<NSLayoutManager> for NSLayoutManager
source§impl AsRef<NSObject> for NSLayoutManager
impl AsRef<NSObject> for NSLayoutManager
source§impl Borrow<AnyObject> for NSLayoutManager
impl Borrow<AnyObject> for NSLayoutManager
source§impl Borrow<NSObject> for NSLayoutManager
impl Borrow<NSObject> for NSLayoutManager
source§impl BorrowMut<AnyObject> for NSLayoutManager
impl BorrowMut<AnyObject> for NSLayoutManager
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 NSLayoutManager
impl BorrowMut<NSObject> for NSLayoutManager
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 NSLayoutManager
impl ClassType for NSLayoutManager
§type Mutability = InteriorMutable
type Mutability = InteriorMutable
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSLayoutManager"
const NAME: &'static str = "NSLayoutManager"
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 NSLayoutManager
impl Debug for NSLayoutManager
source§impl Deref for NSLayoutManager
impl Deref for NSLayoutManager
source§impl DerefMut for NSLayoutManager
impl DerefMut for NSLayoutManager
source§impl Hash for NSLayoutManager
impl Hash for NSLayoutManager
source§impl NSCoding for NSLayoutManager
impl NSCoding for NSLayoutManager
source§impl NSGlyphStorage for NSLayoutManager
Available on crate feature NSGlyphGenerator
only.
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
)
unsafe fn insertGlyphs_length_forStartingGlyphAtIndex_characterIndex( &self, glyphs: NonNull<NSGlyph>, length: NSUInteger, glyph_index: NSUInteger, char_index: NSUInteger )
Available on crate feature
NSFont
only.unsafe fn setIntAttribute_value_forGlyphAtIndex( &self, attribute_tag: NSInteger, val: NSInteger, glyph_index: NSUInteger )
unsafe fn attributedString(&self) -> Retained<NSAttributedString>
unsafe fn layoutOptions(&self) -> NSUInteger
source§impl NSObjectProtocol for NSLayoutManager
impl NSObjectProtocol for NSLayoutManager
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) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl NSSecureCoding for NSLayoutManager
impl NSSecureCoding for NSLayoutManager
source§impl PartialEq for NSLayoutManager
impl PartialEq for NSLayoutManager
source§fn eq(&self, other: &NSLayoutManager) -> bool
fn eq(&self, other: &NSLayoutManager) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSLayoutManager
impl RefEncode for NSLayoutManager
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 NSLayoutManager
impl Message for NSLayoutManager
impl StructuralPartialEq for NSLayoutManager
Auto Trait Implementations§
impl !Freeze for NSLayoutManager
impl !RefUnwindSafe for NSLayoutManager
impl !Send for NSLayoutManager
impl !Sync for NSLayoutManager
impl !Unpin for NSLayoutManager
impl !UnwindSafe for NSLayoutManager
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