setCursor method
Sets the PCanvas cursor.
- Same as
this.cursor = cursor
. - See
cursor
.
Implementation
@override
void setCursor(PCanvasCursor cursor) {
var prevCursor = getCursor();
if (cursor != prevCursor) {
var mouseCursor = cursor.mouseCursor;
_mouseCursor = mouseCursor;
_pCanvasWidget.rebuild();
}
}