toggle menu
cup-source-code
1.0.0-Beta-01
common
switch theme
search in API
cup-source-code
/
net.kodein.cup.sa.utils
Package-level
declarations
Types
Functions
Types
Draw
Applier
Link copied to clipboard
typealias
DrawApplier
=
ContentDrawScope
.
(
TextLayoutResult
)
->
Unit
Style
Applier
Link copied to clipboard
typealias
StyleApplier
=
AnnotatedString.Builder
.
(
List
<
StyleSection
>
)
->
Unit
Style
Section
Link copied to clipboard
data
class
StyleSection
(
val
range
:
TextRange
,
val
style
:
SpanStyle
)
Functions
add
Styles
Link copied to clipboard
fun
AnnotatedString.Builder
.
addStyles
(
sections
:
Iterable
<
StyleSection
>
)
as
Tree
Link copied to clipboard
fun
<
Input
,
Node
>
List
<
Input
>
.
asTree
(
range
:
Input
.
(
)
->
TextRange
,
node
:
(
Input
,
List
<
Node
>
)
->
Node
)
:
List
<
Node
>
compare
To
Link copied to clipboard
operator
fun
TextRange
.
compareTo
(
other
:
TextRange
)
:
Int
filter
Containing
Link copied to clipboard
fun
Iterable
<
TextRange
>
.
filterContaining
(
)
:
List
<
TextRange
>
line
Ranges
Link copied to clipboard
fun
String
.
lineRanges
(
)
:
List
<
TextRange
>
merge
Link copied to clipboard
fun
Iterable
<
StyleSection
>
.
merge
(
others
:
Iterable
<
StyleSection
>
)
:
List
<
StyleSection
>
fun
Iterable
<
StyleSection
>
.
merge
(
other
:
StyleSection
)
:
List
<
StyleSection
>
minus
Link copied to clipboard
operator
fun
String
.
minus
(
ranges
:
Iterable
<
TextRange
>
)
:
String
offset
Link copied to clipboard
fun
Iterable
<
StyleSection
>
.
offset
(
toRange
:
TextRange
)
:
List
<
StyleSection
>
fun
List
<
ClassesSection
>
.
offset
(
hiddenRanges
:
Iterable
<
TextRange
>
)
:
List
<
ClassesSection
>
positive
Link copied to clipboard
fun
TextRange
.
positive
(
)
:
TextRange
restrict
Link copied to clipboard
fun
Iterable
<
StyleSection
>
.
restrict
(
inRanges
:
Iterable
<
TextRange
>
)
:
List
<
StyleSection
>
scale
With
Size
Link copied to clipboard
fun
Modifier
.
scaleWithSize
(
scaleX
:
Float
=
1.0f
,
scaleY
:
Float
=
1.0f
)
:
Modifier