Search
Preparing search index...
The search index is not available
swimOS
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
@swim/typeset
TextRun
Class TextRun
Hierarchy
TextRun
Implements
Graphic
Equals
Debug
Index
Constructors
constructor
Methods
copy
debug
equals
font
render
text
text
Align
text
Baseline
text
Color
to
Any
to
String
from
from
Any
Constructors
constructor
new
Text
Run
(
text
:
string
, font
:
Font
|
null
, textAlign
:
CanvasTextAlign
|
null
, textBaseline
:
CanvasTextBaseline
|
null
, textColor
:
Color
|
null
)
:
TextRun
Parameters
text:
string
font:
Font
|
null
textAlign:
CanvasTextAlign
|
null
textBaseline:
CanvasTextBaseline
|
null
textColor:
Color
|
null
Returns
TextRun
Methods
Protected
copy
copy
(
text
:
string
, font
:
Font
|
null
, textAlign
:
CanvasTextAlign
|
null
, textBaseline
:
CanvasTextBaseline
|
null
, textColor
:
Color
|
null
)
:
TextRun
Parameters
text:
string
font:
Font
|
null
textAlign:
CanvasTextAlign
|
null
textBaseline:
CanvasTextBaseline
|
null
textColor:
Color
|
null
Returns
TextRun
debug
debug
(
output
:
Output
)
:
void
Parameters
output:
Output
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
font
font
(
)
:
Font
|
null
font
(
font
:
AnyFont
|
null
)
:
TextRun
Returns
Font
|
null
Parameters
font:
AnyFont
|
null
Returns
TextRun
render
render
(
context
:
RenderingContext
, bounds
:
BoxR2
, anchor
:
PointR2
)
:
void
Parameters
context:
RenderingContext
bounds:
BoxR2
anchor:
PointR2
Returns
void
text
text
(
)
:
string
text
(
text
:
string
)
:
TextRun
Returns
string
Parameters
text:
string
Returns
TextRun
text
Align
text
Align
(
)
:
CanvasTextAlign
|
null
text
Align
(
textAlign
:
CanvasTextAlign
|
null
)
:
TextRun
Returns
CanvasTextAlign
|
null
Parameters
textAlign:
CanvasTextAlign
|
null
Returns
TextRun
text
Baseline
text
Baseline
(
)
:
CanvasTextBaseline
|
null
text
Baseline
(
textBaseline
:
CanvasTextBaseline
|
null
)
:
TextRun
Returns
CanvasTextBaseline
|
null
Parameters
textBaseline:
CanvasTextBaseline
|
null
Returns
TextRun
text
Color
text
Color
(
)
:
Color
|
null
text
Color
(
textColor
:
AnyColor
|
null
)
:
TextRun
Returns
Color
|
null
Parameters
textColor:
AnyColor
|
null
Returns
TextRun
to
Any
to
Any
(
)
:
TextRunInit
Returns
TextRunInit
to
String
to
String
(
)
:
string
Returns
string
Static
from
from
(
text
:
string
, font
?:
AnyFont
|
null
, textAlign
?:
CanvasTextAlign
|
null
, textBaseline
?:
CanvasTextBaseline
|
null
, textColor
?:
AnyColor
|
null
)
:
TextRun
Parameters
text:
string
Default value
font:
AnyFont
|
null
= null
Default value
textAlign:
CanvasTextAlign
|
null
= null
Default value
textBaseline:
CanvasTextBaseline
|
null
= null
Default value
textColor:
AnyColor
|
null
= null
Returns
TextRun
Static
from
Any
from
Any
(
run
:
AnyTextRun
)
:
TextRun
Parameters
run:
AnyTextRun
Returns
TextRun
Globals
@swim/core
@swim/mesh
@swim/ui
@swim/angle
@swim/animate
@swim/color
@swim/constraint
@swim/dom
@swim/font
@swim/gesture
@swim/interpolate
@swim/length
@swim/render
@swim/scale
@swim/shape
@swim/style
@swim/transform
@swim/transition
@swim/typeset
@swim/view
@swim/ux
@swim/web
Text
Run
constructor
copy
debug
equals
font
render
text
text
Align
text
Baseline
text
Color
to
Any
to
String
from
from
Any
Text
Run
View
Text
Run
Init
Text
Run
View
Init
Any
Text
Run
Any
Text
Run
View