component

package
v0.0.0-...-7dc6c5b Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 1 Imported by: 9

Documentation

Index

Constants

View Source
const (
	// DefaultTextContent is the default content for text component.
	DefaultTextContent = "text"
)

Variables

This section is empty.

Functions

func NewCommonProperty

func NewCommonProperty() *property.Common

NewCommonProperty creates new common property.

Types

type Circle

type Circle struct {
	Common *property.Common
}

Circle is the circle drawing component.

func NewCircle

func NewCircle() *Circle

NewCircle creates new circle.

type Connector

type Connector struct {
	Line          *Line
	Bidirectional bool
}

Connector is the connector drawing component.

func NewConnector

func NewConnector() *Connector

NewConnector creates new connector component.

type Diamond

type Diamond struct {
	Common *property.Common
}

Diamond is the diamond drawing component.

func NewDiamond

func NewDiamond() *Diamond

NewDiamond creates new diamond component.

type Line

type Line struct {
	Color         *property.Color
	Width         float32
	StartPosition *property.Position
	EndPosition   *property.Position
	Dashed        bool
}

Line is the line drawing component.

func NewLine

func NewLine() *Line

NewLine creates new line.

type Polygon

type Polygon struct {
	Sides  uint8
	Common *property.Common
}

Polygon is the polygon drawing component.

func NewPolygon

func NewPolygon() *Polygon

NewPolygon creates new polygon component.

type Rectangle

type Rectangle struct {
	Common *property.Common
}

Rectangle is the rectangle drawing component.

func NewRectangle

func NewRectangle() *Rectangle

NewRectangle creates new rectangle.

type Star

type Star struct {
	Points uint8
	Common *property.Common
}

Star is the star drawing component.

func NewStar

func NewStar() *Star

NewStar creates new start component.

type Text

type Text struct {
	Common *property.Common
}

Text is the text drawing component.

func NewText

func NewText() *Text

NewText creates new text.

type Triangle

type Triangle struct {
	SecondPosition *property.Position
	ThirdPosition  *property.Position
	Common         *property.Common
}

Triangle is the triangle drawing component.

func NewTriangle

func NewTriangle() *Triangle

NewTriangle creates new triangle component.

Jump to

Keyboard shortcuts

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