GH_GenericLayout

public sealed class GH_GenericLayout
Generic layout logic for rectangle stacks.

Methods

Horizontal_ByIndex

#
public static List<Rectangle> Horizontal_ByIndex(Rectangle area, List<Rectangle> stack, bool expand)
Perform left-to-right layout on a list of rectangles starting at the left edge of the layout area. Rectangles are ordered by index. The width of the rectangles is guaranteed to remain the same.
area (Rectangle)Layout area. The right edge is ignored.
stack (List<Rectangle>)The rectangles to lay out.
expand (bool)If True, the rectangles will be expanded to fill the entire height of the layout area.

Horizontal_ByPosition

#
public static List<Rectangle> Horizontal_ByPosition(Rectangle area, List<Rectangle> stack, bool expand, int radical)
Perform left-to-right layout on a list of rectangles at the left edge of the layout area.
area (Rectangle)Layout area. The right edge is ignored.
stack (List<Rectangle>)The rectangles to lay out.
expand (bool)If True, the rectangles will be expanded to fill the entire height of the layout area.
radical (int)Radical index. The radical represents the special rectangle which takes positioning preference. For example, during Drag operations, the rectangle being dragged is the radical.

Horizontal_ByPosition

#
public static List<Rectangle> Horizontal_ByPosition(Rectangle area, List<Rectangle> stack, bool expand)
Perform left-to-right layout on a list of rectangles at the left edge of the layout area.
area (Rectangle)Layout area. The right edge is ignored.
stack (List<Rectangle>)The rectangles to lay out.
expand (bool)If True, the rectangles will be expanded to fill the entire height of the layout area.

Vertical_ByIndex

#
public static List<Rectangle> Vertical_ByIndex(Rectangle area, List<Rectangle> stack, bool expand)
Perform top-to-bottom layout on a list of rectangles starting at the upper edge of the layout area. Rectangles are ordered by index. The height of the rectangles is guaranteed to remain the same.
area (Rectangle)Layout area. The bottom edge is ignored.
stack (List<Rectangle>)The rectangles to lay out.
expand (bool)If True, the rectangles will be expanded to fill the entire width of the layout area.

Vertical_ByPosition

#
public static List<Rectangle> Vertical_ByPosition(Rectangle area, List<Rectangle> stack, bool expand, int radical)
Perform top-to-bottom layout on a list of rectangles at the upper edge of the layout area.
area (Rectangle)Layout area. The bottom edge is ignored.
stack (List<Rectangle>)The rectangles to lay out.
expand (bool)If True, the rectangles will be expanded to fill the entire width of the layout area.
radical (int)Radical index. The radical represents the special rectangle which takes positioning preference. For example, during Drag operations, the rectangle being dragged is the radical.

Vertical_ByPosition

#
public static List<Rectangle> Vertical_ByPosition(Rectangle area, List<Rectangle> stack, bool expand)
Perform top-to-bottom layout on a list of rectangles at the upper edge of the layout area.
area (Rectangle)Layout area. The bottom edge is ignored.
stack (List<Rectangle>)The rectangles to lay out.
expand (bool)If True, the rectangles will be expanded to fill the entire width of the layout area.