Discover Packages
github.com/inkyblackness/hacked
editor
values
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Jul 15, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
RenderUnifiedCheckboxCombo(readOnly, multiple, label, unifier, changeHandler)
RenderUnifiedCombo(readOnly, multiple, label, unifier, intConverter, formatter, count, ...)
RenderUnifiedSliderInt(readOnly, multiple, label, unifier, intConverter, formatter, min, max, ...)
Types
Source Files
Documentation
Documentation
¶
func RenderUnifiedCheckboxCombo(readOnly, multiple bool, label string, unifier Unifier, ...)
func RenderUnifiedCombo(readOnly, multiple bool, label string, unifier Unifier, ...)
func RenderUnifiedSliderInt(readOnly, multiple bool, label string, unifier Unifier, ...)
type Unifier
func RenderUnifiedCheckboxCombo(readOnly, multiple bool , label string , unifier Unifier , changeHandler func(bool ))
RenderUnifiedCheckboxCombo renders a control for a unified boolean value.
RenderUnifiedCombo renders a control for a unified enumeration value.
RenderUnifiedSliderInt renders a control for an unified integer value.
Unifier can be used to verify whether a list of values has equal entries.
NewUnifier returns a new instance.
func (u *Unifier ) Add(value interface{})
Add unifies the given value to the current state.
The given value must be comparable.
IsUnique returns true if the unifier has received only equal values.
func (u *Unifier ) Unified() interface{}
Unified returns the result of the unification.
If all values that were added to the unifier were equal, then the first
added value will be returned. Otherwise, nil will be returned.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.