您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
32 行
736 B
32 行
736 B
using UIWidgets.ui;
|
|
|
|
namespace UIWidgets.painting {
|
|
public class PaintingBinding {
|
|
|
|
public PaintingBinding(Window window) {
|
|
this._window = window;
|
|
}
|
|
|
|
private static PaintingBinding _instance;
|
|
public readonly Window _window;
|
|
|
|
public static PaintingBinding instance {
|
|
get { return _instance; }
|
|
}
|
|
|
|
private ImageCache _imageCache;
|
|
|
|
public ImageCache imageCache {
|
|
get { return _imageCache; }
|
|
}
|
|
|
|
public ImageCache createImageCache() {
|
|
return new ImageCache();
|
|
}
|
|
|
|
public void initInstances() {
|
|
_instance = this;
|
|
_imageCache = createImageCache();
|
|
}
|
|
}
|
|
}
|