Skip to main content

NSGlyphStorage

Trait NSGlyphStorage 

Source
pub unsafe trait NSGlyphStorage {
    // Provided methods
    unsafe fn insertGlyphs_length_forStartingGlyphAtIndex_characterIndex(
        &self,
        glyphs: NonNull<NSGlyph>,
        length: NSUInteger,
        glyph_index: NSUInteger,
        char_index: NSUInteger,
    )
       where Self: Sized + Message { ... }
    fn setIntAttribute_value_forGlyphAtIndex(
        &self,
        attribute_tag: NSInteger,
        val: NSInteger,
        glyph_index: NSUInteger,
    )
       where Self: Sized + Message { ... }
    fn attributedString(&self) -> Retained<NSAttributedString>
       where Self: Sized + Message { ... }
    fn layoutOptions(&self) -> NSUInteger
       where Self: Sized + Message { ... }
}
Available on crate feature NSGlyphGenerator only.
Expand description

Provided Methods§

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.
§Safety

glyphs must be a valid pointer.

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSGlyphStorage

Source§

impl ProtocolType for dyn NSGlyphStorage

Source§

const NAME: &'static str = "NSGlyphStorage"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSGlyphStorage for ProtocolObject<T>
where T: ?Sized + NSGlyphStorage,

Implementors§

Source§

impl NSGlyphStorage for NSLayoutManager

Available on crate feature NSLayoutManager only.