Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Barcode ¶
type Barcode struct { // Left is the space between the left cell boundary to the barcode, if center is false. Left float64 // Top is space between the upper cell limit to the barcode, if center is false. Top float64 // Percent is how much the barcode will occupy the cell, // ex 100%: The barcode will fulfill the entire cell // ex 50%: The greater side from the barcode will have half the size of the cell. Percent float64 // Proportion is the proportion between size of the barcode. // Ex: 16x9, 4x3... Proportion Proportion // Center define that the barcode will be vertically and horizontally centralized. Center bool }
Barcode represents properties from a barcode inside a cell.
type Font ¶
type Font struct { // Family of the text, ex: consts.Arial, helvetica and etc. Family string // Style of the text, ex: consts.Normal, bold and etc. Style consts.Style // Size of the text. Size float64 // Color define the font color. Color *color.Color }
Font represents properties from a text.
type Line ¶
type Line struct { // Color define the line color. Color color.Color // Style define the line style (solid, dashed or dotted). Style consts.LineStyle // Width define the line width (it cannot be greater than line height) Width float64 }
Line represents properties from a Line inside a cell.
type Proportion ¶
type Proportion struct { // Width from the rectangle: Barcode, image and etc. Width float64 // Height from the rectangle: Barcode, image and etc. Height float64 }
Proportion represents a proportion from a rectangle, example: 16x9, 4x3...
type Rect ¶
type Rect struct { // Left is the space between the left cell boundary to the rectangle, if center is false. Left float64 // Top is space between the upper cell limit to the barcode, if center is false. Top float64 // Percent is how much the rectangle will occupy the cell, // ex 100%: The rectangle will fulfill the entire cell // ex 50%: The greater side from the rectangle will have half the size of the cell. Percent float64 // Center define that the barcode will be vertically and horizontally centralized. Center bool }
Rect represents properties from a rectangle (Image, QrCode or Barcode) inside a cell.
type Text ¶
type Text struct { // Top is the amount of space between the upper cell limit and the text. Top float64 // Left is the minimal amount of space between the left cell boundary and the text. Left float64 // Right is the minimal amount of space between the right cell boundary and the text. Right float64 // Family of the text, ex: consts.Arial, helvetica and etc. Family string // Style of the text, ex: consts.Normal, bold and etc. Style consts.Style // Size of the text. Size float64 // Align of the text. Align consts.Align // Extrapolate define if the text will automatically add a new line when. // text reach the right cell boundary. Extrapolate bool // VerticalPadding define an additional space between lines. VerticalPadding float64 // Color define the font color. Color *color.Color }
Text represents properties from a Text inside a cell.
Click to show internal directories.
Click to hide internal directories.