Documentation
¶
Index ¶
- func RenderUnifiedCheckboxCombo(readOnly bool, label string, unifier Unifier, changeHandler func(bool))
- func RenderUnifiedCombo(readOnly bool, label string, unifier Unifier, intConverter func(Unifier) int, ...)
- func RenderUnifiedRotation(readOnly bool, label string, unifier Unifier, min, max int, info RotationInfo, ...)
- func RenderUnifiedSliderInt(readOnly bool, label string, unifier Unifier, intConverter func(Unifier) int, ...)
- func StandardSimplifier(readOnly bool, fullKey string, unifier Unifier, ...) *interpreters.Simplifier
- type ObjectTypeControlRenderer
- type RotationInfo
- type Unifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderUnifiedCheckboxCombo ¶ added in v0.4.0
func RenderUnifiedCheckboxCombo(readOnly bool, label string, unifier Unifier, changeHandler func(bool))
RenderUnifiedCheckboxCombo renders a control for a unified boolean value.
func RenderUnifiedCombo ¶ added in v0.4.0
func RenderUnifiedCombo(readOnly bool, label string, unifier Unifier, intConverter func(Unifier) int, formatter func(int) string, count int, changeHandler func(int))
RenderUnifiedCombo renders a control for a unified enumeration value.
func RenderUnifiedRotation ¶ added in v1.8.0
func RenderUnifiedRotation(readOnly bool, label string, unifier Unifier, min, max int, info RotationInfo, changeHandler func(int))
RenderUnifiedRotation renders a control for rotation value.
func RenderUnifiedSliderInt ¶ added in v0.4.0
func RenderUnifiedSliderInt(readOnly bool, label string, unifier Unifier, intConverter func(Unifier) int, formatter func(int) string, min, max int, changeHandler func(int))
RenderUnifiedSliderInt renders a control for an unified integer value.
func StandardSimplifier ¶ added in v1.3.0
func StandardSimplifier(readOnly bool, fullKey string, unifier Unifier, updater func(func(uint32) uint32), objTypeRenderer ObjectTypeControlRenderer) *interpreters.Simplifier
StandardSimplifier returns a simplifier with common property controls.
Types ¶
type ObjectTypeControlRenderer ¶ added in v1.3.0
type ObjectTypeControlRenderer struct { // Meta describes the layout of classes, subclasses, and types. Meta object.PropertiesTable // TextCache is used to retrieve the name of a type. TextCache *text.Cache }
ObjectTypeControlRenderer renders a control to select an object.
func (ObjectTypeControlRenderer) Render ¶ added in v1.3.0
func (renderer ObjectTypeControlRenderer) Render(readOnly bool, label string, classUnifier Unifier, typeUnifier Unifier, tripleResolver func(Unifier) object.Triple, changeHandler func(object.Triple))
Render creates the controls according to the given parameters.
type RotationInfo ¶ added in v1.8.0
RotationInfo describes how the rotation is aligned in its zero position.
type Unifier ¶
type Unifier struct {
// contains filtered or unexported fields
}
Unifier can be used to verify whether a list of values has equal entries.
func UnifierFor ¶ added in v1.5.0
func UnifierFor(value interface{}) Unifier
UnifierFor returns a unifier for a single value.
func (*Unifier) Add ¶
func (u *Unifier) Add(value interface{})
Add unifies the given value to the current state. The given value must be comparable.
func (Unifier) IsEmpty ¶ added in v1.8.0
IsEmpty returns true if the unifier has not received any value.