drawing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT 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
)

type LineProperties

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

func (LineProperties) SetJoin

func (_bg LineProperties) SetJoin(e LineJoin)

SetJoin sets the line join style.

func (LineProperties) SetNoFill

func (_dc LineProperties) SetNoFill()

func (LineProperties) SetSolidFill

func (_g LineProperties) SetSolidFill(c _c.Color)

func (LineProperties) SetWidth

func (_a LineProperties) SetWidth(w _cg.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

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

Paragraph is a paragraph within a document.

func MakeParagraph

func MakeParagraph(x *_be.CT_TextParagraph) Paragraph

MakeParagraph constructs a new paragraph wrapper.

func (Paragraph) AddBreak

func (_aa Paragraph) AddBreak()

AddBreak adds a new line break to a paragraph.

func (Paragraph) AddRun

func (_gf Paragraph) AddRun() Run

AddRun adds a new run to a paragraph.

func (Paragraph) Properties

func (_ea Paragraph) Properties() ParagraphProperties

Properties returns the paragraph properties.

func (Paragraph) X

func (_de Paragraph) X() *_be.CT_TextParagraph

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 *_be.CT_TextParagraphProperties) ParagraphProperties

MakeParagraphProperties constructs a new ParagraphProperties wrapper.

func (ParagraphProperties) SetAlign

func (_bfe ParagraphProperties) SetAlign(a _be.ST_TextAlignType)

SetAlign controls the paragraph alignment

func (ParagraphProperties) SetBulletChar

func (_afg ParagraphProperties) SetBulletChar(c string)

SetBulletChar sets the bullet character for the paragraph.

func (ParagraphProperties) SetBulletFont

func (_af ParagraphProperties) SetBulletFont(f string)

SetBulletFont controls the font for the bullet character.

func (ParagraphProperties) SetLevel

func (_gd ParagraphProperties) SetLevel(idx int32)

SetLevel sets the level of indentation of a paragraph.

func (ParagraphProperties) SetNumbered

func (_dgc ParagraphProperties) SetNumbered(scheme _be.ST_TextAutonumberScheme)

SetNumbered controls if bullets are numbered or not.

func (ParagraphProperties) X

X returns the inner wrapped XML type.

type Run

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

Run is a run within a paragraph.

func MakeRun

func MakeRun(x *_be.EG_TextRun) Run

MakeRun constructs a new Run wrapper.

func (Run) Properties

func (_dec Run) Properties() RunProperties

Properties returns the run's properties.

func (Run) SetText

func (_fad Run) SetText(s string)

SetText sets the run's text contents.

func (Run) X

func (_fa Run) X() *_be.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 *_be.CT_TextCharacterProperties) RunProperties

MakeRunProperties constructs a new RunProperties wrapper.

func (RunProperties) SetBold

func (_cf RunProperties) SetBold(b bool)

SetBold controls the bolding of a run.

func (RunProperties) SetFont

func (_cb RunProperties) SetFont(s string)

SetFont controls the font of a run.

func (RunProperties) SetSize

func (_beg RunProperties) SetSize(sz _cg.Distance)

SetSize sets the font size of the run text

func (RunProperties) SetSolidFill

func (_dgd RunProperties) SetSolidFill(c _c.Color)

SetSolidFill controls the text color of a run.

type ShapeProperties

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

func MakeShapeProperties

func MakeShapeProperties(x *_be.CT_ShapeProperties) ShapeProperties

func (ShapeProperties) GetPosition

func (_efa ShapeProperties) GetPosition() (int64, int64)

GetPosition gets the position of the shape in EMU.

func (ShapeProperties) LineProperties

func (_ee ShapeProperties) LineProperties() LineProperties

func (ShapeProperties) SetFlipHorizontal

func (_ddb ShapeProperties) SetFlipHorizontal(b bool)

SetFlipHorizontal controls if the shape is flipped horizontally.

func (ShapeProperties) SetFlipVertical

func (_dgcd ShapeProperties) SetFlipVertical(b bool)

SetFlipVertical controls if the shape is flipped vertically.

func (ShapeProperties) SetGeometry

func (_cbf ShapeProperties) SetGeometry(g _be.ST_ShapeType)

SetGeometry sets the shape type of the shape

func (ShapeProperties) SetHeight

func (_cfe ShapeProperties) SetHeight(h _cg.Distance)

SetHeight sets the height of the shape.

func (ShapeProperties) SetNoFill

func (_eg ShapeProperties) SetNoFill()

func (ShapeProperties) SetPosition

func (_eege ShapeProperties) SetPosition(x, y _cg.Distance)

SetPosition sets the position of the shape.

func (ShapeProperties) SetSize

func (_eeg ShapeProperties) SetSize(w, h _cg.Distance)

SetSize sets the width and height of the shape.

func (ShapeProperties) SetSolidFill

func (_eff ShapeProperties) SetSolidFill(c _c.Color)

func (ShapeProperties) SetWidth

func (_bfg ShapeProperties) SetWidth(w _cg.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