leftBound method

int leftBound(
  1. int column,
  2. int span
)

Left column index for a specific column and span base on the caller anchor.

Implementation

int leftBound(int column, int span) {
  switch (horizontal) {
    case HorizontalAnchor.start:
      return column;
    case HorizontalAnchor.end:
      return column - span + 1;
  }
}