浏览代码

remove comments

/main
gewentao 6 年前
当前提交
cf8a8b86
共有 2 个文件被更改,包括 18 次插入23 次删除
  1. 5
      Assets/UIWidgets/painting/alignment.cs
  2. 36
      Assets/UIWidgets/rendering/image.cs

5
Assets/UIWidgets/painting/alignment.cs


public static readonly Alignment bottomCenter = new Alignment(0.0, 1.0);
public static readonly Alignment bottomRight = new Alignment(1.0, 1.0);
public Alignment resolve(TextDirection direction)
{
return this;
}
public Alignment add(Alignment other)
{
return this + other;

36
Assets/UIWidgets/rendering/image.cs


BoxFit fit,
ImageRepeat repeat,
Rect centerSlice,
// TextDirection textDirection,
TextDirection textDirection,
// AlignmentGeometry alignment = null,
Alignment alignment = null,
double scale = 1.0
)
{

this._fit = fit;
this._repeat = repeat;
this._centerSlice = centerSlice;
// this._matchTextDirection = matchTextDirection;
this._matchTextDirection = matchTextDirection;
// this._alignment = alignment ?? Alignment.center;
this._alignment = alignment ?? Alignment.center;
this._textDirection = textDirection;
_updateColorFilter();
}

{
if (_resolvedAlignment != null)
return;
// _resolvedAlignment = alignment.resolve(textDirection);
_resolvedAlignment = alignment;
_flipHorizontally = matchTextDirection && textDirection == TextDirection.rtl;
}

return;
_image = value;
markNeedsPaint();
if (_width == null || _height == null)
if (_width == 0.0 || _height == 0.0)
markNeedsLayout();
}
}

}
}
// private AlignmentGeometry _alignment;
private Alignment _alignment;
// public AlignmentGeometry alignment
// {
// get { return _alignment; }
// set
// {
// if (value == _alignment)
// return;
// _alignment = value;
// _markNeedsResolution();
// }
// }
public Alignment alignment
{
get { return _alignment; }
set
{
if (value == _alignment)
return;
_alignment = value;
_markNeedsResolution();
}
}
private ImageRepeat _repeat;

正在加载...
取消
保存