slider

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package segmentview implements a native slider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	view.Embed
	PaintStyle    *paint.Style
	Value         float64
	ValueNotifier comm.Float64Notifier

	MaxValue      float64
	MinValue      float64
	OnValueChange func(value float64)
	OnSubmit      func(value float64)
	Enabled       bool
	// contains filtered or unexported fields
}

func New

func New(ctx *view.Context, key string) *View

New returns either the previous View in ctx with matching key, or a new View if none exists.

func (*View) Build

func (v *View) Build(ctx *view.Context) view.Model

Build implements view.View.

func (*View) Lifecycle

func (v *View) Lifecycle(from, to view.Stage)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL