property

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Border

type Border struct {
	Thick  float32
	Color  *Color
	Dashed bool
}

Border is the border property of component.

func NewBorder

func NewBorder() *Border

NewBorder creates new border.

type Color

type Color struct {
	R uint8
	G uint8
	B uint8
}

Color is the property of component.

func (*Color) FromHex

func (color *Color) FromHex(hex string) bool

FromHex sets rgb values from hex string.

func (*Color) Hex

func (color *Color) Hex() string

Hex returns hexdecimal value.

func (*Color) RGB

func (color *Color) RGB() (uint8, uint8, uint8)

RGB returns rgb values.

func (*Color) SetRGB

func (color *Color) SetRGB(r, g, b uint8)

SetRGB sets rgb values.

type Common

type Common struct {
	Border          *Border
	BackgroundColor *Color
	Size            *Size
	Position        *Position
	Text            *Text
	RotateAngle     int32
}

Common is the component property, which holds common properties.

type Position

type Position struct {
	X float32
	Y float32
}

Position is the position property of component.

type Size

type Size struct {
	Width  float32
	Height float32
}

Size is the size property of component.

type Text

type Text struct {
	Content string
}

Text is the text property of component.

Jump to

Keyboard shortcuts

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