diff --git a/QuestPDF/Elements/Grid.cs b/QuestPDF/Elements/Grid.cs index 6c1c06a..790e82f 100644 --- a/QuestPDF/Elements/Grid.cs +++ b/QuestPDF/Elements/Grid.cs @@ -6,6 +6,12 @@ using static QuestPDF.Infrastructure.HorizontalAlignment; namespace QuestPDF.Elements { + internal class GridElement + { + public int Columns { get; set; } = 1; + public Element? Child { get; set; } + } + internal class Grid : IComponent { public const int DefaultColumnsCount = 12; diff --git a/QuestPDF/Elements/GridElement.cs b/QuestPDF/Elements/GridElement.cs deleted file mode 100644 index 64ef9af..0000000 --- a/QuestPDF/Elements/GridElement.cs +++ /dev/null @@ -1,10 +0,0 @@ -using QuestPDF.Infrastructure; - -namespace QuestPDF.Elements -{ - internal class GridElement - { - public int Columns { get; set; } = 1; - public Element? Child { get; set; } - } -} \ No newline at end of file diff --git a/QuestPDF/Elements/Row.cs b/QuestPDF/Elements/Row.cs index c7c1b37..e0abc58 100644 --- a/QuestPDF/Elements/Row.cs +++ b/QuestPDF/Elements/Row.cs @@ -5,6 +5,32 @@ using QuestPDF.Infrastructure; namespace QuestPDF.Elements { + internal abstract class RowElement : ContainerElement + { + public float Width { get; set; } = 1; + + internal override void Draw(ICanvas canvas, Size availableSpace) + { + Child?.Draw(canvas, availableSpace); + } + } + + internal class ConstantRowElement : RowElement + { + public ConstantRowElement(float width) + { + Width = width; + } + } + + internal class RelativeRowElement : RowElement + { + public RelativeRowElement(float width) + { + Width = width; + } + } + internal class Row : Element { public List Children { get; set; } = new List(); diff --git a/QuestPDF/Elements/RowElement.cs b/QuestPDF/Elements/RowElement.cs deleted file mode 100644 index 548bc2d..0000000 --- a/QuestPDF/Elements/RowElement.cs +++ /dev/null @@ -1,30 +0,0 @@ -using QuestPDF.Infrastructure; - -namespace QuestPDF.Elements -{ - internal abstract class RowElement : ContainerElement - { - public float Width { get; set; } = 1; - - internal override void Draw(ICanvas canvas, Size availableSpace) - { - Child?.Draw(canvas, availableSpace); - } - } - - internal class ConstantRowElement : RowElement - { - public ConstantRowElement(float width) - { - Width = width; - } - } - - internal class RelativeRowElement : RowElement - { - public RelativeRowElement(float width) - { - Width = width; - } - } -} \ No newline at end of file