GTK-TypeScript-Bindings/Pango.d.ts
2023-03-04 13:40:44 +00:00

1418 lines
49 KiB
TypeScript

declare namespace AuPango {
class Alignment {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kLeft": Alignment
static readonly "kCenter": Alignment
static readonly "kRight": Alignment
}
class AttrType {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kInvalid": AttrType
static readonly "kLanguage": AttrType
static readonly "kFamily": AttrType
static readonly "kStyle": AttrType
static readonly "kWeight": AttrType
static readonly "kVariant": AttrType
static readonly "kStretch": AttrType
static readonly "kSize": AttrType
static readonly "kFontDesc": AttrType
static readonly "kForeground": AttrType
static readonly "kBackground": AttrType
static readonly "kUnderline": AttrType
static readonly "kStrikethrough": AttrType
static readonly "kRise": AttrType
static readonly "kShape": AttrType
static readonly "kScale": AttrType
static readonly "kFallback": AttrType
static readonly "kLetterSpacing": AttrType
static readonly "kUnderlineColor": AttrType
static readonly "kStrikethroughColor": AttrType
static readonly "kAbsoluteSize": AttrType
static readonly "kGravity": AttrType
static readonly "kGravityHint": AttrType
static readonly "kFontFeatures": AttrType
static readonly "kForegroundAlpha": AttrType
static readonly "kBackgroundAlpha": AttrType
static readonly "kAllowBreaks": AttrType
static readonly "kShow": AttrType
static readonly "kInsertHyphens": AttrType
static readonly "kOverline": AttrType
static readonly "kOverlineColor": AttrType
static readonly "kLineHeight": AttrType
static readonly "kAbsoluteLineHeight": AttrType
static readonly "kTextTransform": AttrType
static readonly "kWord": AttrType
static readonly "kSentence": AttrType
static readonly "kBaselineShift": AttrType
static readonly "kFontScale": AttrType
}
class BaselineShift {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": BaselineShift
static readonly "kSuperscript": BaselineShift
static readonly "kSubscript": BaselineShift
}
class BidiType {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kL": BidiType
static readonly "kLre": BidiType
static readonly "kLro": BidiType
static readonly "kR": BidiType
static readonly "kAl": BidiType
static readonly "kRle": BidiType
static readonly "kRlo": BidiType
static readonly "kPdf": BidiType
static readonly "kEn": BidiType
static readonly "kEs": BidiType
static readonly "kEt": BidiType
static readonly "kAn": BidiType
static readonly "kCs": BidiType
static readonly "kNsm": BidiType
static readonly "kBn": BidiType
static readonly "kB": BidiType
static readonly "kS": BidiType
static readonly "kWs": BidiType
static readonly "kOn": BidiType
static readonly "kLri": BidiType
static readonly "kRli": BidiType
static readonly "kFsi": BidiType
static readonly "kPdi": BidiType
}
class CoverageLevel {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": CoverageLevel
static readonly "kFallback": CoverageLevel
static readonly "kApproximate": CoverageLevel
static readonly "kExact": CoverageLevel
}
class Direction {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kLtr": Direction
static readonly "kRtl": Direction
static readonly "kTtbLtr": Direction
static readonly "kTtbRtl": Direction
static readonly "kWeakLtr": Direction
static readonly "kWeakRtl": Direction
static readonly "kNeutral": Direction
}
class EllipsizeMode {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": EllipsizeMode
static readonly "kStart": EllipsizeMode
static readonly "kMiddle": EllipsizeMode
static readonly "kEnd": EllipsizeMode
}
class FontMask {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kFamily": FontMask
static readonly "kStyle": FontMask
static readonly "kVariant": FontMask
static readonly "kWeight": FontMask
static readonly "kStretch": FontMask
static readonly "kSize": FontMask
static readonly "kGravity": FontMask
static readonly "kVariations": FontMask
}
class FontScale {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": FontScale
static readonly "kSuperscript": FontScale
static readonly "kSubscript": FontScale
static readonly "kSmallCaps": FontScale
}
class Gravity {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kSouth": Gravity
static readonly "kEast": Gravity
static readonly "kNorth": Gravity
static readonly "kWest": Gravity
static readonly "kAuto": Gravity
}
class GravityHint {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNatural": GravityHint
static readonly "kStrong": GravityHint
static readonly "kLine": GravityHint
}
class LayoutDeserializeError {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kInvalid": LayoutDeserializeError
static readonly "kInvalidValue": LayoutDeserializeError
static readonly "kMissingValue": LayoutDeserializeError
}
class LayoutDeserializeFlags {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kDefault": LayoutDeserializeFlags
static readonly "kContext": LayoutDeserializeFlags
}
class LayoutSerializeFlags {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kDefault": LayoutSerializeFlags
static readonly "kContext": LayoutSerializeFlags
static readonly "kOutput": LayoutSerializeFlags
}
class Overline {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": Overline
static readonly "kSingle": Overline
}
class RenderPart {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kForeground": RenderPart
static readonly "kBackground": RenderPart
static readonly "kUnderline": RenderPart
static readonly "kStrikethrough": RenderPart
static readonly "kOverline": RenderPart
}
class Script {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kInvalidCode": Script
static readonly "kCommon": Script
static readonly "kInherited": Script
static readonly "kArabic": Script
static readonly "kArmenian": Script
static readonly "kBengali": Script
static readonly "kBopomofo": Script
static readonly "kCherokee": Script
static readonly "kCoptic": Script
static readonly "kCyrillic": Script
static readonly "kDeseret": Script
static readonly "kDevanagari": Script
static readonly "kEthiopic": Script
static readonly "kGeorgian": Script
static readonly "kGothic": Script
static readonly "kGreek": Script
static readonly "kGujarati": Script
static readonly "kGurmukhi": Script
static readonly "kHan": Script
static readonly "kHangul": Script
static readonly "kHebrew": Script
static readonly "kHiragana": Script
static readonly "kKannada": Script
static readonly "kKatakana": Script
static readonly "kKhmer": Script
static readonly "kLao": Script
static readonly "kLatin": Script
static readonly "kMalayalam": Script
static readonly "kMongolian": Script
static readonly "kMyanmar": Script
static readonly "kOgham": Script
static readonly "kOldItalic": Script
static readonly "kOriya": Script
static readonly "kRunic": Script
static readonly "kSinhala": Script
static readonly "kSyriac": Script
static readonly "kTamil": Script
static readonly "kTelugu": Script
static readonly "kThaana": Script
static readonly "kThai": Script
static readonly "kTibetan": Script
static readonly "kCanadianAboriginal": Script
static readonly "kYI": Script
static readonly "kTagalog": Script
static readonly "kHanunoo": Script
static readonly "kBuhid": Script
static readonly "kTagbanwa": Script
static readonly "kBraille": Script
static readonly "kCypriot": Script
static readonly "kLimbu": Script
static readonly "kOsmanya": Script
static readonly "kShavian": Script
static readonly "kLinearB": Script
static readonly "kTaiLe": Script
static readonly "kUgaritic": Script
static readonly "kNewTaiLue": Script
static readonly "kBuginese": Script
static readonly "kGlagolitic": Script
static readonly "kTifinagh": Script
static readonly "kSylotiNagri": Script
static readonly "kOldPersian": Script
static readonly "kKharoshthi": Script
static readonly "kUnknown": Script
static readonly "kBalinese": Script
static readonly "kCuneiform": Script
static readonly "kPhoenician": Script
static readonly "kPhagsPa": Script
static readonly "kNko": Script
static readonly "kKayahLi": Script
static readonly "kLepcha": Script
static readonly "kRejang": Script
static readonly "kSundanese": Script
static readonly "kSaurashtra": Script
static readonly "kCham": Script
static readonly "kOlChiki": Script
static readonly "kVai": Script
static readonly "kCarian": Script
static readonly "kLycian": Script
static readonly "kLydian": Script
static readonly "kBatak": Script
static readonly "kBrahmi": Script
static readonly "kMandaic": Script
static readonly "kChakma": Script
static readonly "kMeroiticCursive": Script
static readonly "kMeroiticHieroglyphs": Script
static readonly "kMiao": Script
static readonly "kSharada": Script
static readonly "kSoraSompeng": Script
static readonly "kTakri": Script
static readonly "kBassaVah": Script
static readonly "kCaucasianAlbanian": Script
static readonly "kDuployan": Script
static readonly "kElbasan": Script
static readonly "kGrantha": Script
static readonly "kKhojki": Script
static readonly "kKhudawadi": Script
static readonly "kLinearA": Script
static readonly "kMahajani": Script
static readonly "kManichaean": Script
static readonly "kMendeKikakui": Script
static readonly "kModi": Script
static readonly "kMro": Script
static readonly "kNabataean": Script
static readonly "kOldNorthArabian": Script
static readonly "kOldPermic": Script
static readonly "kPahawhHmong": Script
static readonly "kPalmyrene": Script
static readonly "kPauCinHau": Script
static readonly "kPsalterPahlavi": Script
static readonly "kSiddham": Script
static readonly "kTirhuta": Script
static readonly "kWarangCiti": Script
static readonly "kAhom": Script
static readonly "kAnatolianHieroglyphs": Script
static readonly "kHatran": Script
static readonly "kMultani": Script
static readonly "kOldHungarian": Script
static readonly "kSignwriting": Script
}
class ShapeFlags {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": ShapeFlags
static readonly "kRoundPositions": ShapeFlags
}
class ShowFlags {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": ShowFlags
static readonly "kSpaces": ShowFlags
static readonly "kLineBreaks": ShowFlags
static readonly "kIgnorables": ShowFlags
}
class Stretch {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kUltraCondensed": Stretch
static readonly "kExtraCondensed": Stretch
static readonly "kCondensed": Stretch
static readonly "kSemiCondensed": Stretch
static readonly "kNormal": Stretch
static readonly "kSemiExpanded": Stretch
static readonly "kExpanded": Stretch
static readonly "kExtraExpanded": Stretch
static readonly "kUltraExpanded": Stretch
}
class Style {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNormal": Style
static readonly "kOblique": Style
static readonly "kItalic": Style
}
class TabAlign {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kLeft": TabAlign
static readonly "kRight": TabAlign
static readonly "kCenter": TabAlign
static readonly "kDecimal": TabAlign
}
class TextTransform {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": TextTransform
static readonly "kLowercase": TextTransform
static readonly "kUppercase": TextTransform
static readonly "kCapitalize": TextTransform
}
class Underline {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNone": Underline
static readonly "kSingle": Underline
static readonly "kDouble": Underline
static readonly "kLow": Underline
static readonly "kError": Underline
static readonly "kSingleLine": Underline
static readonly "kDoubleLine": Underline
static readonly "kErrorLine": Underline
}
class Variant {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kNormal": Variant
static readonly "kSmallCaps": Variant
static readonly "kAllSmallCaps": Variant
static readonly "kPetiteCaps": Variant
static readonly "kAllPetiteCaps": Variant
static readonly "kUnicase": Variant
static readonly "kTitleCaps": Variant
}
class Weight {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kThin": Weight
static readonly "kUltralight": Weight
static readonly "kLight": Weight
static readonly "kSemilight": Weight
static readonly "kBook": Weight
static readonly "kNormal": Weight
static readonly "kMedium": Weight
static readonly "kSemibold": Weight
static readonly "kBold": Weight
static readonly "kUltrabold": Weight
static readonly "kHeavy": Weight
static readonly "kUltraheavy": Weight
}
class WrapMode {
// Enumerations hack...
toString(radix ? : number | undefined) : string;
toFixed(fractionDigits ? : number | undefined) : string;
toExponential(fractionDigits ? : number | undefined) : string;
toPrecision(precision ? : number | undefined) : string;
valueOf() : number;
toLocaleString(locales ? : string | string[] | undefined, options ? : Intl.NumberFormatOptions | undefined) : string;
static [s:number]: string;
static readonly "kWord": WrapMode
static readonly "kChar": WrapMode
static readonly "kWordChar": WrapMode
}
class Analysis {
shapeEngine : void;
langEngine : void;
font : AuPango.Font;
level : number;
gravity : number;
flags : number;
script : number;
language : AuPango.Language;
}
class AttrClass {
type : AuPango.AttrType;
copy : (attr: AuPango.Attribute) => AuPango.Attribute;
destroy : (attr: AuPango.Attribute) => void;
equal : (attr1: AuPango.Attribute, attr2: AuPango.Attribute) => boolean;
}
class AttrColor {
attr : AuPango.Attribute;
color : AuPango.Color;
}
class AttrFloat {
attr : AuPango.Attribute;
value : number;
}
class AttrFontDesc {
attr : AuPango.Attribute;
desc : AuPango.FontDescription;
static New(desc: AuPango.FontDescription): AuPango.Attribute;
}
class AttrFontFeatures {
attr : AuPango.Attribute;
features : string;
static New(features: string): AuPango.Attribute;
}
class AttrInt {
attr : AuPango.Attribute;
value : number;
}
class AttrIterator {
copy(): AuPango.AttrIterator;
destroy(): void;
get(type: AuPango.AttrType): AuPango.Attribute;
getAttrs(): AuPango.Attribute[];
getFont(desc: AuPango.FontDescription, language ?: AuPango.Language, extraAttrs ?: AuPango.Attribute[]): void;
next(): boolean;
range(start: number, end: number): void;
}
class AttrLanguage {
attr : AuPango.Attribute;
value : AuPango.Language;
static New(language: AuPango.Language): AuPango.Attribute;
}
class AttrList {
static New(): AuPango.AttrList;
change(attr: AuPango.Attribute): void;
copy(): AuPango.AttrList;
equal(otherList: AuPango.AttrList): boolean;
filter(func: (attribute: AuPango.Attribute) => boolean): AuPango.AttrList;
getAttributes(): AuPango.Attribute[];
getIterator(): AuPango.AttrIterator;
insert(attr: AuPango.Attribute): void;
insertBefore(attr: AuPango.Attribute): void;
ref(): AuPango.AttrList;
splice(other: AuPango.AttrList, pos: number, len: number): void;
unref(): void;
update(pos: number, remove: number, add: number): void;
static FromString(text: string): AuPango.AttrList;
}
class AttrShape {
attr : AuPango.Attribute;
inkRect : AuPango.Rectangle;
logicalRect : AuPango.Rectangle;
data : void;
copyFunc : () => void;
destroyFunc : () => void;
static New(inkRect: AuPango.Rectangle, logicalRect: AuPango.Rectangle): AuPango.Attribute;
static NewWithData(inkRect: AuPango.Rectangle, logicalRect: AuPango.Rectangle, copyFunc: () => void | undefined | null, destroyFunc: () => void | undefined | null): AuPango.Attribute;
}
class AttrSize {
attr : AuPango.Attribute;
size : number;
absolute : number;
static New(size: number): AuPango.Attribute;
static NewAbsolute(size: number): AuPango.Attribute;
}
class AttrString {
attr : AuPango.Attribute;
value : string;
}
class Attribute {
klass : AuPango.AttrClass;
startIndex : number;
endIndex : number;
asColor(): AuPango.AttrColor;
asFloat(): AuPango.AttrFloat;
asFontDesc(): AuPango.AttrFontDesc;
asFontFeatures(): AuPango.AttrFontFeatures;
asInt(): AuPango.AttrInt;
asLanguage(): AuPango.AttrLanguage;
asShape(): AuPango.AttrShape;
asSize(): AuPango.AttrSize;
asString(): AuPango.AttrString;
copy(): AuPango.Attribute;
destroy(): void;
equal(attr2: AuPango.Attribute): boolean;
init(klass: AuPango.AttrClass): void;
}
class Color {
red : number;
green : number;
blue : number;
copy(): AuPango.Color;
free(): void;
parse(spec: string): boolean;
parseWithAlpha(alpha ?: number, spec ?: string): boolean;
}
class ContextClass {
}
class FontClass {
parentClass : GObject.ObjectClass;
describe : (font: AuPango.Font) => AuPango.FontDescription;
getCoverage : (font: AuPango.Font, language: AuPango.Language) => AuPango.Coverage;
getGlyphExtents : (font: AuPango.Font | undefined | null, glyph: number, inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle) => void;
getMetrics : (font: AuPango.Font | undefined | null, language: AuPango.Language | undefined | null) => AuPango.FontMetrics;
getFontMap : (font: AuPango.Font | undefined | null) => AuPango.FontMap;
describeAbsolute : (font: AuPango.Font) => AuPango.FontDescription;
getFeatures : (font: AuPango.Font, features: HarfBuzz.feature_t[], len: number, numFeatures: number) => void;
createHbFont : (font: AuPango.Font) => HarfBuzz.font_t;
}
class FontDescription {
static New(): AuPango.FontDescription;
betterMatch(oldMatch: AuPango.FontDescription | undefined | null, newMatch: AuPango.FontDescription): boolean;
copy(): AuPango.FontDescription;
copyStatic(): AuPango.FontDescription;
equal(desc2: AuPango.FontDescription): boolean;
free(): void;
getFamily(): string;
getGravity(): AuPango.Gravity;
getSetFields(): AuPango.FontMask;
getSize(): number;
getSizeIsAbsolute(): boolean;
getStretch(): AuPango.Stretch;
getStyle(): AuPango.Style;
getVariant(): AuPango.Variant;
getVariations(): string;
getWeight(): AuPango.Weight;
hash(): number;
merge(descToMerge: AuPango.FontDescription | undefined | null, replaceExisting: boolean): void;
mergeStatic(descToMerge: AuPango.FontDescription, replaceExisting: boolean): void;
setAbsoluteSize(size: number): void;
setFamily(family: string): void;
setFamilyStatic(family: string): void;
setGravity(gravity: AuPango.Gravity): void;
setSize(size: number): void;
setStretch(stretch: AuPango.Stretch): void;
setStyle(style: AuPango.Style): void;
setVariant(variant: AuPango.Variant): void;
setVariations(variations: string | undefined | null): void;
setVariationsStatic(variations: string): void;
setWeight(weight: AuPango.Weight): void;
toFilename(): string;
unsetFields(toUnset: AuPango.FontMask): void;
static FromString(str: string): AuPango.FontDescription;
}
class FontFaceClass {
parentClass : GObject.ObjectClass;
getFaceName : (face: AuPango.FontFace) => string;
describe : (face: AuPango.FontFace) => AuPango.FontDescription;
listSizes : (face: AuPango.FontFace, sizes ?: number[] | undefined | null, nSizes ?: number) => void;
isSynthesized : (face: AuPango.FontFace) => boolean;
getFamily : (face: AuPango.FontFace) => AuPango.FontFamily;
pangoReserved3 : void;
pangoReserved4 : void;
}
class FontFamilyClass {
parentClass : GObject.ObjectClass;
listFaces : (family: AuPango.FontFamily, faces ?: AuPango.FontFace[], nFaces ?: number) => void;
getName : (family: AuPango.FontFamily) => string;
isMonospace : (family: AuPango.FontFamily) => boolean;
isVariable : (family: AuPango.FontFamily) => boolean;
getFace : (family: AuPango.FontFamily, name: string | undefined | null) => AuPango.FontFace;
pangoReserved2 : void;
}
class FontMapClass {
parentClass : GObject.ObjectClass;
loadFont : (fontmap: AuPango.FontMap, context: AuPango.Context, desc: AuPango.FontDescription) => AuPango.Font;
listFamilies : (fontmap: AuPango.FontMap, families: AuPango.FontFamily[], nFamilies: number) => void;
loadFontset : (fontmap: AuPango.FontMap, context: AuPango.Context, desc: AuPango.FontDescription, language: AuPango.Language) => AuPango.Fontset;
shapeEngineType : string;
getSerial : (fontmap: AuPango.FontMap) => number;
changed : (fontmap: AuPango.FontMap) => void;
getFamily : (fontmap: AuPango.FontMap, name: string) => AuPango.FontFamily;
getFace : void;
}
class FontMetrics {
refCount : number;
ascent : number;
descent : number;
height : number;
approximateCharWidth : number;
approximateDigitWidth : number;
underlinePosition : number;
underlineThickness : number;
strikethroughPosition : number;
strikethroughThickness : number;
getApproximateCharWidth(): number;
getApproximateDigitWidth(): number;
getAscent(): number;
getDescent(): number;
getHeight(): number;
getStrikethroughPosition(): number;
getStrikethroughThickness(): number;
getUnderlinePosition(): number;
getUnderlineThickness(): number;
ref(): AuPango.FontMetrics;
unref(): void;
}
class FontsetClass {
parentClass : GObject.ObjectClass;
getFont : (fontset: AuPango.Fontset, wc: number) => AuPango.Font;
getMetrics : (fontset: AuPango.Fontset) => AuPango.FontMetrics;
getLanguage : (fontset: AuPango.Fontset) => AuPango.Language;
foreach : (fontset: AuPango.Fontset, func: (fontset: AuPango.Fontset, font: AuPango.Font) => boolean) => void;
pangoReserved1 : void;
pangoReserved2 : void;
pangoReserved3 : void;
pangoReserved4 : void;
}
class FontsetSimpleClass {
}
class GlyphGeometry {
width : number;
XOffset : number;
YOffset : number;
}
class GlyphInfo {
glyph : number;
geometry : AuPango.GlyphGeometry;
attr : AuPango.GlyphVisAttr;
}
class GlyphItem {
item : AuPango.Item;
glyphs : AuPango.GlyphString;
YOffset : number;
startXOffset : number;
endXOffset : number;
applyAttrs(text: string, list: AuPango.AttrList): AuPango.GlyphItem[];
copy(): AuPango.GlyphItem;
free(): void;
getLogicalWidths(text: string, logicalWidths: number[]): void;
letterSpace(text: string, logAttrs: AuPango.LogAttr[], letterSpacing: number): void;
split(text: string, splitIndex: number): AuPango.GlyphItem;
}
class GlyphItemIter {
glyphItem : AuPango.GlyphItem;
text : string;
startGlyph : number;
startIndex : number;
startChar : number;
endGlyph : number;
endIndex : number;
endChar : number;
copy(): AuPango.GlyphItemIter;
free(): void;
initEnd(glyphItem: AuPango.GlyphItem, text: string): boolean;
initStart(glyphItem: AuPango.GlyphItem, text: string): boolean;
nextCluster(): boolean;
prevCluster(): boolean;
}
class GlyphString {
numGlyphs : number;
glyphs : AuPango.GlyphInfo[];
logClusters : number;
space : number;
static New(): AuPango.GlyphString;
copy(): AuPango.GlyphString;
extents(font: AuPango.Font, inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
extentsRange(start: number, end: number, font: AuPango.Font, inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
free(): void;
getLogicalWidths(text: string, length: number, embeddingLevel: number, logicalWidths: number[]): void;
getWidth(): number;
indexToX(text: string, length: number, analysis: AuPango.Analysis, index: number, trailing: boolean, XPos: number): void;
indexToXFull(text: string, length: number, analysis: AuPango.Analysis, attrs: AuPango.LogAttr | undefined | null, index: number, trailing: boolean, XPos: number): void;
setSize(newLen: number): void;
XToIndex(text: string, length: number, analysis: AuPango.Analysis, XPos: number, index: number, trailing: number): void;
}
class GlyphVisAttr {
isClusterStart : number;
isColor : number;
}
class Item {
offset : number;
length : number;
numChars : number;
analysis : AuPango.Analysis;
static New(): AuPango.Item;
applyAttrs(iter: AuPango.AttrIterator): void;
copy(): AuPango.Item;
free(): void;
split(splitIndex: number, splitOffset: number): AuPango.Item;
}
class Language {
getSampleString(): string;
getScripts(numScripts ?: number): AuPango.Script[];
includesScript(script: AuPango.Script): boolean;
matches(rangeList: string): boolean;
static FromString(language: string | undefined | null): AuPango.Language;
static GetDefault(): AuPango.Language;
static GetPreferred(): AuPango.Language;
}
class LayoutClass {
}
class LayoutIter {
atLastLine(): boolean;
copy(): AuPango.LayoutIter;
free(): void;
getBaseline(): number;
getCharExtents(logicalRect: AuPango.Rectangle): void;
getClusterExtents(inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getIndex(): number;
getLayout(): AuPango.Layout;
getLayoutExtents(inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getLine(): AuPango.LayoutLine;
getLineExtents(inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getLineReadonly(): AuPango.LayoutLine;
getLineYRange(Y0 ?: number, Y1 ?: number): void;
getRun(): AuPango.GlyphItem;
getRunBaseline(): number;
getRunExtents(inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getRunReadonly(): AuPango.GlyphItem;
nextChar(): boolean;
nextCluster(): boolean;
nextLine(): boolean;
nextRun(): boolean;
}
class LayoutLine {
layout : AuPango.Layout;
startIndex : number;
length : number;
runs : AuPango.GlyphItem[];
isParagraphStart : number;
resolvedDir : number;
getExtents(inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getHeight(height ?: number): void;
getLength(): number;
getPixelExtents(inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getResolvedDirection(): AuPango.Direction;
getStartIndex(): number;
getXRanges(startIndex: number, endIndex: number, ranges: number[], nRanges: number): void;
indexToX(index: number, trailing: boolean, XPos: number): void;
ref(): AuPango.LayoutLine;
unref(): void;
XToIndex(XPos: number, index: number, trailing: number): boolean;
}
class LogAttr {
isLineBreak : number;
isMandatoryBreak : number;
isCharBreak : number;
isWhite : number;
isCursorPosition : number;
isWordStart : number;
isWordEnd : number;
isSentenceBoundary : number;
isSentenceStart : number;
isSentenceEnd : number;
backspaceDeletesCharacter : number;
isExpandableSpace : number;
isWordBoundary : number;
breakInsertsHyphen : number;
breakRemovesPreceding : number;
reserved : number;
}
class Matrix {
XX : number;
XY : number;
YX : number;
YY : number;
X0 : number;
Y0 : number;
concat(newMatrix: AuPango.Matrix): void;
copy(): AuPango.Matrix;
free(): void;
getFontScaleFactor(): number;
getFontScaleFactors(XScale ?: number, YScale ?: number): void;
getSlantRatio(): number;
rotate(degrees: number): void;
scale(scaleX: number, scaleY: number): void;
transformDistance(dx: number, dy: number): void;
transformPixelRectangle(rect ?: AuPango.Rectangle): void;
transformPoint(x: number, y: number): void;
transformRectangle(rect ?: AuPango.Rectangle): void;
translate(tx: number, ty: number): void;
}
class Rectangle {
x : number;
y : number;
width : number;
height : number;
}
class RendererClass {
parentClass : GObject.ObjectClass;
drawGlyphs : (renderer: AuPango.Renderer, font: AuPango.Font, glyphs: AuPango.GlyphString, x: number, y: number) => void;
drawRectangle : (renderer: AuPango.Renderer, part: AuPango.RenderPart, x: number, y: number, width: number, height: number) => void;
drawErrorUnderline : (renderer: AuPango.Renderer, x: number, y: number, width: number, height: number) => void;
drawShape : (renderer: AuPango.Renderer, attr: AuPango.AttrShape, x: number, y: number) => void;
drawTrapezoid : (renderer: AuPango.Renderer, part: AuPango.RenderPart, Y1: number, X11: number, X21: number, Y2: number, X12: number, X22: number) => void;
drawGlyph : (renderer: AuPango.Renderer, font: AuPango.Font, glyph: number, x: number, y: number) => void;
partChanged : (renderer: AuPango.Renderer, part: AuPango.RenderPart) => void;
begin : (renderer: AuPango.Renderer) => void;
end : (renderer: AuPango.Renderer) => void;
prepareRun : (renderer: AuPango.Renderer, run: AuPango.GlyphItem) => void;
drawGlyphItem : (renderer: AuPango.Renderer, text: string | undefined | null, glyphItem: AuPango.GlyphItem, x: number, y: number) => void;
pangoReserved2 : void;
pangoReserved3 : void;
pangoReserved4 : void;
}
class RendererPrivate {
}
class ScriptIter {
static New(text: string, length: number): AuPango.ScriptIter;
free(): void;
getRange(start ?: string, end ?: string, script ?: AuPango.Script): void;
next(): boolean;
}
class TabArray {
static New(initialSize: number, positionsInPixels: boolean): AuPango.TabArray;
copy(): AuPango.TabArray;
free(): void;
getDecimalPoint(tabIndex: number): string;
getPositionsInPixels(): boolean;
getSize(): number;
getTab(tabIndex: number, alignment ?: AuPango.TabAlign, location ?: number): void;
getTabs(alignments ?: AuPango.TabAlign, locations ?: number[]): void;
resize(newSize: number): void;
setDecimalPoint(tabIndex: number, decimalPoint: string): void;
setPositionsInPixels(positionsInPixels: boolean): void;
setTab(tabIndex: number, alignment: AuPango.TabAlign, location: number): void;
sort(): void;
static FromString(text: string): AuPango.TabArray;
}
class Context extends GObject.Object {
constructor(initializerList ?: ContextCtor);
static New(): AuPango.Context;
changed(): void;
getBaseDir(): AuPango.Direction;
getBaseGravity(): AuPango.Gravity;
getFontDescription(): AuPango.FontDescription;
getFontMap(): AuPango.FontMap;
getGravity(): AuPango.Gravity;
getGravityHint(): AuPango.GravityHint;
getLanguage(): AuPango.Language;
getMatrix(): AuPango.Matrix;
getMetrics(desc: AuPango.FontDescription | undefined | null, language: AuPango.Language | undefined | null): AuPango.FontMetrics;
getRoundGlyphPositions(): boolean;
getSerial(): number;
listFamilies(families: AuPango.FontFamily[], nFamilies: number): void;
loadFont(desc: AuPango.FontDescription): AuPango.Font;
loadFontset(desc: AuPango.FontDescription, language: AuPango.Language): AuPango.Fontset;
setBaseDir(direction: AuPango.Direction): void;
setBaseGravity(gravity: AuPango.Gravity): void;
setFontDescription(desc: AuPango.FontDescription): void;
setFontMap(fontMap: AuPango.FontMap): void;
setGravityHint(hint: AuPango.GravityHint): void;
setLanguage(language: AuPango.Language): void;
setMatrix(matrix: AuPango.Matrix | undefined | null): void;
setRoundGlyphPositions(roundPositions: boolean): void;
//TypeScript is complete garbage:
}
class ContextCtor {
}
class Coverage extends GObject.Object {
constructor(initializerList ?: CoverageCtor);
static New(): AuPango.Coverage;
static FromBytes(bytes: number[], nBytes: number): AuPango.Coverage;
copy(): AuPango.Coverage;
get(index: number): AuPango.CoverageLevel;
max(other: AuPango.Coverage): void;
set(index: number, level: AuPango.CoverageLevel): void;
toBytes(bytes: number[], nBytes: number): void;
//TypeScript is complete garbage:
}
class CoverageCtor {
}
class Font extends GObject.Object {
constructor(initializerList ?: FontCtor);
parentInstance : GObject.Object;
static DescriptionsFree(descs: AuPango.FontDescription[] | undefined | null, nDescs: number): void;
static Deserialize(context: AuPango.Context, bytes: AuGlibEx.Bytes): AuPango.Font;
describe(): AuPango.FontDescription;
describeWithAbsoluteSize(): AuPango.FontDescription;
getCoverage(language: AuPango.Language): AuPango.Coverage;
getFace(): AuPango.FontFace;
getFeatures(features: HarfBuzz.feature_t[], len: number, numFeatures: number): void;
getFontMap(): AuPango.FontMap;
getGlyphExtents(glyph: number, inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getLanguages(): AuPango.Language[];
getMetrics(language: AuPango.Language | undefined | null): AuPango.FontMetrics;
hasChar(wc: string): boolean;
serialize(): AuGlibEx.Bytes;
//TypeScript is complete garbage:
}
class FontCtor {
}
class FontFace extends GObject.Object {
constructor(initializerList ?: FontFaceCtor);
parentInstance : GObject.Object;
describe(): AuPango.FontDescription;
getFaceName(): string;
getFamily(): AuPango.FontFamily;
isSynthesized(): boolean;
listSizes(sizes ?: number[] | undefined | null, nSizes ?: number): void;
//TypeScript is complete garbage:
}
class FontFaceCtor {
}
class FontFamily extends GObject.Object {
constructor(initializerList ?: FontFamilyCtor);
parentInstance : GObject.Object;
getFace(name: string | undefined | null): AuPango.FontFace;
getName(): string;
isMonospace(): boolean;
isVariable(): boolean;
listFaces(faces ?: AuPango.FontFace[], nFaces ?: number): void;
//TypeScript is complete garbage:
}
class FontFamilyCtor {
}
class FontMap extends GObject.Object {
constructor(initializerList ?: FontMapCtor);
parentInstance : GObject.Object;
changed(): void;
createContext(): AuPango.Context;
getFamily(name: string): AuPango.FontFamily;
getSerial(): number;
listFamilies(families: AuPango.FontFamily[], nFamilies: number): void;
loadFont(context: AuPango.Context, desc: AuPango.FontDescription): AuPango.Font;
loadFontset(context: AuPango.Context, desc: AuPango.FontDescription, language: AuPango.Language): AuPango.Fontset;
//TypeScript is complete garbage:
}
class FontMapCtor {
}
class Fontset extends GObject.Object {
constructor(initializerList ?: FontsetCtor);
parentInstance : GObject.Object;
foreach(func: (fontset: AuPango.Fontset, font: AuPango.Font) => boolean): void;
getFont(wc: number): AuPango.Font;
getMetrics(): AuPango.FontMetrics;
//TypeScript is complete garbage:
}
class FontsetCtor {
}
class FontsetSimple extends AuPango.Fontset {
constructor(initializerList ?: FontsetSimpleCtor);
static New(language: AuPango.Language): AuPango.FontsetSimple;
append(font: AuPango.Font): void;
size(): number;
//TypeScript is complete garbage:
}
class FontsetSimpleCtor {
}
class Layout extends GObject.Object {
constructor(initializerList ?: LayoutCtor);
static New(context: AuPango.Context): AuPango.Layout;
static Deserialize(context: AuPango.Context, bytes: AuGlibEx.Bytes, flags: AuPango.LayoutDeserializeFlags): AuPango.Layout;
contextChanged(): void;
copy(): AuPango.Layout;
getAlignment(): AuPango.Alignment;
getAttributes(): AuPango.AttrList;
getAutoDir(): boolean;
getBaseline(): number;
getCaretPos(index: number, strongPos ?: AuPango.Rectangle, weakPos ?: AuPango.Rectangle): void;
getCharacterCount(): number;
getContext(): AuPango.Context;
getCursorPos(index: number, strongPos ?: AuPango.Rectangle, weakPos ?: AuPango.Rectangle): void;
getDirection(index: number): AuPango.Direction;
getEllipsize(): AuPango.EllipsizeMode;
getExtents(inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getFontDescription(): AuPango.FontDescription;
getHeight(): number;
getIndent(): number;
getIter(): AuPango.LayoutIter;
getJustify(): boolean;
getJustifyLastLine(): boolean;
getLine(line: number): AuPango.LayoutLine;
getLineCount(): number;
getLineReadonly(line: number): AuPango.LayoutLine;
getLineSpacing(): number;
getLines(): AuPango.LayoutLine[];
getLinesReadonly(): AuPango.LayoutLine[];
getLogAttrs(attrs: AuPango.LogAttr[], nAttrs: number): void;
getLogAttrsReadonly(nAttrs: number): AuPango.LogAttr[];
getPixelExtents(inkRect ?: AuPango.Rectangle, logicalRect ?: AuPango.Rectangle): void;
getPixelSize(width ?: number, height ?: number): void;
getSerial(): number;
getSingleParagraphMode(): boolean;
getSize(width ?: number, height ?: number): void;
getSpacing(): number;
getTabs(): AuPango.TabArray;
getText(): string;
getUnknownGlyphsCount(): number;
getWidth(): number;
getWrap(): AuPango.WrapMode;
indexToLineX(index: number, trailing: boolean, line ?: number, XPos ?: number): void;
indexToPos(index: number, pos: AuPango.Rectangle): void;
isEllipsized(): boolean;
isWrapped(): boolean;
moveCursorVisually(strong: boolean, oldIndex: number, oldTrailing: number, direction: number, newIndex: number, newTrailing: number): void;
serialize(flags: AuPango.LayoutSerializeFlags): AuGlibEx.Bytes;
setAlignment(alignment: AuPango.Alignment): void;
setAttributes(attrs: AuPango.AttrList | undefined | null): void;
setAutoDir(autoDir: boolean): void;
setEllipsize(ellipsize: AuPango.EllipsizeMode): void;
setFontDescription(desc: AuPango.FontDescription | undefined | null): void;
setHeight(height: number): void;
setIndent(indent: number): void;
setJustify(justify: boolean): void;
setJustifyLastLine(justify: boolean): void;
setLineSpacing(factor: number): void;
setMarkup(markup: string, length: number): void;
setMarkupWithAccel(markup: string, length: number, accelMarker: string, accelChar ?: string): void;
setSingleParagraphMode(setting: boolean): void;
setSpacing(spacing: number): void;
setTabs(tabs: AuPango.TabArray | undefined | null): void;
setText(text: string, length: number): void;
setWidth(width: number): void;
setWrap(wrap: AuPango.WrapMode): void;
writeToFile(flags: AuPango.LayoutSerializeFlags, filename: string): boolean;
XYToIndex(x: number, y: number, index: number, trailing: number): boolean;
//TypeScript is complete garbage:
}
class LayoutCtor {
}
class Renderer extends GObject.Object {
constructor(initializerList ?: RendererCtor);
parentInstance : GObject.Object;
underline : AuPango.Underline;
strikethrough : boolean;
activeCount : number;
matrix : AuPango.Matrix;
priv : AuPango.RendererPrivate;
activate(): void;
deactivate(): void;
drawErrorUnderline(x: number, y: number, width: number, height: number): void;
drawGlyph(font: AuPango.Font, glyph: number, x: number, y: number): void;
drawGlyphItem(text: string | undefined | null, glyphItem: AuPango.GlyphItem, x: number, y: number): void;
drawGlyphs(font: AuPango.Font, glyphs: AuPango.GlyphString, x: number, y: number): void;
drawLayout(layout: AuPango.Layout, x: number, y: number): void;
drawLayoutLine(line: AuPango.LayoutLine, x: number, y: number): void;
drawRectangle(part: AuPango.RenderPart, x: number, y: number, width: number, height: number): void;
drawTrapezoid(part: AuPango.RenderPart, Y1: number, X11: number, X21: number, Y2: number, X12: number, X22: number): void;
getAlpha(part: AuPango.RenderPart): number;
getColor(part: AuPango.RenderPart): AuPango.Color;
getLayout(): AuPango.Layout;
getLayoutLine(): AuPango.LayoutLine;
getMatrix(): AuPango.Matrix;
partChanged(part: AuPango.RenderPart): void;
setAlpha(part: AuPango.RenderPart, alpha: number): void;
setColor(part: AuPango.RenderPart, color: AuPango.Color | undefined | null): void;
setMatrix(matrix: AuPango.Matrix | undefined | null): void;
//TypeScript is complete garbage:
}
class RendererCtor {
}
}