wiki

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 16 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FG     = "fg"
	BG     = "bg"
	FILL   = "fill"
	STROKE = "stroke"

	STYLE   = "style"
	WIDTH   = "width"
	HEIGHT  = "height"
	PADDING = "padding"
	MARGINX = "marginx"
	MARGINY = "marginy"

	FONT_SIZE   = "font-size"
	FONT_FAMILY = "font-family"

	STROKE_WIDTH = "stroke-width"

	COMPACT = "compact"

	LABEL = "label"
	CHAIN = "chain"
)
View Source
const (
	FEATURE = "feature"
	INPUTS  = "inputs"
	ARGS    = "args"
)
View Source
const (
	PNG  = "png"
	JPG  = "jpg"
	JPEG = "jpeg"
)
View Source
const (
	INPUT  = "input"
	OUTPUT = "output"
)
View Source
const (
	PROMPT = "prompt"
	BREAK  = "break"
)
View Source
const (
	NAVMENU = "navmenu"
	PREMENU = "premenu"
	CHAPTER = "chapter"
	SECTION = "section"
	ENDMENU = "endmenu"
)
View Source
const (
	AUTHOR = "author"
)
View Source
const BRIEF = "brief"
View Source
const CHART = "chart"
View Source
const DATA = "data"
View Source
const DRAW = "draw"
View Source
const FEEL = "feel"
View Source
const FIELD = "field"
View Source
const IMAGE = "image"
View Source
const JSON = "json"
View Source
const LOCAL = "local"
View Source
const (
	MOV = "mov"
)
View Source
const ORDER = "order"
View Source
const PARSE = "parse"
View Source
const REFER = "refer"
View Source
const SHELL = "shell"
View Source
const SPARK = "spark"
View Source
const TABLE = "table"
View Source
const TITLE = "title"
View Source
const VIDEO = "video"
View Source
const WIKI = "wiki"
View Source
const WORD = "word"

Variables

View Source
var Index = &ice.Context{Name: WIKI, Help: "文档中心"}

Functions

func Parse added in v0.6.2

func Parse(m *ice.Message, meta string, key string, arg ...string) *ice.Message

Types

type Block

type Block struct {
	Text       string
	FontSize   int
	FontColor  string
	BackGround string

	Padding int
	MarginX int
	MarginY int

	Width, Height int

	TextData string
	RectData string
	// contains filtered or unexported fields
}

图形基类

func (*Block) Data

func (b *Block) Data(m *ice.Message, root interface{}) Chart

func (*Block) Draw

func (b *Block) Draw(m *ice.Message, x, y int) Chart

func (*Block) GetHeight

func (b *Block) GetHeight(str ...string) int

func (*Block) GetHeights

func (b *Block) GetHeights(str ...string) int

func (*Block) GetWidth

func (b *Block) GetWidth(str ...string) int

func (*Block) GetWidths

func (b *Block) GetWidths(str ...string) int

func (*Block) Init

func (b *Block) Init(m *ice.Message, arg ...string) Chart

type Chain

type Chain struct {
	Block
	// contains filtered or unexported fields
}

func (*Chain) Draw

func (b *Chain) Draw(m *ice.Message, x, y int) Chart

func (*Chain) Init

func (b *Chain) Init(m *ice.Message, arg ...string) Chart

type Chart

type Chart interface {
	Init(*ice.Message, ...string) Chart
	Data(*ice.Message, interface{}) Chart
	Draw(*ice.Message, int, int) Chart

	GetWidth(...string) int
	GetHeight(...string) int
}

图形接口

type Label

type Label struct {
	Block
	// contains filtered or unexported fields
}

func (*Label) Draw

func (b *Label) Draw(m *ice.Message, x, y int) Chart

func (*Label) Init

func (b *Label) Init(m *ice.Message, arg ...string) Chart

Jump to

Keyboard shortcuts

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