SlotLayout class final

与滚动帧无关的老虎机布局。

Inheritance
Annotations

Constructors

SlotLayout({required Size size, SlotMode mode = SlotMode.vertical, required Rect prizeArea, required double cellWidth, required double cellHeight, required double widthAndSpacing, required double heightAndSpacing, required double cellAndSpacing, required double windowStart, required double windowLength, required List<SlotReelLayout> reels, required List<SlotCellContent> cells, required List<SlotBlockLayout> blocks})
创建布局;通常调用 computeSlotLayout。
const

Properties

blocks → List<SlotBlockLayout>
由外到内的装饰块。
final
cellAndSpacing → double
滚动轴上的格距。
final
cellHeight → double
格子高。
final
cells → List<SlotCellContent>
按奖品下标缓存的局部内容。
final
cellWidth → double
格子宽。
final
hashCode → int
The hash code for this object.
no setterinherited
heightAndSpacing → double
格子高加行间距。
final
isEmpty → bool
是否无法绘制有效格子。
no setteroverride
mode → SlotMode
滚动方向;几何叠加层需要区分单轮方形窗口的横纵滚动。
final
paintsWhenEmpty → bool
没有奖品格时仍绘制 blocks 外框,与上游一致。
no setteroverride
prizeArea → Rect
装饰块内的可见窗口。
final
reels → List<SlotReelLayout>
各列几何。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
布局盒子逻辑尺寸。
finalinherited
widthAndSpacing → double
格子宽加列间距。
final
windowLength → double
滚动轴上的窗口长度。
final
windowStart → double
令条带首格中心对准窗口中心的偏移。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited