Skip to content

Commit

Permalink
patterns in Box.Size*. xml docs inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyagusev committed Dec 14, 2019
1 parent ff49d00 commit b8bdeee
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 120 deletions.
34 changes: 10 additions & 24 deletions src/BookFx/ColBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,37 +77,23 @@ private ColBox(BoxCore core)
public ColBox Add(IEnumerable<Box> children) =>
Get.Add(children.Map(x => x.Get));

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="sizes">Sizes of rows.</param>
/// <inheritdoc cref="Box.SizeRows(IEnumerable{TrackSize})"/>
[Pure]
public new ColBox SizeRows(IEnumerable<TrackSize> sizes) => Get.With(rowSizes: sizes);
public new ColBox SizeRows(IEnumerable<TrackSize> pattern) => Get.With(rowSizes: pattern);

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="size">A size of the first row.</param>
/// <param name="others">Sizes of other rows.</param>
/// <inheritdoc cref="Box.SizeRows(TrackSize, TrackSize[])"/>
[Pure]
public new ColBox SizeRows(TrackSize size, params TrackSize[] others) =>
Get.With(rowSizes: others.Prepend(size));
public new ColBox SizeRows(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(rowSizes: otherPatternParts.Prepend(firstPatternPart));

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="sizes">Sizes of columns.</param>
/// <inheritdoc cref="Box.SizeCols(IEnumerable{TrackSize})"/>
[Pure]
public new ColBox SizeCols(IEnumerable<TrackSize> sizes) => Get.With(colSizes: sizes);
public new ColBox SizeCols(IEnumerable<TrackSize> pattern) => Get.With(colSizes: pattern);

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="size">A size of the first column.</param>
/// <param name="others">Sizes of other columns.</param>
/// <inheritdoc cref="Box.SizeCols(TrackSize, TrackSize[])"/>
[Pure]
public new ColBox SizeCols(TrackSize size, params TrackSize[] others) =>
Get.With(colSizes: others.Prepend(size));
public new ColBox SizeCols(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(colSizes: otherPatternParts.Prepend(firstPatternPart));

/// <inheritdoc cref="Box.SetPrintArea"/>
[Pure]
Expand Down
34 changes: 10 additions & 24 deletions src/BookFx/ProtoBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,37 +63,23 @@ private ProtoBox(BoxCore core)
[Pure]
public new ProtoBox Style(BoxStyle boxStyle) => Get.With(style: boxStyle.Get);

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="sizes">Sizes of rows.</param>
/// <inheritdoc cref="Box.SizeRows(IEnumerable{TrackSize})"/>
[Pure]
public new ProtoBox SizeRows(IEnumerable<TrackSize> sizes) => Get.With(rowSizes: sizes);
public new ProtoBox SizeRows(IEnumerable<TrackSize> pattern) => Get.With(rowSizes: pattern);

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="size">A size of the first row.</param>
/// <param name="others">Sizes of other rows.</param>
/// <inheritdoc cref="Box.SizeRows(TrackSize, TrackSize[])"/>
[Pure]
public new ProtoBox SizeRows(TrackSize size, params TrackSize[] others) =>
Get.With(rowSizes: others.Prepend(size));
public new ProtoBox SizeRows(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(rowSizes: otherPatternParts.Prepend(firstPatternPart));

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="sizes">Sizes of columns.</param>
/// <inheritdoc cref="Box.SizeCols(IEnumerable{TrackSize})"/>
[Pure]
public new ProtoBox SizeCols(IEnumerable<TrackSize> sizes) => Get.With(colSizes: sizes);
public new ProtoBox SizeCols(IEnumerable<TrackSize> pattern) => Get.With(colSizes: pattern);

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="size">A size of the first column.</param>
/// <param name="others">Sizes of other columns.</param>
/// <inheritdoc cref="Box.SizeCols(TrackSize, TrackSize[])"/>
[Pure]
public new ProtoBox SizeCols(TrackSize size, params TrackSize[] others) =>
Get.With(colSizes: others.Prepend(size));
public new ProtoBox SizeCols(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(colSizes: otherPatternParts.Prepend(firstPatternPart));

/// <inheritdoc cref="Box.SetPrintArea"/>
[Pure]
Expand Down
34 changes: 10 additions & 24 deletions src/BookFx/RowBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,37 +77,23 @@ private RowBox(BoxCore core)
public RowBox Add(IEnumerable<Box> children) =>
Get.Add(children.Map(x => x.Get));

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="sizes">Sizes of rows.</param>
/// <inheritdoc cref="Box.SizeRows(IEnumerable{TrackSize})"/>
[Pure]
public new RowBox SizeRows(IEnumerable<TrackSize> sizes) => Get.With(rowSizes: sizes);
public new RowBox SizeRows(IEnumerable<TrackSize> pattern) => Get.With(rowSizes: pattern);

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="size">A size of the first row.</param>
/// <param name="others">Sizes of other rows.</param>
/// <inheritdoc cref="Box.SizeRows(TrackSize, TrackSize[])"/>
[Pure]
public new RowBox SizeRows(TrackSize size, params TrackSize[] others) =>
Get.With(rowSizes: others.Prepend(size));
public new RowBox SizeRows(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(rowSizes: otherPatternParts.Prepend(firstPatternPart));

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="sizes">Sizes of columns.</param>
/// <inheritdoc cref="Box.SizeCols(IEnumerable{TrackSize})"/>
[Pure]
public new RowBox SizeCols(IEnumerable<TrackSize> sizes) => Get.With(colSizes: sizes);
public new RowBox SizeCols(IEnumerable<TrackSize> pattern) => Get.With(colSizes: pattern);

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="size">A size of the first column.</param>
/// <param name="others">Sizes of other columns.</param>
/// <inheritdoc cref="Box.SizeCols(TrackSize, TrackSize[])"/>
[Pure]
public new RowBox SizeCols(TrackSize size, params TrackSize[] others) =>
Get.With(colSizes: others.Prepend(size));
public new RowBox SizeCols(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(colSizes: otherPatternParts.Prepend(firstPatternPart));

/// <inheritdoc cref="Box.SetPrintArea"/>
[Pure]
Expand Down
34 changes: 10 additions & 24 deletions src/BookFx/StackBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,37 +77,23 @@ private StackBox(BoxCore core)
public StackBox Add(IEnumerable<Box> children) =>
Get.Add(children.Map(x => x.Get));

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="sizes">Sizes of rows.</param>
/// <inheritdoc cref="Box.SizeRows(IEnumerable{TrackSize})"/>
[Pure]
public new StackBox SizeRows(IEnumerable<TrackSize> sizes) => Get.With(rowSizes: sizes);
public new StackBox SizeRows(IEnumerable<TrackSize> pattern) => Get.With(rowSizes: pattern);

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="size">A size of the first row.</param>
/// <param name="others">Sizes of other rows.</param>
/// <inheritdoc cref="Box.SizeRows(TrackSize, TrackSize[])"/>
[Pure]
public new StackBox SizeRows(TrackSize size, params TrackSize[] others) =>
Get.With(rowSizes: others.Prepend(size));
public new StackBox SizeRows(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(rowSizes: otherPatternParts.Prepend(firstPatternPart));

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="sizes">Sizes of columns.</param>
/// <inheritdoc cref="Box.SizeCols(IEnumerable{TrackSize})"/>
[Pure]
public new StackBox SizeCols(IEnumerable<TrackSize> sizes) => Get.With(colSizes: sizes);
public new StackBox SizeCols(IEnumerable<TrackSize> pattern) => Get.With(colSizes: pattern);

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="size">A size of the first column.</param>
/// <param name="others">Sizes of other columns.</param>
/// <inheritdoc cref="Box.SizeCols(TrackSize, TrackSize[])"/>
[Pure]
public new StackBox SizeCols(TrackSize size, params TrackSize[] others) =>
Get.With(colSizes: others.Prepend(size));
public new StackBox SizeCols(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(colSizes: otherPatternParts.Prepend(firstPatternPart));

/// <inheritdoc cref="Box.SetPrintArea"/>
[Pure]
Expand Down
34 changes: 10 additions & 24 deletions src/BookFx/ValueBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,37 +163,23 @@ private ValueBox(BoxCore core)
[Pure]
public ValueBox Merge(bool isMerged) => Get.With(merge: isMerged);

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="sizes">Sizes of rows.</param>
/// <inheritdoc cref="Box.SizeRows(IEnumerable{TrackSize})"/>
[Pure]
public new ValueBox SizeRows(IEnumerable<TrackSize> sizes) => Get.With(rowSizes: sizes);
public new ValueBox SizeRows(IEnumerable<TrackSize> pattern) => Get.With(rowSizes: pattern);

/// <summary>
/// Define heights of rows.
/// </summary>
/// <param name="size">A size of the first row.</param>
/// <param name="others">Sizes of other rows.</param>
/// <inheritdoc cref="Box.SizeRows(TrackSize, TrackSize[])"/>
[Pure]
public new ValueBox SizeRows(TrackSize size, params TrackSize[] others) =>
Get.With(rowSizes: others.Prepend(size));
public new ValueBox SizeRows(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(rowSizes: otherPatternParts.Prepend(firstPatternPart));

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="sizes">Sizes of columns.</param>
/// <inheritdoc cref="Box.SizeCols(IEnumerable{TrackSize})"/>
[Pure]
public new ValueBox SizeCols(IEnumerable<TrackSize> sizes) => Get.With(colSizes: sizes);
public new ValueBox SizeCols(IEnumerable<TrackSize> pattern) => Get.With(colSizes: pattern);

/// <summary>
/// Define widths of columns.
/// </summary>
/// <param name="size">A size of the first column.</param>
/// <param name="others">Sizes of other columns.</param>
/// <inheritdoc cref="Box.SizeCols(TrackSize, TrackSize[])"/>
[Pure]
public new ValueBox SizeCols(TrackSize size, params TrackSize[] others) =>
Get.With(colSizes: others.Prepend(size));
public new ValueBox SizeCols(TrackSize firstPatternPart, params TrackSize[] otherPatternParts) =>
Get.With(colSizes: otherPatternParts.Prepend(firstPatternPart));

/// <inheritdoc cref="Box.SetPrintArea"/>
[Pure]
Expand Down

0 comments on commit b8bdeee

Please sign in to comment.