Documentation ¶
Index ¶
- Constants
- Variables
- type FloatConstraint
- type FloatVariable
- type IntConstraint
- type IntVariable
- type StringConstraint
- type StringVariable
- type Variable
- type VariableConstraint
- type VariableType
- type Variables
- func (v Variables) MarshalJSON() ([]byte, error)
- func (v Variables) Set(name string, value Variable) error
- func (v Variables) SetFloat(name string, value float32) error
- func (v Variables) SetInt(name string, value int32) error
- func (v Variables) SetString(name string, value string) error
- func (v *Variables) UnmarshalJSON(data []byte) error
Constants ¶
View Source
const ( VariableTypeInt VariableType = iota VariableTypeFloat = iota VariableTypeString = iota )
View Source
const COLOR_MAX = 0xFFFFFF
Variables ¶
View Source
var DEFAULT_VARIABLES = map[string]VariableConstraint{}/* 110 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type FloatConstraint ¶
func (FloatConstraint) Type ¶
func (v FloatConstraint) Type() VariableType
type FloatVariable ¶
type FloatVariable float32
func (FloatVariable) Type ¶
func (v FloatVariable) Type() VariableType
type IntConstraint ¶
func (IntConstraint) Type ¶
func (v IntConstraint) Type() VariableType
type IntVariable ¶
type IntVariable int32
func (IntVariable) Type ¶
func (v IntVariable) Type() VariableType
type StringConstraint ¶
type StringConstraint struct {
Default string
}
func (StringConstraint) Type ¶
func (v StringConstraint) Type() VariableType
type StringVariable ¶
type StringVariable string
func (StringVariable) Type ¶
func (v StringVariable) Type() VariableType
type Variable ¶
type Variable interface {
Type() VariableType
}
type VariableConstraint ¶
type VariableConstraint interface {
Type() VariableType
}
Constrain variables to their range of valid values
type VariableType ¶
type VariableType byte
Click to show internal directories.
Click to hide internal directories.