Fields
Methods
DrawModifierIcons
#public static RectangleF[] DrawModifierIcons(Context context, ModifierIcons icons, Color background, RectangleF bounds, bool leftToRight)
Draw modifier icons into a rectangle.
Parameters:
| context (Context) | Graphics context. |
| icons (ModifierIcons) | Icons to draw. |
| background (Color) | Background colour, usually the Apex colour of the underlying slab. |
| bounds (RectangleF) | Bounds for icons. |
| leftToRight (bool) | If true, icons will be stacked from left-to-right. |
LeftToRightStack
#Perform a left-to-right stacking layout of several boxes.
Parameters:
| axis (float) | Y coordinate of horizontal layout axis. |
| boundary (float) | X coordinate of left boundary. |
| elements (params (float before, SizeF size, float after)[]) | Collection of layout elements (left-padding, width+height, right-padding). |
Returns: Array of rectangles.
MeasureModifierIcons
#Measure the size needed to host a set of modifier icons.
Parameters:
| icons (ModifierIcons) |
RightToLeftStack
#Perform a right-to-left stacking layout of several boxes.
Parameters:
| axis (float) | Y coordinate of horizontal layout axis. |
| boundary (float) | X coordinate of right boundary. |
| elements (params (float before, SizeF size, float after)[]) | Collection of layout elements (left-padding, width+height, right-padding). |
Returns: Array of rectangles.