toggle menu
drawboard
1.1.0
androidJvm
switch theme
search in API
drawboard
/
com.king.drawboard.draw
/
Draw
Draw
abstract
class
Draw
:
MotionAction
绘制抽象类定义;通过继承此类可实现具体的绘制对象
Author
Jenly
Follow me
Inheritors
DrawLine
DrawRect
DrawBitmap
DrawPoint
DrawCircle
DrawOval
DrawPath
DrawText
Members
Constructors
Draw
Link copied to clipboard
constructor
(
)
Properties
paint
Link copied to clipboard
open
var
paint
:
Paint
Functions
action
Down
Link copied to clipboard
open
fun
actionDown
(
canvas
:
Canvas
,
x
:
Float
,
y
:
Float
)
按下
action
Move
Link copied to clipboard
open
fun
actionMove
(
canvas
:
Canvas
,
x
:
Float
,
y
:
Float
)
移动
action
Up
Link copied to clipboard
open
fun
actionUp
(
canvas
:
Canvas
,
x
:
Float
,
y
:
Float
)
松开
can
Move
Link copied to clipboard
open
fun
canMove
(
x
:
Float
,
y
:
Float
)
:
Boolean
是否可移动
draw
Link copied to clipboard
abstract
fun
draw
(
canvas
:
Canvas
)
get
Bounding
Box
Link copied to clipboard
@
Nullable
open
fun
getBoundingBox
(
)
:
RectF
获取边界框
set
Point
Link copied to clipboard
open
fun
setPoint
(
point
:
PointF
)
设置点