use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSGlyphInfo;
unsafe impl ClassType for NSGlyphInfo {
type Super = NSObject;
}
);
extern_methods!(
unsafe impl NSGlyphInfo {
#[method_id(@__retain_semantics Other baseString)]
pub unsafe fn baseString(&self) -> Id<NSString, Shared>;
}
);
ns_enum!(
#[underlying(NSUInteger)]
pub enum NSCharacterCollection {
NSIdentityMappingCharacterCollection = 0,
NSAdobeCNS1CharacterCollection = 1,
NSAdobeGB1CharacterCollection = 2,
NSAdobeJapan1CharacterCollection = 3,
NSAdobeJapan2CharacterCollection = 4,
NSAdobeKorea1CharacterCollection = 5,
}
);
extern_methods!(
unsafe impl NSGlyphInfo {
#[method_id(@__retain_semantics Other glyphInfoWithGlyphName:forFont:baseString:)]
pub unsafe fn glyphInfoWithGlyphName_forFont_baseString(
glyphName: &NSString,
font: &NSFont,
string: &NSString,
) -> Option<Id<NSGlyphInfo, Shared>>;
#[method_id(@__retain_semantics Other glyphInfoWithGlyph:forFont:baseString:)]
pub unsafe fn glyphInfoWithGlyph_forFont_baseString(
glyph: NSGlyph,
font: &NSFont,
string: &NSString,
) -> Option<Id<NSGlyphInfo, Shared>>;
#[method_id(@__retain_semantics Other glyphInfoWithCharacterIdentifier:collection:baseString:)]
pub unsafe fn glyphInfoWithCharacterIdentifier_collection_baseString(
cid: NSUInteger,
characterCollection: NSCharacterCollection,
string: &NSString,
) -> Option<Id<NSGlyphInfo, Shared>>;
#[method_id(@__retain_semantics Other glyphName)]
pub unsafe fn glyphName(&self) -> Option<Id<NSString, Shared>>;
#[method(characterIdentifier)]
pub unsafe fn characterIdentifier(&self) -> NSUInteger;
#[method(characterCollection)]
pub unsafe fn characterCollection(&self) -> NSCharacterCollection;
}
);