You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
754 B
29 lines
754 B
5 years ago
|
using Unity.UIWidgets.gestures;
|
||
|
|
||
|
namespace Unity.UIWidgets.painting {
|
||
|
public class PaintingBinding : GestureBinding {
|
||
|
public new static PaintingBinding instance {
|
||
|
get { return (PaintingBinding) GestureBinding.instance; }
|
||
|
set { GestureBinding.instance = value; }
|
||
|
}
|
||
|
|
||
|
public PaintingBinding() {
|
||
|
}
|
||
|
|
||
|
ImageCache _imageCache;
|
||
|
|
||
|
public ImageCache imageCache {
|
||
|
get {
|
||
|
if (this._imageCache == null) {
|
||
|
this._imageCache = this.createImageCache();
|
||
|
}
|
||
|
|
||
|
return this._imageCache;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
protected virtual ImageCache createImageCache() {
|
||
|
return new ImageCache();
|
||
|
}
|
||
|
}
|
||
|
}
|