wiki

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 17 Imported by: 4

Documentation

Index

Constants

View Source
const (
	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 (
	SSH_SHELL = "shell"
	SSH_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 (
	PROMPT = "prompt"
)
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: "文档中心", Commands: map[string]*ice.Command{
	ice.CTX_INIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
		m.Load()
	}},
	ice.CTX_EXIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
		m.Save()
	}},
}}

Functions

func Stack

func Stack(m *ice.Message, name string, level int, data interface{})

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