|
|
|
|
|
|
return new Size(size.width - horizontal, size.height - vertical); |
|
|
|
} |
|
|
|
|
|
|
|
protected EdgeInsetsGeometry subtract(EdgeInsetsGeometry other) { |
|
|
|
public virtual EdgeInsetsGeometry subtract(EdgeInsetsGeometry other) { |
|
|
|
return _MixedEdgeInsets.fromLRSETB( |
|
|
|
_left - other._left, |
|
|
|
_right - other._right, |
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
public EdgeInsetsGeometry add(EdgeInsetsGeometry other) { |
|
|
|
public virtual EdgeInsetsGeometry add(EdgeInsetsGeometry other) { |
|
|
|
return _MixedEdgeInsets.fromLRSETB( |
|
|
|
_left + other._left, |
|
|
|
_right + other._right, |
|
|
|
|
|
|
get { return fromSTEB(end, bottom, start, top); } |
|
|
|
} |
|
|
|
|
|
|
|
public EdgeInsetsGeometry subtract(EdgeInsetsDirectional other) { |
|
|
|
public override EdgeInsetsGeometry subtract(EdgeInsetsGeometry other) { |
|
|
|
return this - other; |
|
|
|
return this - (EdgeInsetsDirectional)other; |
|
|
|
public EdgeInsetsGeometry add(EdgeInsetsDirectional other) { |
|
|
|
public override EdgeInsetsGeometry add(EdgeInsetsGeometry other) { |
|
|
|
return this + other; |
|
|
|
return this + (EdgeInsetsDirectional)other; |
|
|
|
return base.add(other); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
rect.right - right, rect.bottom - bottom); |
|
|
|
} |
|
|
|
|
|
|
|
public EdgeInsets subtract(EdgeInsets other) { |
|
|
|
return fromLTRB( |
|
|
|
left - other.left, |
|
|
|
top - other.top, |
|
|
|
right - other.right, |
|
|
|
bottom - other.bottom |
|
|
|
); |
|
|
|
public override EdgeInsetsGeometry subtract(EdgeInsetsGeometry other) { |
|
|
|
if(other is EdgeInsets) |
|
|
|
return this - (EdgeInsets)other; |
|
|
|
return base.subtract(other); |
|
|
|
public EdgeInsets add(EdgeInsetsGeometry other) { |
|
|
|
return fromLTRB( |
|
|
|
left + other._left, |
|
|
|
top + other._top, |
|
|
|
right + other._right, |
|
|
|
bottom + other._bottom |
|
|
|
); |
|
|
|
public override EdgeInsetsGeometry add(EdgeInsetsGeometry other) { |
|
|
|
if(other is EdgeInsets) |
|
|
|
return this + (EdgeInsets)other; |
|
|
|
return base.add(other); |
|
|
|
} |
|
|
|
|
|
|
|
public override EdgeInsetsGeometry clamp(EdgeInsetsGeometry min, EdgeInsetsGeometry max) { |
|
|
|