mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-01 22:17:29 +08:00
- updated : Comments to godoc style
This commit is contained in:
parent
4e8d9d8e47
commit
e879b00d57
@ -364,7 +364,7 @@ func (line Line) Draw(gsName string) ([]byte, *pdf.PdfRectangle, error) {
|
||||
return creator.Bytes(), bbox, nil
|
||||
}
|
||||
|
||||
// Defines a basic line between point 1 (X1,Y1) and point 2 (X2,Y2). The line has a specified width, color and opacity.
|
||||
// BasicLine defines a line between point 1 (X1,Y1) and point 2 (X2,Y2). The line has a specified width, color and opacity.
|
||||
type BasicLine struct {
|
||||
X1 float64
|
||||
Y1 float64
|
||||
|
@ -120,7 +120,7 @@ func (border *border) SetStyleBottom(style CellBorderStyle) {
|
||||
border.styleBottom = style
|
||||
}
|
||||
|
||||
// GeneratePageBlocks creates drawable.
|
||||
// GeneratePageBlocks implements drawable interface.
|
||||
func (border *border) GeneratePageBlocks(ctx DrawContext) ([]*Block, DrawContext, error) {
|
||||
block := NewBlock(ctx.PageWidth, ctx.PageHeight)
|
||||
// Start points is in upper left corner.
|
||||
|
@ -558,7 +558,7 @@ func (cell *TableCell) SetBorderColor(col Color) {
|
||||
cell.borderColorTop = model.NewPdfColorDeviceRGB(col.ToRGB())
|
||||
}
|
||||
|
||||
// SetBorderLineStyle sets border style (currently dashed or plain)
|
||||
// SetBorderLineStyle sets border style (currently dashed or plain).
|
||||
func (cell *TableCell) SetBorderLineStyle(style draw.LineStyle) {
|
||||
cell.borderLineStyle = style
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user