Module Contents
alltypes
Module Contents
class
BoundingBox
:
Any
Module Contents
BoundingBox
(
minX
:
Float
,
minY
:
Float
,
maxX
:
Float
,
maxY
:
Float
)
BoundingBox
(
numbers
:
List
<
Number
>
)
BoundingBox
(
)
fun
contains
(
x
:
Float
,
y
:
Float
)
:
Boolean
val
height
:
Float
var
lowerLeftX
:
Float
var
lowerLeftY
:
Float
fun
toString
(
)
:
String
var
upperRightX
:
Float
var
upperRightY
:
Float
val
width
:
Float
data
class
CGGlyph
:
Any
Module Contents
CGGlyph
(
gid
:
Int
=
0
,
glyphAscent
:
Float
=
0.0f
,
glyphDescent
:
Float
=
0.0f
,
glyphWidth
:
Float
=
0.0f
)
var
gid
:
Int
var
glyphAscent
:
Float
var
glyphDescent
:
Float
var
glyphWidth
:
Float
val
isValid
:
Boolean
data
class
CGPoint
:
Any
Module Contents
CGPoint
(
x
:
Float
=
0.0f
,
y
:
Float
=
0.0f
)
var
x
:
Float
var
y
:
Float
data
class
CGRect
:
Any
Module Contents
CGRect
(
x
:
Float
=
0.0f
,
y
:
Float
=
0.0f
,
width
:
Float
=
0.0f
,
height
:
Float
=
0.0f
)
var
height
:
Float
var
width
:
Float
var
x
:
Float
var
y
:
Float
class
MTAccent
:
MTMathAtom
Module Contents
MTAccent
(
nucleus
:
String
)
fun
copyDeep
(
)
:
MTAccent
fun
finalized
(
)
:
MTAccent
var
innerList
:
MTMathList
?
fun
toLatexString
(
)
:
String
class
MTAccentDisplay
:
MTDisplay
Module Contents
MTAccentDisplay
(
accent
:
MTGlyphDisplay
,
accentee
:
MTMathListDisplay
,
range
:
NSRange
)
val
accent
:
MTGlyphDisplay
val
accentee
:
MTMathListDisplay
fun
colorChanged
(
)
:
Unit
fun
draw
(
canvas
:
Canvas
)
:
Unit
fun
positionChanged
(
)
:
Unit
fun
updateAccenteePosition
(
)
:
Unit
class
MTCTLineDisplay
:
MTDisplay
Module Contents
MTCTLineDisplay
(
str
:
String
,
range
:
NSRange
,
font
:
MTFont
,
atoms
:
List
<
MTMathAtom
>
)
val
atoms
:
List
<
MTMathAtom
>
fun
computeDimensions
(
)
:
Unit
fun
draw
(
canvas
:
Canvas
)
:
Unit
val
font
:
MTFont
val
str
:
String
class
MTCodepointChar
:
Any
Module Contents
MTCodepointChar
(
codepoint
:
Int
)
val
codepoint
:
Int
fun
toUnicodeString
(
)
:
String
enum
class
MTColumnAlignment
:
Enum
<
MTColumnAlignment
>
Module Contents
KMTColumnAlignmentCenter
KMTColumnAlignmentLeft
KMTColumnAlignmentRight
open
class
MTDisplay
:
Any
Module Contents
MTDisplay
(
ascent
:
Float
=
0.0f
,
descent
:
Float
=
0.0f
,
width
:
Float
=
0.0f
,
range
:
NSRange
=
NSRange()
,
hasScript
:
Boolean
=
false
)
open
var
ascent
:
Float
open
fun
colorChanged
(
)
:
Unit
open
var
descent
:
Float
fun
displayBounds
(
)
:
CGRect
open
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
hasScript
:
Boolean
var
localTextColor
:
Int
var
position
:
CGPoint
open
fun
positionChanged
(
)
:
Unit
var
range
:
NSRange
var
shiftDown
:
Float
var
textColor
:
Int
open
var
width
:
Float
class
MTDrawFreeType
:
Any
Module Contents
MTDrawFreeType
(
mathfont
:
MTFontMathTable
)
fun
drawGlyph
(
canvas
:
Canvas
,
p
:
Paint
,
gid
:
Int
,
x
:
Float
,
y
:
Float
)
:
Unit
val
mathfont
:
MTFontMathTable
data
class
MTEnvProperties
:
Any
Module Contents
MTEnvProperties
(
envName
:
String
?
,
ended
:
Boolean
=
false
,
numRows
:
Long
=
0
)
var
ended
:
Boolean
var
envName
:
String
?
var
numRows
:
Long
class
MTFont
:
Any
Module Contents
MTFont
(
assets
:
AssetManager
,
name
:
String
,
fontSize
:
Float
,
isCopy
:
Boolean
=
false
)
fun
copyFontWithSize
(
size
:
Float
)
:
MTFont
fun
findGlyphForCharacterAtIndex
(
index
:
Int
,
str
:
String
)
:
CGGlyph
val
fontSize
:
Float
fun
getGidListForString
(
str
:
String
)
:
List
<
Int
>
fun
getGlyphName
(
gid
:
Int
)
:
String
fun
getGlyphWithName
(
glyphName
:
String
)
:
Int
var
mathTable
:
MTFontMathTable
val
name
:
String
class
MTFontManager
:
Any
Module Contents
MTFontManager
(
)
fun
defaultFont
(
)
:
MTFont
?
fun
fontWithName
(
name
:
String
,
size
:
Float
)
:
MTFont
?
fun
latinModernFontWithSize
(
size
:
Float
)
:
MTFont
?
fun
setContext
(
context
:
Context
)
:
Unit
fun
termesFontWithSize
(
size
:
Float
)
:
MTFont
?
fun
xitsFontWithSize
(
size
:
Float
)
:
MTFont
?
class
MTFontMathTable
:
Any
Module Contents
MTFontMathTable
(
font
:
MTFont
,
istreamotf
:
InputStream
?
)
val
accentBaseHeight
:
Float
val
axisHeight
:
Float
fun
checkFontSize
(
)
:
<ERROR CLASS>
fun
constantFromTable
(
constName
:
String
)
:
Float
fun
copyFontTableWithSize
(
size
:
Float
)
:
MTFontMathTable
val
delimitedSubFormulaMinHeight
:
Float
val
displayOperatorMinHeight
:
Float
val
flattenedAccentBaseHeight
:
Float
val
font
:
MTFont
var
fontSize
:
Float
fun
fontUnitsBox
(
b
:
BoundingBox
)
:
BoundingBox
val
fractionDelimiterDisplayStyleSize
:
Float
val
fractionDelimiterSize
:
Float
val
fractionDenominatorDisplayStyleGapMin
:
Float
val
fractionDenominatorDisplayStyleShiftDown
:
Float
val
fractionDenominatorGapMin
:
Float
val
fractionDenominatorShiftDown
:
Float
val
fractionNumeratorDisplayStyleGapMin
:
Float
val
fractionNumeratorDisplayStyleShiftUp
:
Float
val
fractionNumeratorGapMin
:
Float
val
fractionNumeratorShiftUp
:
Float
val
fractionRuleThickness
:
Float
lateinit
var
freeTypeMathTable
:
<ERROR CLASS>
lateinit
var
freeface
:
<ERROR CLASS>
fun
getAdvancesForGlyphs
(
glyphs
:
List
<
Int
>
,
advances
:
Array
<
Float
>
,
count
:
Int
)
:
Unit
fun
getBoundingRectsForGlyphs
(
glyphs
:
List
<
Int
>
,
boundingRects
:
Array
<
BoundingBox
?
>
?
,
count
:
Int
)
:
BoundingBox
fun
getGlyphForCodepoint
(
codepoint
:
Int
)
:
Int
fun
getGlyphName
(
gid
:
Int
)
:
String
fun
getGlyphWithName
(
glyphName
:
String
)
:
Int
fun
getHorizontalVariantsForGlyph
(
glyph
:
CGGlyph
)
:
List
<
Int
>
fun
getItalicCorrection
(
gid
:
Int
)
:
Float
fun
getLargerGlyph
(
glyph
:
Int
)
:
Int
fun
getTopAccentAdjustment
(
glyph
:
Int
)
:
Float
fun
getVerticalGlyphAssemblyForGlyph
(
glyph
:
Int
)
:
List
<
MTGlyphPart
>
?
fun
getVerticalVariantsForGlyph
(
glyph
:
CGGlyph
)
:
List
<
Int
>
var
istreamotf
:
InputStream
?
val
limitExtraAscenderDescender
:
Float
val
lowerLimitBaselineDropMin
:
Float
val
lowerLimitGapMin
:
Float
val
mathLeading
:
Float
val
minConnectorOverlap
:
Float
fun
muUnit
(
)
:
Float
val
overbarExtraAscender
:
Float
val
overbarRuleThickness
:
Float
val
overbarVerticalGap
:
Float
fun
percentFromTable
(
percentName
:
String
)
:
Float
val
radicalDegreeBottomRaisePercent
:
Float
val
radicalDisplayStyleVerticalGap
:
Float
val
radicalExtraAscender
:
Float
val
radicalKernAfterDegree
:
Float
val
radicalKernBeforeDegree
:
Float
val
radicalRuleThickness
:
Float
val
radicalVerticalGap
:
Float
val
scriptScaleDown
:
Float
val
scriptScriptScaleDown
:
Float
val
skewedFractionHorizontalGap
:
Float
val
skewedFractionVerticalGap
:
Float
val
spaceAfterScript
:
Float
val
stackBottomDisplayStyleShiftDown
:
Float
val
stackBottomShiftDown
:
Float
val
stackDisplayStyleGapMin
:
Float
val
stackGapMin
:
Float
val
stackTopDisplayStyleShiftUp
:
Float
val
stackTopShiftUp
:
Float
val
stretchStackBottomShiftDown
:
Float
val
stretchStackGapAboveMin
:
Float
val
stretchStackGapBelowMin
:
Float
val
stretchStackTopShiftUp
:
Float
val
subSuperscriptGapMin
:
Float
val
subscriptBaselineDropMin
:
Float
val
subscriptShiftDown
:
Float
val
subscriptTopMax
:
Float
val
superscriptBaselineDropMax
:
Float
val
superscriptBottomMaxWithSubscript
:
Float
val
superscriptBottomMin
:
Float
val
superscriptShiftUp
:
Float
val
superscriptShiftUpCramped
:
Float
val
underbarExtraDescender
:
Float
val
underbarRuleThickness
:
Float
val
underbarVerticalGap
:
Float
fun
unionBounds
(
u
:
BoundingBox
,
b
:
BoundingBox
)
:
Unit
var
unitsPerEm
:
Int
val
upperLimitBaselineRiseMin
:
Float
val
upperLimitGapMin
:
Float
enum
class
MTFontStyle
:
Enum
<
MTFontStyle
>
Module Contents
KMTFontStyleBlackboard
KMTFontStyleBold
KMTFontStyleBoldItalic
KMTFontStyleCaligraphic
KMTFontStyleDefault
KMTFontStyleFraktur
KMTFontStyleItalic
KMTFontStyleRoman
KMTFontStyleSansSerif
KMTFontStyleTypewriter
class
MTFraction
:
MTMathAtom
Module Contents
MTFraction
(
rule
:
Boolean
)
MTFraction
(
)
fun
copyDeep
(
)
:
MTFraction
var
denominator
:
MTMathList
?
fun
finalized
(
)
:
MTFraction
var
hasRule
:
Boolean
var
leftDelimiter
:
String
?
var
numerator
:
MTMathList
?
var
rightDelimiter
:
String
?
fun
toLatexString
(
)
:
String
class
MTFractionDisplay
:
MTDisplay
Module Contents
MTFractionDisplay
(
numerator
:
MTMathListDisplay
,
denominator
:
MTMathListDisplay
,
range
:
NSRange
)
var
ascent
:
Float
fun
colorChanged
(
)
:
Unit
var
denominator
:
MTMathListDisplay
var
denominatorDown
:
Float
var
descent
:
Float
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
linePosition
:
Float
var
lineThickness
:
Float
var
numerator
:
MTMathListDisplay
var
numeratorUp
:
Float
fun
positionChanged
(
)
:
Unit
fun
updateDenominatorPosition
(
)
:
Unit
fun
updateNumeratorPosition
(
)
:
Unit
var
width
:
Float
class
MTGlyphConstructionDisplay
:
MTDisplay
Module Contents
MTGlyphConstructionDisplay
(
glyphs
:
MutableList
<
Int
>
,
offsets
:
MutableList
<
Float
>
,
myfont
:
MTFont
)
var
ascent
:
Float
var
descent
:
Float
fun
draw
(
canvas
:
Canvas
)
:
Unit
val
glyphs
:
MutableList
<
Int
>
val
myfont
:
MTFont
val
offsets
:
MutableList
<
Float
>
class
MTGlyphDisplay
:
MTDisplay
Module Contents
MTGlyphDisplay
(
glyph
:
CGGlyph
,
range
:
NSRange
,
myfont
:
MTFont
)
var
ascent
:
Float
var
descent
:
Float
fun
draw
(
canvas
:
Canvas
)
:
Unit
val
glyph
:
CGGlyph
val
myfont
:
MTFont
data
class
MTGlyphPart
:
Any
Module Contents
MTGlyphPart
(
glyph
:
Int
=
0
,
fullAdvance
:
Float
=
0f
,
startConnectorLength
:
Float
=
0f
,
endConnectorLength
:
Float
=
0f
,
isExtender
:
Boolean
=
false
)
var
endConnectorLength
:
Float
var
fullAdvance
:
Float
var
glyph
:
Int
var
isExtender
:
Boolean
var
startConnectorLength
:
Float
class
MTInner
:
MTMathAtom
Module Contents
MTInner
(
)
fun
copyDeep
(
)
:
MTInner
fun
finalized
(
)
:
MTInner
var
innerList
:
MTMathList
?
var
leftBoundary
:
MTMathAtom
?
var
rightBoundary
:
MTMathAtom
?
fun
toLatexString
(
)
:
String
enum
class
MTInterElementSpaceType
:
Enum
<
MTInterElementSpaceType
>
Module Contents
kMTSpaceInvalid
kMTSpaceNSMedium
kMTSpaceNSThick
kMTSpaceNSThin
kMTSpaceNone
kMTSpaceThin
class
MTLargeOpLimitsDisplay
:
MTDisplay
Module Contents
MTLargeOpLimitsDisplay
(
nucleus
:
MTDisplay
,
upperLimit
:
MTMathListDisplay
?
,
lowerLimit
:
MTMathListDisplay
?
,
limitShift
:
Float
,
extraPadding
:
Float
)
var
ascent
:
Float
fun
colorChanged
(
)
:
Unit
var
descent
:
Float
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
extraPadding
:
Float
var
limitShift
:
Float
var
lowerLimit
:
MTMathListDisplay
?
var
lowerLimitGap
:
Float
val
nucleus
:
MTDisplay
fun
positionChanged
(
)
:
Unit
fun
updateLowerLimitPosition
(
)
:
Unit
fun
updateNucleusPosition
(
)
:
Unit
fun
updateUpperLimitPosition
(
)
:
Unit
var
upperLimit
:
MTMathListDisplay
?
var
upperLimitGap
:
Float
class
MTLargeOperator
:
MTMathAtom
Module Contents
MTLargeOperator
(
nucleus
:
String
,
limits
:
Boolean
)
MTLargeOperator
(
nucleus
:
String
)
fun
copyDeep
(
)
:
MTLargeOperator
var
hasLimits
:
Boolean
class
MTLineDisplay
:
MTDisplay
Module Contents
MTLineDisplay
(
inner
:
MTMathListDisplay
,
range
:
NSRange
)
fun
colorChanged
(
)
:
Unit
fun
draw
(
canvas
:
Canvas
)
:
Unit
val
inner
:
MTMathListDisplay
var
lineShiftUp
:
Float
var
lineThickness
:
Float
fun
positionChanged
(
)
:
Unit
fun
updateInnerPosition
(
)
:
Unit
enum
class
MTLinePosition
:
Enum
<
MTLinePosition
>
Module Contents
kMTLinePositionRegular
kMTLinePositionSubscript
kMTLinePositionSuperscript
enum
class
MTLineStyle
:
Enum
<
MTLineStyle
>
Module Contents
KMTLineStyleDisplay
KMTLineStyleScript
KMTLineStyleScriptScript
KMTLineStyleText
open
class
MTMathAtom
:
Any
Module Contents
MTMathAtom
(
type
:
MTMathAtomType
,
nucleus
:
String
)
fun
atomForCharacter
(
ch
:
Char
)
:
MTMathAtom
?
fun
atomWithType
(
type
:
MTMathAtomType
,
value
:
String
)
:
MTMathAtom
open
fun
copyDeep
(
)
:
MTMathAtom
fun
copyDeepContent
(
atom
:
MTMathAtom
)
:
MTMathAtom
fun
description
(
)
:
String
fun
finalized
(
newNode
:
MTMathAtom
)
:
MTMathAtom
open
fun
finalized
(
)
:
MTMathAtom
var
fontStyle
:
MTFontStyle
fun
fuse
(
atom
:
MTMathAtom
)
:
Unit
var
fusedAtoms
:
<ERROR CLASS>
var
indexRange
:
NSRange
fun
isNotBinaryOperator
(
prevNode
:
MTMathAtom
?
)
:
Boolean
var
nucleus
:
String
fun
scriptsAllowed
(
)
:
Boolean
var
subScript
:
MTMathList
?
var
superScript
:
MTMathList
?
open
fun
toLatexString
(
)
:
String
fun
toStringSubs
(
s
:
String
)
:
String
var
type
:
MTMathAtomType
fun
typeToText
(
type
:
MTMathAtomType
)
:
String
open
class
MTMathAtomFactory
:
Any
Module Contents
MTMathAtomFactory
(
)
fun
accentName
(
accent
:
MTAccent
)
:
String
?
fun
accentWithName
(
accentName
:
String
)
:
MTAccent
?
fun
addLatexSymbol
(
name
:
String
,
atom
:
MTMathAtom
)
:
Unit
val
aliases
:
<ERROR CLASS>
<
String
,
String
>
fun
atomForLatexSymbolName
(
symbolName
:
String
)
:
MTMathAtom
?
fun
boundaryAtomForDelimiterName
(
delimName
:
String
)
:
MTMathAtom
?
fun
delimiterNameForBoundaryAtom
(
boundary
:
MTMathAtom
)
:
String
?
fun
fontNameForStyle
(
fontStyle
:
MTFontStyle
)
:
String
val
fontStyleWithName
:
<ERROR CLASS>
<
String
,
MTFontStyle
>
fun
fractionWithNumerator
(
numStr
:
String
,
denominatorStr
:
String
)
:
MTFraction
fun
latexSymbolNameForAtom
(
atom
:
MTMathAtom
)
:
String
?
fun
mathListForCharacters
(
chars
:
String
)
:
MTMathList
fun
operatorWithName
(
name
:
String
,
limits
:
Boolean
)
:
MTLargeOperator
fun
supportedLatexSymbolNames
(
)
:
List
<
String
>
fun
tableWithEnvironment
(
env
:
String
?
,
cells
:
MutableList
<
MutableList
<
MTMathList
>
>
,
error
:
MTParseError
)
:
MTMathAtom
?
fun
times
(
)
:
MTMathAtom
enum
class
MTMathAtomType
:
Enum
<
MTMathAtomType
>
Module Contents
KMTMathAtomAccent
KMTMathAtomBinaryOperator
KMTMathAtomBoundary
KMTMathAtomClose
KMTMathAtomColor
KMTMathAtomFraction
KMTMathAtomInner
KMTMathAtomLargeOperator
KMTMathAtomNone
KMTMathAtomNumber
KMTMathAtomOpen
KMTMathAtomOrdinary
KMTMathAtomOverline
KMTMathAtomPlaceholder
KMTMathAtomPunctuation
KMTMathAtomRadical
KMTMathAtomRelation
KMTMathAtomSpace
KMTMathAtomStyle
KMTMathAtomTable
KMTMathAtomUnaryOperator
KMTMathAtomUnderline
KMTMathAtomVariable
class
MTMathColor
:
MTMathAtom
Module Contents
MTMathColor
(
)
var
colorString
:
String
?
fun
copyDeep
(
)
:
MTMathColor
fun
finalized
(
)
:
MTMathColor
var
innerList
:
MTMathList
?
fun
toLatexString
(
)
:
String
class
MTMathList
:
Any
Module Contents
MTMathList
(
vararg
alist
:
MTMathAtom
)
MTMathList
(
alist
:
MutableList
<
MTMathAtom
>
)
fun
addAtom
(
atom
:
MTMathAtom
)
:
Unit
fun
append
(
list
:
MTMathList
)
:
Unit
var
atoms
:
<ERROR CLASS>
fun
copyDeep
(
)
:
MTMathList
fun
description
(
)
:
String
fun
finalized
(
)
:
MTMathList
fun
insertAtom
(
atom
:
MTMathAtom
,
index
:
Int
)
:
Unit
fun
toString
(
)
:
String
class
MTMathListBuilder
:
Any
Module Contents
MTMathListBuilder
(
str
:
String
)
fun
build
(
)
:
MTMathList
?
fun
buildFromString
(
str
:
String
)
:
MTMathList
?
fun
buildFromString
(
str
:
String
,
error
:
MTParseError
)
:
MTMathList
?
fun
copyError
(
dst
:
MTParseError
)
:
Unit
fun
errorActive
(
)
:
Boolean
fun
toLatexString
(
ml
:
MTMathList
)
:
String
class
MTMathListDisplay
:
MTDisplay
Module Contents
MTMathListDisplay
(
displays
:
List
<
MTDisplay
>
,
range
:
NSRange
)
fun
colorChanged
(
)
:
Unit
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
index
:
Int
fun
recomputeDimensions
(
)
:
Unit
var
subDisplays
:
List
<
MTDisplay
>
?
var
type
:
MTLinePosition
class
MTMathSpace
:
MTMathAtom
Module Contents
MTMathSpace
(
sp
:
Float
)
MTMathSpace
(
)
fun
copyDeep
(
)
:
MTMathSpace
var
space
:
Float
class
MTMathStyle
:
MTMathAtom
Module Contents
MTMathStyle
(
st
:
MTLineStyle
)
MTMathStyle
(
)
fun
copyDeep
(
)
:
MTMathStyle
var
style
:
MTLineStyle
class
MTMathTable
:
MTMathAtom
Module Contents
MTMathTable
(
env
:
String
?
)
MTMathTable
(
)
var
cells
:
MutableList
<
MutableList
<
MTMathList
>
>
fun
copyDeep
(
)
:
MTMathTable
var
environment
:
String
?
fun
finalized
(
)
:
MTMathTable
fun
getAlignmentForColumn
(
column
:
Int
)
:
MTColumnAlignment
var
interColumnSpacing
:
Float
var
interRowAdditionalSpacing
:
Float
fun
numColumns
(
)
:
Int
fun
numRows
(
)
:
Int
fun
setAlignment
(
alignment
:
MTColumnAlignment
,
column
:
Int
)
:
Unit
fun
setCell
(
list
:
MTMathList
,
row
:
Int
,
column
:
Int
)
:
Unit
class
MTMathView
:
View
Module Contents
MTMathView
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
,
defStyle
:
Int
=
0
)
enum
class
MTMathViewMode
:
Enum
<
MTMathViewMode
>
Module Contents
KMTMathViewModeDisplay
KMTMathViewModeText
enum
class
MTTextAlignment
:
Enum
<
MTTextAlignment
>
Module Contents
KMTTextAlignmentCenter
KMTTextAlignmentLeft
KMTTextAlignmentRight
fun
convertDpToPixel
(
dp
:
Float
)
:
Float
var
displayErrorInline
:
Boolean
val
errorFontSize
:
Float
var
font
:
MTFont
?
var
fontSize
:
Float
var
labelMode
:
MTMathViewMode
val
lastError
:
MTParseError
var
latex
:
String
var
mathList
:
MTMathList
?
protected
fun
onDraw
(
canvas
:
Canvas
)
:
Unit
protected
fun
onMeasure
(
widthMeasureSpec
:
Int
,
heightMeasureSpec
:
Int
)
:
Unit
var
textAlignment
:
MTTextAlignment
var
textColor
:
Int
class
MTOverLine
:
MTMathAtom
Module Contents
MTOverLine
(
)
fun
copyDeep
(
)
:
MTOverLine
fun
finalized
(
)
:
MTOverLine
var
innerList
:
MTMathList
?
fun
toLatexString
(
)
:
String
data
class
MTParseError
:
Any
Module Contents
MTParseError
(
errorcode
:
MTParseErrors
=
MTParseErrors.ErrorNone
,
errordesc
:
String
?
=
null
)
fun
clear
(
)
:
Unit
fun
copyFrom
(
src
:
MTParseError
?
)
:
Unit
var
errorcode
:
MTParseErrors
var
errordesc
:
String
?
enum
class
MTParseErrors
:
Enum
<
MTParseErrors
>
Module Contents
CharacterNotFound
ErrorNone
InternalError
InvalidCommand
InvalidDelimiter
InvalidEnv
InvalidLimits
InvalidNumColumns
MismatchBraces
MissingBegin
MissingDelimiter
MissingEnd
MissingEnv
MissingLeft
MissingRight
class
MTRadical
:
MTMathAtom
Module Contents
MTRadical
(
)
fun
copyDeep
(
)
:
MTRadical
var
degree
:
MTMathList
?
fun
finalized
(
)
:
MTRadical
var
radicand
:
MTMathList
?
fun
toLatexString
(
)
:
String
class
MTRadicalDisplay
:
MTDisplay
Module Contents
MTRadicalDisplay
(
radicand
:
MTMathListDisplay
,
radicalGlyph
:
MTDisplay
,
range
:
NSRange
)
fun
colorChanged
(
)
:
Unit
var
degree
:
MTMathListDisplay
?
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
lineThickness
:
Float
fun
positionChanged
(
)
:
Unit
val
radicalGlyph
:
MTDisplay
var
radicalShift
:
Float
val
radicand
:
MTMathListDisplay
fun
setDegree
(
degree
:
MTMathListDisplay
,
fontMetrics
:
MTFontMathTable
)
:
Unit
var
topKern
:
Float
fun
updateRadicandPosition
(
)
:
Unit
class
MTTypesetter
:
Any
Module Contents
MTTypesetter
(
font
:
MTFont
,
linestyle
:
MTLineStyle
,
cramped
:
Boolean
=
false
,
spaced
:
Boolean
=
false
)
var
cramped
:
Boolean
fun
createLineForMathList
(
mathList
:
MTMathList
,
font
:
MTFont
,
style
:
MTLineStyle
)
:
MTMathListDisplay
fun
createLineForMathList
(
mathList
:
MTMathList
,
font
:
MTFont
,
style
:
MTLineStyle
,
cramped
:
Boolean
)
:
MTMathListDisplay
var
currentAtoms
:
MutableList
<
MTMathAtom
>
var
currentLine
:
String
var
currentLineIndexRange
:
NSRange
val
currentPosition
:
CGPoint
fun
denominatorGapMin
(
)
:
Float
fun
denominatorShiftDown
(
hasRule
:
Boolean
)
:
Float
var
displayAtoms
:
MutableList
<
MTDisplay
>
val
font
:
MTFont
fun
fractionDelimiterHeight
(
)
:
Float
fun
numeratorGapMin
(
)
:
Float
fun
numeratorShiftUp
(
hasRule
:
Boolean
)
:
Float
fun
preprocessMathList
(
ml
:
MTMathList
)
:
MutableList
<
MTMathAtom
>
var
spaced
:
Boolean
fun
stackGapMin
(
)
:
Float
var
style
:
MTLineStyle
var
styleFont
:
MTFont
class
MTUnderLine
:
MTMathAtom
Module Contents
MTUnderLine
(
)
fun
copyDeep
(
)
:
MTUnderLine
fun
finalized
(
)
:
MTUnderLine
var
innerList
:
MTMathList
?
fun
toLatexString
(
)
:
String
class
MathDisplayException
:
Exception
Module Contents
MathDisplayException
(
message
:
String
)
var
message
:
String
data
class
NSRange
:
Any
Module Contents
NSRange
(
location
:
Int
=
NSNotFound
,
length
:
Int
=
0
)
fun
equal
(
cmp
:
NSRange
)
:
Boolean
var
length
:
Int
var
location
:
Int
val
maxrange
:
Int
fun
union
(
a
:
NSRange
)
:
NSRange
package
com.agog.mathdisplay
Module Contents
const
val
KDefaultFontSize
:
Float
class
MTFontManager
:
Any
Module Contents
MTFontManager
(
)
fun
defaultFont
(
)
:
MTFont
?
fun
fontWithName
(
name
:
String
,
size
:
Float
)
:
MTFont
?
fun
latinModernFontWithSize
(
size
:
Float
)
:
MTFont
?
fun
setContext
(
context
:
Context
)
:
Unit
fun
termesFontWithSize
(
size
:
Float
)
:
MTFont
?
fun
xitsFontWithSize
(
size
:
Float
)
:
MTFont
?
class
MTMathView
:
View
Module Contents
MTMathView
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
,
defStyle
:
Int
=
0
)
enum
class
MTMathViewMode
:
Enum
<
MTMathViewMode
>
Module Contents
KMTMathViewModeDisplay
KMTMathViewModeText
enum
class
MTTextAlignment
:
Enum
<
MTTextAlignment
>
Module Contents
KMTTextAlignmentCenter
KMTTextAlignmentLeft
KMTTextAlignmentRight
fun
convertDpToPixel
(
dp
:
Float
)
:
Float
var
displayErrorInline
:
Boolean
val
errorFontSize
:
Float
var
font
:
MTFont
?
var
fontSize
:
Float
var
labelMode
:
MTMathViewMode
val
lastError
:
MTParseError
var
latex
:
String
var
mathList
:
MTMathList
?
protected
fun
onDraw
(
canvas
:
Canvas
)
:
Unit
protected
fun
onMeasure
(
widthMeasureSpec
:
Int
,
heightMeasureSpec
:
Int
)
:
Unit
var
textAlignment
:
MTTextAlignment
var
textColor
:
Int
package
com.agog.mathdisplay.parse
Module Contents
class
MTAccent
:
MTMathAtom
Module Contents
MTAccent
(
nucleus
:
String
)
fun
copyDeep
(
)
:
MTAccent
fun
finalized
(
)
:
MTAccent
var
innerList
:
MTMathList
?
fun
toLatexString
(
)
:
String
enum
class
MTColumnAlignment
:
Enum
<
MTColumnAlignment
>
Module Contents
KMTColumnAlignmentCenter
KMTColumnAlignmentLeft
KMTColumnAlignmentRight
data
class
MTEnvProperties
:
Any
Module Contents
MTEnvProperties
(
envName
:
String
?
,
ended
:
Boolean
=
false
,
numRows
:
Long
=
0
)
var
ended
:
Boolean
var
envName
:
String
?
var
numRows
:
Long
enum
class
MTFontStyle
:
Enum
<
MTFontStyle
>
Module Contents
KMTFontStyleBlackboard
KMTFontStyleBold
KMTFontStyleBoldItalic
KMTFontStyleCaligraphic
KMTFontStyleDefault
KMTFontStyleFraktur
KMTFontStyleItalic
KMTFontStyleRoman
KMTFontStyleSansSerif
KMTFontStyleTypewriter
class
MTFraction
:
MTMathAtom
Module Contents
MTFraction
(
rule
:
Boolean
)
MTFraction
(
)
fun
copyDeep
(
)
:
MTFraction
var
denominator
:
MTMathList
?
fun
finalized
(
)
:
MTFraction
var
hasRule
:
Boolean
var
leftDelimiter
:
String
?
var
numerator
:
MTMathList
?
var
rightDelimiter
:
String
?
fun
toLatexString
(
)
:
String
class
MTInner
:
MTMathAtom
Module Contents
MTInner
(
)
fun
copyDeep
(
)
:
MTInner
fun
finalized
(
)
:
MTInner
var
innerList
:
MTMathList
?
var
leftBoundary
:
MTMathAtom
?
var
rightBoundary
:
MTMathAtom
?
fun
toLatexString
(
)
:
String
class
MTLargeOperator
:
MTMathAtom
Module Contents
MTLargeOperator
(
nucleus
:
String
,
limits
:
Boolean
)
MTLargeOperator
(
nucleus
:
String
)
fun
copyDeep
(
)
:
MTLargeOperator
var
hasLimits
:
Boolean
enum
class
MTLineStyle
:
Enum
<
MTLineStyle
>
Module Contents
KMTLineStyleDisplay
KMTLineStyleScript
KMTLineStyleScriptScript
KMTLineStyleText
open
class
MTMathAtom
:
Any
Module Contents
MTMathAtom
(
type
:
MTMathAtomType
,
nucleus
:
String
)
fun
atomForCharacter
(
ch
:
Char
)
:
MTMathAtom
?
fun
atomWithType
(
type
:
MTMathAtomType
,
value
:
String
)
:
MTMathAtom
open
fun
copyDeep
(
)
:
MTMathAtom
fun
copyDeepContent
(
atom
:
MTMathAtom
)
:
MTMathAtom
fun
description
(
)
:
String
fun
finalized
(
newNode
:
MTMathAtom
)
:
MTMathAtom
open
fun
finalized
(
)
:
MTMathAtom
var
fontStyle
:
MTFontStyle
fun
fuse
(
atom
:
MTMathAtom
)
:
Unit
var
fusedAtoms
:
<ERROR CLASS>
var
indexRange
:
NSRange
fun
isNotBinaryOperator
(
prevNode
:
MTMathAtom
?
)
:
Boolean
var
nucleus
:
String
fun
scriptsAllowed
(
)
:
Boolean
var
subScript
:
MTMathList
?
var
superScript
:
MTMathList
?
open
fun
toLatexString
(
)
:
String
fun
toStringSubs
(
s
:
String
)
:
String
var
type
:
MTMathAtomType
fun
typeToText
(
type
:
MTMathAtomType
)
:
String
open
class
MTMathAtomFactory
:
Any
Module Contents
MTMathAtomFactory
(
)
fun
accentName
(
accent
:
MTAccent
)
:
String
?
fun
accentWithName
(
accentName
:
String
)
:
MTAccent
?
fun
addLatexSymbol
(
name
:
String
,
atom
:
MTMathAtom
)
:
Unit
val
aliases
:
<ERROR CLASS>
<
String
,
String
>
fun
atomForLatexSymbolName
(
symbolName
:
String
)
:
MTMathAtom
?
fun
boundaryAtomForDelimiterName
(
delimName
:
String
)
:
MTMathAtom
?
fun
delimiterNameForBoundaryAtom
(
boundary
:
MTMathAtom
)
:
String
?
fun
fontNameForStyle
(
fontStyle
:
MTFontStyle
)
:
String
val
fontStyleWithName
:
<ERROR CLASS>
<
String
,
MTFontStyle
>
fun
fractionWithNumerator
(
numStr
:
String
,
denominatorStr
:
String
)
:
MTFraction
fun
latexSymbolNameForAtom
(
atom
:
MTMathAtom
)
:
String
?
fun
mathListForCharacters
(
chars
:
String
)
:
MTMathList
fun
operatorWithName
(
name
:
String
,
limits
:
Boolean
)
:
MTLargeOperator
fun
supportedLatexSymbolNames
(
)
:
List
<
String
>
fun
tableWithEnvironment
(
env
:
String
?
,
cells
:
MutableList
<
MutableList
<
MTMathList
>
>
,
error
:
MTParseError
)
:
MTMathAtom
?
fun
times
(
)
:
MTMathAtom
enum
class
MTMathAtomType
:
Enum
<
MTMathAtomType
>
Module Contents
KMTMathAtomAccent
KMTMathAtomBinaryOperator
KMTMathAtomBoundary
KMTMathAtomClose
KMTMathAtomColor
KMTMathAtomFraction
KMTMathAtomInner
KMTMathAtomLargeOperator
KMTMathAtomNone
KMTMathAtomNumber
KMTMathAtomOpen
KMTMathAtomOrdinary
KMTMathAtomOverline
KMTMathAtomPlaceholder
KMTMathAtomPunctuation
KMTMathAtomRadical
KMTMathAtomRelation
KMTMathAtomSpace
KMTMathAtomStyle
KMTMathAtomTable
KMTMathAtomUnaryOperator
KMTMathAtomUnderline
KMTMathAtomVariable
class
MTMathColor
:
MTMathAtom
Module Contents
MTMathColor
(
)
var
colorString
:
String
?
fun
copyDeep
(
)
:
MTMathColor
fun
finalized
(
)
:
MTMathColor
var
innerList
:
MTMathList
?
fun
toLatexString
(
)
:
String
class
MTMathList
:
Any
Module Contents
MTMathList
(
vararg
alist
:
MTMathAtom
)
MTMathList
(
alist
:
MutableList
<
MTMathAtom
>
)
fun
addAtom
(
atom
:
MTMathAtom
)
:
Unit
fun
append
(
list
:
MTMathList
)
:
Unit
var
atoms
:
<ERROR CLASS>
fun
copyDeep
(
)
:
MTMathList
fun
description
(
)
:
String
fun
finalized
(
)
:
MTMathList
fun
insertAtom
(
atom
:
MTMathAtom
,
index
:
Int
)
:
Unit
fun
toString
(
)
:
String
class
MTMathListBuilder
:
Any
Module Contents
MTMathListBuilder
(
str
:
String
)
fun
build
(
)
:
MTMathList
?
fun
buildFromString
(
str
:
String
)
:
MTMathList
?
fun
buildFromString
(
str
:
String
,
error
:
MTParseError
)
:
MTMathList
?
fun
copyError
(
dst
:
MTParseError
)
:
Unit
fun
errorActive
(
)
:
Boolean
fun
toLatexString
(
ml
:
MTMathList
)
:
String
class
MTMathSpace
:
MTMathAtom
Module Contents
MTMathSpace
(
sp
:
Float
)
MTMathSpace
(
)
fun
copyDeep
(
)
:
MTMathSpace
var
space
:
Float
class
MTMathStyle
:
MTMathAtom
Module Contents
MTMathStyle
(
st
:
MTLineStyle
)
MTMathStyle
(
)
fun
copyDeep
(
)
:
MTMathStyle
var
style
:
MTLineStyle
class
MTMathTable
:
MTMathAtom
Module Contents
MTMathTable
(
env
:
String
?
)
MTMathTable
(
)
var
cells
:
MutableList
<
MutableList
<
MTMathList
>
>
fun
copyDeep
(
)
:
MTMathTable
var
environment
:
String
?
fun
finalized
(
)
:
MTMathTable
fun
getAlignmentForColumn
(
column
:
Int
)
:
MTColumnAlignment
var
interColumnSpacing
:
Float
var
interRowAdditionalSpacing
:
Float
fun
numColumns
(
)
:
Int
fun
numRows
(
)
:
Int
fun
setAlignment
(
alignment
:
MTColumnAlignment
,
column
:
Int
)
:
Unit
fun
setCell
(
list
:
MTMathList
,
row
:
Int
,
column
:
Int
)
:
Unit
class
MTOverLine
:
MTMathAtom
Module Contents
MTOverLine
(
)
fun
copyDeep
(
)
:
MTOverLine
fun
finalized
(
)
:
MTOverLine
var
innerList
:
MTMathList
?
fun
toLatexString
(
)
:
String
data
class
MTParseError
:
Any
Module Contents
MTParseError
(
errorcode
:
MTParseErrors
=
MTParseErrors.ErrorNone
,
errordesc
:
String
?
=
null
)
fun
clear
(
)
:
Unit
fun
copyFrom
(
src
:
MTParseError
?
)
:
Unit
var
errorcode
:
MTParseErrors
var
errordesc
:
String
?
enum
class
MTParseErrors
:
Enum
<
MTParseErrors
>
Module Contents
CharacterNotFound
ErrorNone
InternalError
InvalidCommand
InvalidDelimiter
InvalidEnv
InvalidLimits
InvalidNumColumns
MismatchBraces
MissingBegin
MissingDelimiter
MissingEnd
MissingEnv
MissingLeft
MissingRight
class
MTRadical
:
MTMathAtom
Module Contents
MTRadical
(
)
fun
copyDeep
(
)
:
MTRadical
var
degree
:
MTMathList
?
fun
finalized
(
)
:
MTRadical
var
radicand
:
MTMathList
?
fun
toLatexString
(
)
:
String
class
MTUnderLine
:
MTMathAtom
Module Contents
MTUnderLine
(
)
fun
copyDeep
(
)
:
MTUnderLine
fun
finalized
(
)
:
MTUnderLine
var
innerList
:
MTMathList
?
fun
toLatexString
(
)
:
String
class
MathDisplayException
:
Exception
Module Contents
MathDisplayException
(
message
:
String
)
var
message
:
String
const
val
NSNotFound
:
Int
data
class
NSRange
:
Any
Module Contents
NSRange
(
location
:
Int
=
NSNotFound
,
length
:
Int
=
0
)
fun
equal
(
cmp
:
NSRange
)
:
Boolean
var
length
:
Int
var
location
:
Int
val
maxrange
:
Int
fun
union
(
a
:
NSRange
)
:
NSRange
package
com.agog.mathdisplay.render
Module Contents
class
BoundingBox
:
Any
Module Contents
BoundingBox
(
minX
:
Float
,
minY
:
Float
,
maxX
:
Float
,
maxY
:
Float
)
BoundingBox
(
numbers
:
List
<
Number
>
)
BoundingBox
(
)
fun
contains
(
x
:
Float
,
y
:
Float
)
:
Boolean
val
height
:
Float
var
lowerLeftX
:
Float
var
lowerLeftY
:
Float
fun
toString
(
)
:
String
var
upperRightX
:
Float
var
upperRightY
:
Float
val
width
:
Float
data
class
CGGlyph
:
Any
Module Contents
CGGlyph
(
gid
:
Int
=
0
,
glyphAscent
:
Float
=
0.0f
,
glyphDescent
:
Float
=
0.0f
,
glyphWidth
:
Float
=
0.0f
)
var
gid
:
Int
var
glyphAscent
:
Float
var
glyphDescent
:
Float
var
glyphWidth
:
Float
val
isValid
:
Boolean
data
class
CGPoint
:
Any
Module Contents
CGPoint
(
x
:
Float
=
0.0f
,
y
:
Float
=
0.0f
)
var
x
:
Float
var
y
:
Float
data
class
CGRect
:
Any
Module Contents
CGRect
(
x
:
Float
=
0.0f
,
y
:
Float
=
0.0f
,
width
:
Float
=
0.0f
,
height
:
Float
=
0.0f
)
var
height
:
Float
var
width
:
Float
var
x
:
Float
var
y
:
Float
const
val
DEBUG
:
Boolean
class
MTAccentDisplay
:
MTDisplay
Module Contents
MTAccentDisplay
(
accent
:
MTGlyphDisplay
,
accentee
:
MTMathListDisplay
,
range
:
NSRange
)
val
accent
:
MTGlyphDisplay
val
accentee
:
MTMathListDisplay
fun
colorChanged
(
)
:
Unit
fun
draw
(
canvas
:
Canvas
)
:
Unit
fun
positionChanged
(
)
:
Unit
fun
updateAccenteePosition
(
)
:
Unit
class
MTCTLineDisplay
:
MTDisplay
Module Contents
MTCTLineDisplay
(
str
:
String
,
range
:
NSRange
,
font
:
MTFont
,
atoms
:
List
<
MTMathAtom
>
)
val
atoms
:
List
<
MTMathAtom
>
fun
computeDimensions
(
)
:
Unit
fun
draw
(
canvas
:
Canvas
)
:
Unit
val
font
:
MTFont
val
str
:
String
class
MTCodepointChar
:
Any
Module Contents
MTCodepointChar
(
codepoint
:
Int
)
val
codepoint
:
Int
fun
toUnicodeString
(
)
:
String
open
class
MTDisplay
:
Any
Module Contents
MTDisplay
(
ascent
:
Float
=
0.0f
,
descent
:
Float
=
0.0f
,
width
:
Float
=
0.0f
,
range
:
NSRange
=
NSRange()
,
hasScript
:
Boolean
=
false
)
open
var
ascent
:
Float
open
fun
colorChanged
(
)
:
Unit
open
var
descent
:
Float
fun
displayBounds
(
)
:
CGRect
open
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
hasScript
:
Boolean
var
localTextColor
:
Int
var
position
:
CGPoint
open
fun
positionChanged
(
)
:
Unit
var
range
:
NSRange
var
shiftDown
:
Float
var
textColor
:
Int
open
var
width
:
Float
class
MTDrawFreeType
:
Any
Module Contents
MTDrawFreeType
(
mathfont
:
MTFontMathTable
)
fun
drawGlyph
(
canvas
:
Canvas
,
p
:
Paint
,
gid
:
Int
,
x
:
Float
,
y
:
Float
)
:
Unit
val
mathfont
:
MTFontMathTable
class
MTFont
:
Any
Module Contents
MTFont
(
assets
:
AssetManager
,
name
:
String
,
fontSize
:
Float
,
isCopy
:
Boolean
=
false
)
fun
copyFontWithSize
(
size
:
Float
)
:
MTFont
fun
findGlyphForCharacterAtIndex
(
index
:
Int
,
str
:
String
)
:
CGGlyph
val
fontSize
:
Float
fun
getGidListForString
(
str
:
String
)
:
List
<
Int
>
fun
getGlyphName
(
gid
:
Int
)
:
String
fun
getGlyphWithName
(
glyphName
:
String
)
:
Int
var
mathTable
:
MTFontMathTable
val
name
:
String
class
MTFontMathTable
:
Any
Module Contents
MTFontMathTable
(
font
:
MTFont
,
istreamotf
:
InputStream
?
)
val
accentBaseHeight
:
Float
val
axisHeight
:
Float
fun
checkFontSize
(
)
:
<ERROR CLASS>
fun
constantFromTable
(
constName
:
String
)
:
Float
fun
copyFontTableWithSize
(
size
:
Float
)
:
MTFontMathTable
val
delimitedSubFormulaMinHeight
:
Float
val
displayOperatorMinHeight
:
Float
val
flattenedAccentBaseHeight
:
Float
val
font
:
MTFont
var
fontSize
:
Float
fun
fontUnitsBox
(
b
:
BoundingBox
)
:
BoundingBox
val
fractionDelimiterDisplayStyleSize
:
Float
val
fractionDelimiterSize
:
Float
val
fractionDenominatorDisplayStyleGapMin
:
Float
val
fractionDenominatorDisplayStyleShiftDown
:
Float
val
fractionDenominatorGapMin
:
Float
val
fractionDenominatorShiftDown
:
Float
val
fractionNumeratorDisplayStyleGapMin
:
Float
val
fractionNumeratorDisplayStyleShiftUp
:
Float
val
fractionNumeratorGapMin
:
Float
val
fractionNumeratorShiftUp
:
Float
val
fractionRuleThickness
:
Float
lateinit
var
freeTypeMathTable
:
<ERROR CLASS>
lateinit
var
freeface
:
<ERROR CLASS>
fun
getAdvancesForGlyphs
(
glyphs
:
List
<
Int
>
,
advances
:
Array
<
Float
>
,
count
:
Int
)
:
Unit
fun
getBoundingRectsForGlyphs
(
glyphs
:
List
<
Int
>
,
boundingRects
:
Array
<
BoundingBox
?
>
?
,
count
:
Int
)
:
BoundingBox
fun
getGlyphForCodepoint
(
codepoint
:
Int
)
:
Int
fun
getGlyphName
(
gid
:
Int
)
:
String
fun
getGlyphWithName
(
glyphName
:
String
)
:
Int
fun
getHorizontalVariantsForGlyph
(
glyph
:
CGGlyph
)
:
List
<
Int
>
fun
getItalicCorrection
(
gid
:
Int
)
:
Float
fun
getLargerGlyph
(
glyph
:
Int
)
:
Int
fun
getTopAccentAdjustment
(
glyph
:
Int
)
:
Float
fun
getVerticalGlyphAssemblyForGlyph
(
glyph
:
Int
)
:
List
<
MTGlyphPart
>
?
fun
getVerticalVariantsForGlyph
(
glyph
:
CGGlyph
)
:
List
<
Int
>
var
istreamotf
:
InputStream
?
val
limitExtraAscenderDescender
:
Float
val
lowerLimitBaselineDropMin
:
Float
val
lowerLimitGapMin
:
Float
val
mathLeading
:
Float
val
minConnectorOverlap
:
Float
fun
muUnit
(
)
:
Float
val
overbarExtraAscender
:
Float
val
overbarRuleThickness
:
Float
val
overbarVerticalGap
:
Float
fun
percentFromTable
(
percentName
:
String
)
:
Float
val
radicalDegreeBottomRaisePercent
:
Float
val
radicalDisplayStyleVerticalGap
:
Float
val
radicalExtraAscender
:
Float
val
radicalKernAfterDegree
:
Float
val
radicalKernBeforeDegree
:
Float
val
radicalRuleThickness
:
Float
val
radicalVerticalGap
:
Float
val
scriptScaleDown
:
Float
val
scriptScriptScaleDown
:
Float
val
skewedFractionHorizontalGap
:
Float
val
skewedFractionVerticalGap
:
Float
val
spaceAfterScript
:
Float
val
stackBottomDisplayStyleShiftDown
:
Float
val
stackBottomShiftDown
:
Float
val
stackDisplayStyleGapMin
:
Float
val
stackGapMin
:
Float
val
stackTopDisplayStyleShiftUp
:
Float
val
stackTopShiftUp
:
Float
val
stretchStackBottomShiftDown
:
Float
val
stretchStackGapAboveMin
:
Float
val
stretchStackGapBelowMin
:
Float
val
stretchStackTopShiftUp
:
Float
val
subSuperscriptGapMin
:
Float
val
subscriptBaselineDropMin
:
Float
val
subscriptShiftDown
:
Float
val
subscriptTopMax
:
Float
val
superscriptBaselineDropMax
:
Float
val
superscriptBottomMaxWithSubscript
:
Float
val
superscriptBottomMin
:
Float
val
superscriptShiftUp
:
Float
val
superscriptShiftUpCramped
:
Float
val
underbarExtraDescender
:
Float
val
underbarRuleThickness
:
Float
val
underbarVerticalGap
:
Float
fun
unionBounds
(
u
:
BoundingBox
,
b
:
BoundingBox
)
:
Unit
var
unitsPerEm
:
Int
val
upperLimitBaselineRiseMin
:
Float
val
upperLimitGapMin
:
Float
class
MTFractionDisplay
:
MTDisplay
Module Contents
MTFractionDisplay
(
numerator
:
MTMathListDisplay
,
denominator
:
MTMathListDisplay
,
range
:
NSRange
)
var
ascent
:
Float
fun
colorChanged
(
)
:
Unit
var
denominator
:
MTMathListDisplay
var
denominatorDown
:
Float
var
descent
:
Float
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
linePosition
:
Float
var
lineThickness
:
Float
var
numerator
:
MTMathListDisplay
var
numeratorUp
:
Float
fun
positionChanged
(
)
:
Unit
fun
updateDenominatorPosition
(
)
:
Unit
fun
updateNumeratorPosition
(
)
:
Unit
var
width
:
Float
class
MTGlyphConstructionDisplay
:
MTDisplay
Module Contents
MTGlyphConstructionDisplay
(
glyphs
:
MutableList
<
Int
>
,
offsets
:
MutableList
<
Float
>
,
myfont
:
MTFont
)
var
ascent
:
Float
var
descent
:
Float
fun
draw
(
canvas
:
Canvas
)
:
Unit
val
glyphs
:
MutableList
<
Int
>
val
myfont
:
MTFont
val
offsets
:
MutableList
<
Float
>
class
MTGlyphDisplay
:
MTDisplay
Module Contents
MTGlyphDisplay
(
glyph
:
CGGlyph
,
range
:
NSRange
,
myfont
:
MTFont
)
var
ascent
:
Float
var
descent
:
Float
fun
draw
(
canvas
:
Canvas
)
:
Unit
val
glyph
:
CGGlyph
val
myfont
:
MTFont
data
class
MTGlyphPart
:
Any
Module Contents
MTGlyphPart
(
glyph
:
Int
=
0
,
fullAdvance
:
Float
=
0f
,
startConnectorLength
:
Float
=
0f
,
endConnectorLength
:
Float
=
0f
,
isExtender
:
Boolean
=
false
)
var
endConnectorLength
:
Float
var
fullAdvance
:
Float
var
glyph
:
Int
var
isExtender
:
Boolean
var
startConnectorLength
:
Float
enum
class
MTInterElementSpaceType
:
Enum
<
MTInterElementSpaceType
>
Module Contents
kMTSpaceInvalid
kMTSpaceNSMedium
kMTSpaceNSThick
kMTSpaceNSThin
kMTSpaceNone
kMTSpaceThin
class
MTLargeOpLimitsDisplay
:
MTDisplay
Module Contents
MTLargeOpLimitsDisplay
(
nucleus
:
MTDisplay
,
upperLimit
:
MTMathListDisplay
?
,
lowerLimit
:
MTMathListDisplay
?
,
limitShift
:
Float
,
extraPadding
:
Float
)
var
ascent
:
Float
fun
colorChanged
(
)
:
Unit
var
descent
:
Float
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
extraPadding
:
Float
var
limitShift
:
Float
var
lowerLimit
:
MTMathListDisplay
?
var
lowerLimitGap
:
Float
val
nucleus
:
MTDisplay
fun
positionChanged
(
)
:
Unit
fun
updateLowerLimitPosition
(
)
:
Unit
fun
updateNucleusPosition
(
)
:
Unit
fun
updateUpperLimitPosition
(
)
:
Unit
var
upperLimit
:
MTMathListDisplay
?
var
upperLimitGap
:
Float
class
MTLineDisplay
:
MTDisplay
Module Contents
MTLineDisplay
(
inner
:
MTMathListDisplay
,
range
:
NSRange
)
fun
colorChanged
(
)
:
Unit
fun
draw
(
canvas
:
Canvas
)
:
Unit
val
inner
:
MTMathListDisplay
var
lineShiftUp
:
Float
var
lineThickness
:
Float
fun
positionChanged
(
)
:
Unit
fun
updateInnerPosition
(
)
:
Unit
enum
class
MTLinePosition
:
Enum
<
MTLinePosition
>
Module Contents
kMTLinePositionRegular
kMTLinePositionSubscript
kMTLinePositionSuperscript
class
MTMathListDisplay
:
MTDisplay
Module Contents
MTMathListDisplay
(
displays
:
List
<
MTDisplay
>
,
range
:
NSRange
)
fun
colorChanged
(
)
:
Unit
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
index
:
Int
fun
recomputeDimensions
(
)
:
Unit
var
subDisplays
:
List
<
MTDisplay
>
?
var
type
:
MTLinePosition
class
MTRadicalDisplay
:
MTDisplay
Module Contents
MTRadicalDisplay
(
radicand
:
MTMathListDisplay
,
radicalGlyph
:
MTDisplay
,
range
:
NSRange
)
fun
colorChanged
(
)
:
Unit
var
degree
:
MTMathListDisplay
?
fun
draw
(
canvas
:
Canvas
)
:
Unit
var
lineThickness
:
Float
fun
positionChanged
(
)
:
Unit
val
radicalGlyph
:
MTDisplay
var
radicalShift
:
Float
val
radicand
:
MTMathListDisplay
fun
setDegree
(
degree
:
MTMathListDisplay
,
fontMetrics
:
MTFontMathTable
)
:
Unit
var
topKern
:
Float
fun
updateRadicandPosition
(
)
:
Unit
class
MTTypesetter
:
Any
Module Contents
MTTypesetter
(
font
:
MTFont
,
linestyle
:
MTLineStyle
,
cramped
:
Boolean
=
false
,
spaced
:
Boolean
=
false
)
var
cramped
:
Boolean
fun
createLineForMathList
(
mathList
:
MTMathList
,
font
:
MTFont
,
style
:
MTLineStyle
)
:
MTMathListDisplay
fun
createLineForMathList
(
mathList
:
MTMathList
,
font
:
MTFont
,
style
:
MTLineStyle
,
cramped
:
Boolean
)
:
MTMathListDisplay
var
currentAtoms
:
MutableList
<
MTMathAtom
>
var
currentLine
:
String
var
currentLineIndexRange
:
NSRange
val
currentPosition
:
CGPoint
fun
denominatorGapMin
(
)
:
Float
fun
denominatorShiftDown
(
hasRule
:
Boolean
)
:
Float
var
displayAtoms
:
MutableList
<
MTDisplay
>
val
font
:
MTFont
fun
fractionDelimiterHeight
(
)
:
Float
fun
numeratorGapMin
(
)
:
Float
fun
numeratorShiftUp
(
hasRule
:
Boolean
)
:
Float
fun
preprocessMathList
(
ml
:
MTMathList
)
:
MutableList
<
MTMathAtom
>
var
spaced
:
Boolean
fun
stackGapMin
(
)
:
Float
var
style
:
MTLineStyle
var
styleFont
:
MTFont
fun
changeFont
(
str
:
String
,
fontStyle
:
MTFontStyle
)
:
String
fun
getBlackboard
(
ch
:
Char
)
:
MTCodepointChar
fun
getBold
(
ch
:
Char
)
:
MTCodepointChar
fun
getBoldItalic
(
ch
:
Char
)
:
MTCodepointChar
fun
getCaligraphic
(
ch
:
Char
)
:
MTCodepointChar
fun
getDefaultStyle
(
ch
:
Char
)
:
MTCodepointChar
fun
getFraktur
(
ch
:
Char
)
:
MTCodepointChar
fun
getInterElementSpaceArrayIndexForType
(
type
:
MTMathAtomType
,
row
:
Boolean
)
:
Int
fun
getItalicized
(
ch
:
Char
)
:
MTCodepointChar
fun
getSansSerif
(
ch
:
Char
)
:
MTCodepointChar
fun
getTypewriter
(
ch
:
Char
)
:
MTCodepointChar
fun
greekSymbolOrder
(
ch
:
Char
)
:
Int
val
interElementSpaceArray
:
Array
<
Array
<
MTInterElementSpaceType
>
>
fun
is_CAPITAL_GREEK
(
ch
:
Char
)
:
Boolean
fun
is_GREEK_SYMBOL
(
ch
:
Char
)
:
Boolean
fun
is_LOWER_EN
(
ch
:
Char
)
:
Boolean
fun
is_LOWER_GREEK
(
ch
:
Char
)
:
Boolean
fun
is_NUMBER
(
ch
:
Char
)
:
Boolean
fun
is_UPPER_EN
(
ch
:
Char
)
:
Boolean
const
val
kBaseLineSkipMultiplier
:
Float
const
val
kDelimiterFactor
:
Int
const
val
kDelimiterShortfallPoints
:
Int
const
val
kJotMultiplier
:
Float
const
val
kLineSkipLimitMultiplier
:
Float
const
val
kLineSkipMultiplier
:
Float
const
val
kMTUnicodeGreekCapitalBoldItalicStart
:
Int
const
val
kMTUnicodeGreekCapitalBoldStart
:
Int
const
val
kMTUnicodeGreekCapitalEnd
:
Char
const
val
kMTUnicodeGreekCapitalItalicStart
:
Int
const
val
kMTUnicodeGreekCapitalStart
:
Char
const
val
kMTUnicodeGreekLowerBoldItalicStart
:
Int
const
val
kMTUnicodeGreekLowerBoldStart
:
Int
const
val
kMTUnicodeGreekLowerEnd
:
Char
const
val
kMTUnicodeGreekLowerItalicStart
:
Int
const
val
kMTUnicodeGreekLowerStart
:
Char
const
val
kMTUnicodeGreekSymbolBoldItalicStart
:
Int
const
val
kMTUnicodeGreekSymbolBoldStart
:
Int
const
val
kMTUnicodeGreekSymbolItalicStart
:
Int
const
val
kMTUnicodeMathCapitalBlackboardStart
:
Int
const
val
kMTUnicodeMathCapitalBoldItalicStart
:
Int
const
val
kMTUnicodeMathCapitalBoldStart
:
Int
const
val
kMTUnicodeMathCapitalFrakturStart
:
Int
const
val
kMTUnicodeMathCapitalItalicStart
:
Int
const
val
kMTUnicodeMathCapitalSansSerifStart
:
Int
const
val
kMTUnicodeMathCapitalScriptStart
:
Int
const
val
kMTUnicodeMathCapitalTTStart
:
Int
const
val
kMTUnicodeMathLowerBlackboardStart
:
Int
const
val
kMTUnicodeMathLowerBoldItalicStart
:
Int
const
val
kMTUnicodeMathLowerBoldStart
:
Int
const
val
kMTUnicodeMathLowerFrakturStart
:
Int
const
val
kMTUnicodeMathLowerItalicStart
:
Int
const
val
kMTUnicodeMathLowerSansSerifStart
:
Int
const
val
kMTUnicodeMathLowerTTStart
:
Int
const
val
kMTUnicodeNumberBlackboardStart
:
Int
const
val
kMTUnicodeNumberBoldStart
:
Int
const
val
kMTUnicodeNumberSansSerifStart
:
Int
const
val
kMTUnicodeNumberTTStart
:
Int
const
val
kMTUnicodePlanksConstant
:
Int
fun
numberOfGlyphs
(
s
:
String
)
:
Int
fun
styleCharacter
(
ch
:
Char
,
fontStyle
:
MTFontStyle
)
:
MTCodepointChar