com.htc.painting.engine.IPaintingView |
![]() |
The IPaintingView interface represents a view that provides some basic drawing operations such as: - draw strokes - draw strokes with different textures - undo/redo
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
IPaintingView.OnPaintingViewListener | Interface definition for a callback to be invoked when an PaintingView event occurs. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Indicates whether redo operation can be performed on this HtcPaintingView.
| |||||||||||
Indicates whether undo operation can be performed on this HtcPaintingView.
| |||||||||||
Clear all strokes from this HtcPaitingView.
| |||||||||||
To show/hide strokes
| |||||||||||
Get current StrokeProperties
| |||||||||||
true if HtcPainting is enabled
| |||||||||||
redo previous undo action
| |||||||||||
removes a registered OnPaintingViewListener from further event callbacks.
| |||||||||||
Apply specified alpha value on strokes
| |||||||||||
Register a callback to be invoked when an PaintingView event occurs.
| |||||||||||
Set as current HtcPainting StrokeProperties.
| |||||||||||
undo previous drawing action
|
Indicates whether redo operation can be performed on this HtcPaintingView.
Indicates whether undo operation can be performed on this HtcPaintingView.
Get current StrokeProperties
removes a registered OnPaintingViewListener from further event callbacks.
listener | the callback to be removed |
---|
Apply specified alpha value on strokes
Register a callback to be invoked when an PaintingView event occurs.
listener | the callback to be run on |
---|
Set as current HtcPainting StrokeProperties. These properties will determine how the pen stroke is drawn.
p | the StrokeProperties to be used when drawing a stroke |
---|