Documentation ¶
Index ¶
- Constants
- Variables
- func Parse(m *ice.Message, meta string, key string, arg ...string) *ice.Message
- type Block
- func (b *Block) Data(m *ice.Message, root interface{}) Chart
- func (b *Block) Draw(m *ice.Message, x, y int) Chart
- func (b *Block) GetHeight(str ...string) int
- func (b *Block) GetHeights(str ...string) int
- func (b *Block) GetWidth(str ...string) int
- func (b *Block) GetWidths(str ...string) int
- func (b *Block) Init(m *ice.Message, arg ...string) Chart
- type Chain
- type Chart
- type Label
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 ¶
Functions ¶
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 }
图形基类
Click to show internal directories.
Click to hide internal directories.