//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_methods!(
    /// Scripting
    #[cfg(feature = "NSTextStorage")]
    unsafe impl NSTextStorage {
        #[method_id(@__retain_semantics Other attributeRuns)]
        pub unsafe fn attributeRuns(&self) -> Retained<NSArray<NSTextStorage>>;

        #[method(setAttributeRuns:)]
        pub unsafe fn setAttributeRuns(&mut self, attribute_runs: &NSArray<NSTextStorage>);

        #[method_id(@__retain_semantics Other paragraphs)]
        pub unsafe fn paragraphs(&self) -> Retained<NSArray<NSTextStorage>>;

        #[method(setParagraphs:)]
        pub unsafe fn setParagraphs(&mut self, paragraphs: &NSArray<NSTextStorage>);

        #[method_id(@__retain_semantics Other words)]
        pub unsafe fn words(&self) -> Retained<NSArray<NSTextStorage>>;

        #[method(setWords:)]
        pub unsafe fn setWords(&mut self, words: &NSArray<NSTextStorage>);

        #[method_id(@__retain_semantics Other characters)]
        pub unsafe fn characters(&self) -> Retained<NSArray<NSTextStorage>>;

        #[method(setCharacters:)]
        pub unsafe fn setCharacters(&mut self, characters: &NSArray<NSTextStorage>);

        #[cfg(feature = "NSFont")]
        #[method_id(@__retain_semantics Other font)]
        pub unsafe fn font(&self) -> Option<Retained<NSFont>>;

        #[cfg(feature = "NSFont")]
        #[method(setFont:)]
        pub unsafe fn setFont(&mut self, font: Option<&NSFont>);

        #[cfg(feature = "NSColor")]
        #[method_id(@__retain_semantics Other foregroundColor)]
        pub unsafe fn foregroundColor(&self) -> Option<Retained<NSColor>>;

        #[cfg(feature = "NSColor")]
        #[method(setForegroundColor:)]
        pub unsafe fn setForegroundColor(&mut self, foreground_color: Option<&NSColor>);
    }
);
