DFRect class
矩形
Constructors
- DFRect(double left, double top, double width, double height)
- 创建矩形
- DFRect.fromCenter({required DFPosition center, required double width, required double height})
- 创建矩形
Properties
- bottom ↔ double
-
下坐标
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
高度
final
- left ↔ double
-
左坐标
getter/setter pair
- right ↔ double
-
右坐标
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top ↔ double
-
上坐标
getter/setter pair
- width → double
-
宽度
final
Methods
-
center(
) → DFPosition - 中心坐标
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overlaps(
DFShape other) → bool -
是否重叠
override
-
rectToRect(
DFRect other) → bool - 矩形碰撞
-
toRect(
) → Rect - 转换为Rect
-
toString(
) → String -
转换为字符串
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited