public static bool AddSelectedLanguage(MACaptionAppearanceDomain domain, string language) { // this will throw an ANE if language is null using (var lang = new CFString(language)) { return(MACaptionAppearanceAddSelectedLanguage((int)domain, lang.Handle)); } }
public static nfloat GetWindowRoundedCornerRadius(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int)behavior; var rv = MACaptionAppearanceGetWindowRoundedCornerRadius((int)domain, ref b); behavior = (MACaptionAppearanceBehavior)(int)b; return(rv); }
public static CTFontDescriptor GetFontDescriptor(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior, MACaptionAppearanceFontStyle fontStyle) { nint b = (int)behavior; var rv = new CTFontDescriptor(MACaptionAppearanceCopyFontDescriptorForStyle((int)domain, ref b, (int)fontStyle), owns: true); behavior = (MACaptionAppearanceBehavior)(int)b; return(rv); }
public static nfloat GetRelativeCharacterSize(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int)behavior; var rv = MACaptionAppearanceGetRelativeCharacterSize((int)domain, ref b); behavior = (MACaptionAppearanceBehavior)(int)b; return(rv); }
public static MACaptionAppearanceTextEdgeStyle GetTextEdgeStyle(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int)behavior; var rv = MACaptionAppearanceGetTextEdgeStyle((int)domain, ref b); behavior = (MACaptionAppearanceBehavior)(int)b; return((MACaptionAppearanceTextEdgeStyle)(int)rv); }
public static nfloat GetWindowOpacity(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int)behavior; var rv = MACaptionAppearanceGetWindowOpacity((int)domain, ref b); behavior = (MACaptionAppearanceBehavior)(int)b; return(rv); }
public static CGColor GetWindowColor(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int)behavior; var rv = new CGColor(MACaptionAppearanceCopyWindowColor((int)domain, ref b), owns: true); behavior = (MACaptionAppearanceBehavior)(int)b; return(rv); }
public static NSString [] GetPreferredCaptioningMediaCharacteristics(MACaptionAppearanceDomain domain) { using (var chars = new CFArray(MACaptionAppearanceCopyPreferredCaptioningMediaCharacteristics((int)domain), owns: true)) { NSString [] characteristics = new NSString [chars.Count]; for (int i = 0; i < chars.Count; i++) { characteristics[i] = new NSString(chars.GetValue(i)); } return(characteristics); } }
public static string [] GetSelectedLanguages(MACaptionAppearanceDomain domain) { using (var langs = new CFArray(MACaptionAppearanceCopySelectedLanguages((int)domain), owns: true)) { var languages = new string [langs.Count]; for (int i = 0; i < langs.Count; i++) { languages[i] = CFString.FetchString(langs.GetValue(i)); } return(languages); } }
public static bool AddSelectedLanguage(MACaptionAppearanceDomain domain, string language) { // this will throw an ANE if language is null using (var lang = new CFString (language)) { return MACaptionAppearanceAddSelectedLanguage ((int) domain, lang.Handle); } }
public static void SetDisplayType(MACaptionAppearanceDomain domain, MACaptionAppearanceDisplayType displayType) { MACaptionAppearanceSetDisplayType((int)domain, (int)displayType); }
public static MACaptionAppearanceDisplayType GetDisplayType(MACaptionAppearanceDomain domain) { return((MACaptionAppearanceDisplayType)(int)MACaptionAppearanceGetDisplayType((int)domain)); }
public static CTFontDescriptor GetFontDescriptor(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior, MACaptionAppearanceFontStyle fontStyle) { nint b = (int) behavior; var rv = new CTFontDescriptor (MACaptionAppearanceCopyFontDescriptorForStyle ((int) domain, ref b, (int) fontStyle), owns: true); behavior = (MACaptionAppearanceBehavior) (int) b; return rv; }
public static nfloat GetRelativeCharacterSize(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int) behavior; var rv = MACaptionAppearanceGetRelativeCharacterSize ((int) domain, ref b); behavior = (MACaptionAppearanceBehavior) (int) b; return rv; }
public static NSString[] GetPreferredCaptioningMediaCharacteristics(MACaptionAppearanceDomain domain) { using (var chars = new CFArray (MACaptionAppearanceCopyPreferredCaptioningMediaCharacteristics ((int) domain), owns: true)) { NSString [] characteristics = new NSString [chars.Count]; for (int i = 0; i < chars.Count; i++) { characteristics[i] = new NSString (chars.GetValue (i)); } return characteristics; } }
public static MACaptionAppearanceTextEdgeStyle GetTextEdgeStyle(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int) behavior; var rv = MACaptionAppearanceGetTextEdgeStyle ((int) domain, ref b); behavior = (MACaptionAppearanceBehavior) (int) b; return (MACaptionAppearanceTextEdgeStyle) (int) rv; }
public static string[] GetSelectedLanguages(MACaptionAppearanceDomain domain) { using (var langs = new CFArray (MACaptionAppearanceCopySelectedLanguages ((int) domain), owns: true)) { var languages = new string [langs.Count]; for (int i = 0; i < langs.Count; i++) { languages[i] = CFString.FetchString (langs.GetValue (i)); } return languages; } }
public static CGColor GetWindowColor(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int) behavior; var rv = new CGColor (MACaptionAppearanceCopyWindowColor ((int) domain, ref b), owns: true); behavior = (MACaptionAppearanceBehavior) (int) b; return rv; }
public static MACaptionAppearanceDisplayType GetDisplayType(MACaptionAppearanceDomain domain) { return (MACaptionAppearanceDisplayType) (int) MACaptionAppearanceGetDisplayType ((int) domain); }
public static void SetDisplayType(MACaptionAppearanceDomain domain, MACaptionAppearanceDisplayType displayType) { MACaptionAppearanceSetDisplayType ((int) domain, (int) displayType); }
public static nfloat GetWindowRoundedCornerRadius(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int) behavior; var rv = MACaptionAppearanceGetWindowRoundedCornerRadius ((int) domain, ref b); behavior = (MACaptionAppearanceBehavior) (int) b; return rv; }
public static nfloat GetWindowOpacity(MACaptionAppearanceDomain domain, ref MACaptionAppearanceBehavior behavior) { nint b = (int) behavior; var rv = MACaptionAppearanceGetWindowOpacity ((int) domain, ref b); behavior = (MACaptionAppearanceBehavior) (int) b; return rv; }