Documentation
¶
Index ¶
- func BindingFromMap[T types.Bindable](ctx types.Context, data map[string]any, key string) (res T, ok bool)
- func ElementById[T any](def *Definition, id string) (elem T, ok bool)
- func FunctionFromMap[T any](ctx types.Context, data map[string]any, key string) (res T, ok bool)
- func GioConstantFromMap[T gioConst](data map[string]any, key string) (res T, ok bool)
- func MapValue[T any](data map[string]any, key string) (res T, ok bool)
- func MapValueBool[T ~bool](data map[string]any, key string) (res T, ok bool)
- func MapValueColor(data map[string]any, key string) (res color.NRGBA, ok bool)
- func MapValueFloat[T constraints.Float](data map[string]any, key string) (res T, ok bool)
- func MapValueFont(ctx types.Context, data map[string]any, fontKey string, fontStyleKey string, ...) (res giofont.FontFace, ok bool)
- func MapValueInt[T constraints.Integer](data map[string]any, key string) (res T, ok bool)
- func MapValueString[T ~string](data map[string]any, key string) (res T, ok bool)
- func RegisterUIElement(e types.UIElement, constructor ConstructorFn)
- type ConstructorFn
- type Definition
- type DefinitionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindingFromMap ¶
func ElementById ¶
func ElementById[T any](def *Definition, id string) (elem T, ok bool)
func FunctionFromMap ¶
func GioConstantFromMap ¶
func MapValueBool ¶
func MapValueColor ¶
func MapValueFloat ¶
func MapValueFont ¶
func MapValueInt ¶
func MapValueString ¶
func RegisterUIElement ¶
func RegisterUIElement(e types.UIElement, constructor ConstructorFn)
Types ¶
type ConstructorFn ¶
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
func (Definition) ElementById ¶
func (d Definition) ElementById(id string) (elem types.UIElement, ok bool)
func (Definition) Root ¶
func (d Definition) Root() types.UIElement
Click to show internal directories.
Click to hide internal directories.