toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.image.vector
/
FuncDrawable
Func
Drawable
class
FuncDrawable
(
val
action
:
Context2d
.
(
)
->
Unit
)
:
Drawable
Members
Members & Extensions
Constructors
Func
Drawable
Link copied to clipboard
constructor
(
action
:
Context2d
.
(
)
->
Unit
)
Properties
action
Link copied to clipboard
val
action
:
Context2d
.
(
)
->
Unit
Functions
draw
Link copied to clipboard
open
override
fun
draw
(
c
:
Context2d
)
draw
Link copied to clipboard
fun
<
T
:
Bitmap
>
Drawable
.
draw
(
out
:
T
)
:
T
render
To
Link copied to clipboard
fun
Drawable
.
renderTo
(
ctx
:
Context2d
)
render
To
Image
Link copied to clipboard
fun
Drawable
.
renderToImage
(
width
:
Int
,
height
:
Int
)
:
NativeImage
fun
Drawable
.
renderToImage
(
width
:
Int
,
height
:
Int
,
native
:
Boolean
)
:
Bitmap
to
Shape
Link copied to clipboard
fun
Drawable
.
toShape
(
width
:
Int
,
height
:
Int
)
:
Shape
to
Svg
Link copied to clipboard
fun
Drawable
.
toSvg
(
width
:
Int
,
height
:
Int
,
scale
:
Double
=
1.0
)
:
Xml