Versions in this module Expand all Collapse all v0 v0.1.0 Feb 22, 2020 Changes in this version + const HINT_FOOTER + const HINT_FULLTEXT + const HINT_HIDE + const HINT_NONE + const HINT_SIDEBAR + const OPT_AUTO_ZOOM + const OPT_CENTER_ZOOM + const OPT_NONE + const ZOOM_RATE + func GetParameterStatusString(params ...RenderParameter) string + func GetParameterValueAsString(p RenderParameter) string + func InitializeBasicRenderModel(m *BasicRenderModel) + func InitializeEmptyRenderModel(m *EmptyRenderModel) + func ParseComplex(v string) (complex128, error) + func SetParameterValueFromString(p RenderParameter, v string) + type BasicRenderModel struct + Img image.Image + InnerRender func() + NeedsRender bool + Rendering bool + RequestRender chan interface{} + func NewBasicRenderModel() *BasicRenderModel + func (m *BasicRenderModel) GoRender() + func (m *BasicRenderModel) Render() image.Image + func (m *BasicRenderModel) Start() + type ChangeMonitor struct + Params []RenderParameter + func NewChangeMonitor() *ChangeMonitor + func (c *ChangeMonitor) AddParameters(params ...RenderParameter) + func (c *ChangeMonitor) HasChanged() bool + type Complex128RenderParameter struct + Value complex128 + func NewComplex128RP(name string, value complex128) *Complex128RenderParameter + func (e *Complex128RenderParameter) GetValueComplex128() complex128 + func (e *Complex128RenderParameter) SetValueComplex128(v complex128) complex128 + type EmptyParameter struct + Hint int + Name string + Type string + func (e *EmptyParameter) GetHint() int + func (e *EmptyParameter) GetName() string + func (e *EmptyParameter) GetType() string + func (e *EmptyParameter) GetValueComplex128() complex128 + func (e *EmptyParameter) GetValueFloat64() float64 + func (e *EmptyParameter) GetValueInt() int + func (e *EmptyParameter) GetValueString() string + func (e *EmptyParameter) GetValueUInt32() uint32 + func (e *EmptyParameter) SetHint(value int) + func (e *EmptyParameter) SetValueComplex128(value complex128) complex128 + func (e *EmptyParameter) SetValueFloat64(value float64) float64 + func (e *EmptyParameter) SetValueInt(value int) int + func (e *EmptyParameter) SetValueString(value string) string + func (e *EmptyParameter) SetValueUInt32(value uint32) uint32 + type EmptyRenderModel struct + Params []RenderParameter + RequestPaint func() + func (e *EmptyRenderModel) AddParameters(Params ...RenderParameter) + func (e *EmptyRenderModel) GetHintedParameterNames(hints int) []string + func (e *EmptyRenderModel) GetHintedParameterNamesWithFallback(hints int) []string + func (e *EmptyRenderModel) GetParameter(name string) RenderParameter + func (e *EmptyRenderModel) GetParameterNames() []string + func (e *EmptyRenderModel) GetRequestPaintFunc() func() + func (e *EmptyRenderModel) Render() image.Image + func (e *EmptyRenderModel) SetRequestPaintFunc(f func()) + type Float64RenderParameter struct + Value float64 + func NewFloat64RP(name string, value float64) *Float64RenderParameter + func (e *Float64RenderParameter) GetValueFloat64() float64 + func (e *Float64RenderParameter) SetValueFloat64(v float64) float64 + type IntRenderParameter struct + Value int + func NewIntRP(name string, value int) *IntRenderParameter + func (e *IntRenderParameter) GetValueInt() int + func (e *IntRenderParameter) SetValueInt(v int) int + type RenderModel interface + GetHintedParameterNames func(hint int) []string + GetHintedParameterNamesWithFallback func(hint int) []string + GetParameter func(name string) RenderParameter + GetParameterNames func() []string + GetRequestPaintFunc func() func() + Lock func() + Render func() image.Image + SetRequestPaintFunc func(func()) + Unlock func() + type RenderParameter interface + GetHint func() int + GetName func() string + GetType func() string + GetValueComplex128 func() complex128 + GetValueFloat64 func() float64 + GetValueInt func() int + GetValueString func() string + GetValueUInt32 func() uint32 + SetHint func(int) + SetValueComplex128 func(value complex128) complex128 + SetValueFloat64 func(value float64) float64 + SetValueInt func(value int) int + SetValueString func(value string) string + SetValueUInt32 func(value uint32) uint32 + func DefaultParameters(useint bool, hint int, options int, left float64, top float64, right float64, ...) []RenderParameter + func SetHints(hint int, params ...RenderParameter) []RenderParameter + type StringRenderParameter struct + Value string + func NewStringRP(name string, value string) *StringRenderParameter + func (e *StringRenderParameter) GetValueString() string + func (e *StringRenderParameter) SetValueString(v string) string + type UInt32RenderParameter struct + Value uint32 + func NewUInt32RP(name string, value uint32) *UInt32RenderParameter + func (e *UInt32RenderParameter) GetValueString() string + func (e *UInt32RenderParameter) GetValueUInt32() uint32 + func (e *UInt32RenderParameter) SetValueString(v string) string + func (e *UInt32RenderParameter) SetValueUInt32(v uint32) uint32