toggle menu
doodle
0.10.4
common
switch theme
search in API
core
/
io.nacular.doodle.text
/
StyledText
Styled
Text
common
class
StyledText
:
Iterable
<
Pair
<
String
,
Style
>
>
Members
Constructors
Styled
Text
Link copied to clipboard
common
constructor
(
text
:
String
,
style
:
Style
)
constructor
(
text
:
String
,
font
:
Font
?
=
null
,
foreground
:
Paint
?
=
null
,
background
:
Paint
?
=
null
,
decoration
:
TextDecoration
?
=
null
)
Types
Mutable
Pair
Link copied to clipboard
common
data
class
MutablePair
<
A
,
B
>
(
var
first
:
A
,
var
second
:
B
)
Properties
count
Link copied to clipboard
common
val
count
:
Int
text
Link copied to clipboard
common
val
text
:
String
Functions
copy
Link copied to clipboard
common
fun
copy
(
)
:
StyledText
equals
Link copied to clipboard
common
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
hash
Code
Link copied to clipboard
common
open
override
fun
hashCode
(
)
:
Int
invoke
Link copied to clipboard
common
operator
fun
Font
.
invoke
(
text
:
StyledText
)
:
StyledText
is
Blank
Link copied to clipboard
common
fun
isBlank
(
)
:
Boolean
is
Not
Blank
Link copied to clipboard
common
fun
isNotBlank
(
)
:
Boolean
iterator
Link copied to clipboard
common
open
operator override
fun
iterator
(
)
:
Iterator
<
Pair
<
String
,
Style
>
>
plus
Link copied to clipboard
common
operator
fun
plus
(
other
:
StyledText
)
:
StyledText
range
To
Link copied to clipboard
common
operator
fun
rangeTo
(
color
:
Color
)
:
StyledText
operator
fun
rangeTo
(
font
:
Font
)
:
StyledText
operator
fun
rangeTo
(
text
:
StyledText
)
:
StyledText
operator
fun
rangeTo
(
text
:
String
)
:
StyledText
to
String
Link copied to clipboard
common
open
override
fun
toString
(
)
:
String