toggle menu
mosaic-runtime
0.12.0-SNAPSHOT
common
switch theme
search in API
mosaic-runtime
/
com.jakewharton.mosaic.layout
/
DrawScope
Draw
Scope
interface
DrawScope
Inheritors
ContentDrawScope
Members
Properties
height
Link copied to clipboard
abstract
val
height
:
Int
width
Link copied to clipboard
abstract
val
width
:
Int
Functions
draw
Rect
Link copied to clipboard
abstract
fun
drawRect
(
color
:
Color
,
row
:
Int
=
0
,
column
:
Int
=
0
,
width
:
Int
=
this.width
,
height
:
Int
=
this.height
)
draw
Text
Link copied to clipboard
abstract
fun
drawText
(
row
:
Int
,
column
:
Int
,
string
:
AnnotatedString
,
foreground
:
Color
?
=
null
,
background
:
Color
?
=
null
,
style
:
TextStyle
?
=
null
)
abstract
fun
drawText
(
row
:
Int
,
column
:
Int
,
string
:
String
,
foreground
:
Color
?
=
null
,
background
:
Color
?
=
null
,
style
:
TextStyle
?
=
null
)