drawing

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineJoin

type LineJoin byte

LineJoin is the type of line join

const (
	LineJoinRound LineJoin = iota
	LineJoinBevel
	LineJoinMiter
)

LineJoin types

type LineProperties

type LineProperties struct {
	// contains filtered or unexported fields
}

func (LineProperties) SetJoin

func (l LineProperties) SetJoin(e LineJoin)

SetJoin sets the line join style.

func (LineProperties) SetNoFill

func (l LineProperties) SetNoFill()

func (LineProperties) SetSolidFill

func (l LineProperties) SetSolidFill(c color.Color)

func (LineProperties) SetWidth

func (l LineProperties) SetWidth(w measurement.Distance)

SetWidth sets the line width, MS products treat zero as the minimum width that can be displayed.

func (LineProperties) X

X returns the inner wrapped XML type.

type Paragraph added in v0.6.0

type Paragraph struct {
	// contains filtered or unexported fields
}

Paragraph is a paragraph within a document.

func MakeParagraph added in v0.6.0

func MakeParagraph(x *dml.CT_TextParagraph) Paragraph

MakeParagraph constructs a new paragraph wrapper.

func (Paragraph) AddBreak added in v0.6.0

func (p Paragraph) AddBreak()

AddBreak adds a new line break to a paragraph.

func (Paragraph) AddRun added in v0.6.0

func (p Paragraph) AddRun() Run

AddRun adds a new run to a paragraph.

func (Paragraph) Properties added in v0.6.0

func (p Paragraph) Properties() ParagraphProperties

Properties returns the paragraph properties.

func (Paragraph) X added in v0.6.0

X returns the inner wrapped XML type.

type ParagraphProperties

type ParagraphProperties struct {
	// contains filtered or unexported fields
}

ParagraphProperties allows controlling paragraph properties.

func MakeParagraphProperties

func MakeParagraphProperties(x *dml.CT_TextParagraphProperties) ParagraphProperties

MakeParagraphProperties constructs a new ParagraphProperties wrapper.

func (ParagraphProperties) SetAlign added in v0.6.0

SetAlign controls the paragraph alignment

func (ParagraphProperties) SetBulletChar added in v0.6.0

func (p ParagraphProperties) SetBulletChar(c string)

SetBulletChar sets the bullet character for the paragraph.

func (ParagraphProperties) SetBulletFont added in v0.6.0

func (p ParagraphProperties) SetBulletFont(f string)

SetBulletFont controls the font for the bullet character.

func (ParagraphProperties) SetLevel added in v0.6.0

func (p ParagraphProperties) SetLevel(idx int32)

SetLevel sets the level of indentation of a paragraph.

func (ParagraphProperties) SetNumbered added in v0.6.0

func (p ParagraphProperties) SetNumbered(scheme dml.ST_TextAutonumberScheme)

SetNumbered controls if bullets are numbered or not.

func (ParagraphProperties) X added in v0.6.0

X returns the inner wrapped XML type.

type Run added in v0.6.0

type Run struct {
	// contains filtered or unexported fields
}

Run is a run within a paragraph.

func MakeRun added in v0.6.0

func MakeRun(x *dml.EG_TextRun) Run

MakeRun constructs a new Run wrapper.

func (Run) Properties added in v0.6.0

func (r Run) Properties() RunProperties

Properties returns the run's properties.

func (Run) SetText added in v0.6.0

func (r Run) SetText(s string)

SetText sets the run's text contents.

func (Run) X added in v0.6.0

func (r Run) X() *dml.EG_TextRun

X returns the inner wrapped XML type.

type RunProperties

type RunProperties struct {
	// contains filtered or unexported fields
}

RunProperties controls the run properties.

func MakeRunProperties

func MakeRunProperties(x *dml.CT_TextCharacterProperties) RunProperties

MakeRunProperties constructs a new RunProperties wrapper.

func (RunProperties) SetBold

func (r RunProperties) SetBold(b bool)

SetBold controls the bolding of a run.

func (RunProperties) SetFont

func (r RunProperties) SetFont(s string)

SetFont controls the font of a run.

func (RunProperties) SetSize

func (r RunProperties) SetSize(sz measurement.Distance)

SetSize sets the font size of the run text

func (RunProperties) SetSolidFill

func (r RunProperties) SetSolidFill(c color.Color)

SetSolidFill controls the text color of a run.

type ShapeProperties

type ShapeProperties struct {
	// contains filtered or unexported fields
}

func MakeShapeProperties

func MakeShapeProperties(x *dml.CT_ShapeProperties) ShapeProperties

func (ShapeProperties) LineProperties

func (s ShapeProperties) LineProperties() LineProperties

func (ShapeProperties) SetFlipHorizontal added in v0.6.0

func (s ShapeProperties) SetFlipHorizontal(b bool)

SetFlipHorizontal controls if the shape is flipped horizontally.

func (ShapeProperties) SetFlipVertical added in v0.6.0

func (s ShapeProperties) SetFlipVertical(b bool)

SetFlipVertical controls if the shape is flipped vertically.

func (ShapeProperties) SetGeometry added in v0.6.0

func (s ShapeProperties) SetGeometry(g dml.ST_ShapeType)

SetGeometry sets the shape type of the shape

func (ShapeProperties) SetHeight added in v0.6.0

func (s ShapeProperties) SetHeight(h measurement.Distance)

SetHeight sets the height of the shape.

func (ShapeProperties) SetNoFill

func (s ShapeProperties) SetNoFill()

func (ShapeProperties) SetPosition added in v0.6.0

func (s ShapeProperties) SetPosition(x, y measurement.Distance)

SetPosition sets the position of the shape.

func (ShapeProperties) SetSize added in v0.6.0

func (s ShapeProperties) SetSize(w, h measurement.Distance)

SetSize sets the width and height of the shape.

func (ShapeProperties) SetSolidFill

func (s ShapeProperties) SetSolidFill(c color.Color)

func (ShapeProperties) SetWidth added in v0.6.0

func (s ShapeProperties) SetWidth(w measurement.Distance)

SetWidth sets the width of the shape.

func (ShapeProperties) X

X returns the inner wrapped XML type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL