shared

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlignArguments = struct {
	Left, Right, Center, Distribute, Both string
}{"left", "right", "center", "distribute", "both"}

AlignArguments

left	左
center	局中
right	右
both	分散
View Source
var ColorLib = struct {
	Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple, Red, Silver, Teal, White, Yellow [2]string
}{
	Aqua:    [2]string{"00FFFF", "aqua"},
	Black:   [2]string{"000000", "black"},
	Blue:    [2]string{"0000FF", "blue"},
	Fuchsia: [2]string{"FFOOFF", "fuchsia"},
	Gray:    [2]string{"808080", "gray"},
	Green:   [2]string{"008000", "green"},
	Lime:    [2]string{"00FF00", "lime"},
	Maroon:  [2]string{"800000", "maroon"},
	Navy:    [2]string{"000080", "navy"},
	Olive:   [2]string{"808000", "olive"},
	Purple:  [2]string{"800080", "purple"},
	Red:     [2]string{"FF0000", "red"},
	Silver:  [2]string{"COCOCO", "sliver"},
	Teal:    [2]string{"008080", "teal"},
	White:   [2]string{"FFFFFF", "white"},
	Yellow:  [2]string{"FFFF00", "yellow"},
}

ColorLib 默认颜色表

Functions

This section is empty.

Types

type RGB

type RGB struct {
	R, G, B uint8
}

func (*RGB) RGBColor

func (c *RGB) RGBColor() (hexString string)

RGBColor 颜色格式化

type Twip

type Twip int

Twip xml长度单位

func Char

func Char(char int) (twip Twip)

Char 字符

func Cm

func Cm(cm float64) (twip Twip)

Cm 厘米 1cm = 566.929twip

func Inch

func Inch(inch float64) (twip Twip)

Inch 英寸 1inch = 1440twip

func Ln

func Ln(ln float64) (twip Twip)

Ln 行数 1ln = 313 twip

func Mm

func Mm(mm float64) (twip Twip)

Mm 毫米 1mm = 5669.29twip

func Pt

func Pt(pt float64) (twip Twip)

Pt 英镑长度 1pt = 20twip

func Wx

func Wx(wx int) (twip Twip)

Wx 字号

word wps...显示的是磅数
example:
	84号字 = 42pt = 42 * 20 twip = 84 * 10 twip

Jump to

Keyboard shortcuts

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