Documentation ¶
Index ¶
- type CertPane
- type ClockPane
- type ColorPane
- type Field
- type GameOfLifePane
- type GesturePane
- type ImagePane
- type Life
- type LightPane
- func (p *LightPane) Gesture(gesture *gestic.GestureMessage)
- func (p *LightPane) IsDirty() bool
- func (p *LightPane) IsEnabled() bool
- func (p *LightPane) KeepAwake() bool
- func (p *LightPane) Render() (*image.RGBA, error)
- func (p *LightPane) SendBrightnessToDevices()
- func (p *LightPane) SendColorToDevices()
- func (p *LightPane) SendOnOffToDevices()
- func (p *LightPane) SetOnOffState(state bool)
- type MediaPane
- func (p *MediaPane) Gesture(gesture *gestic.GestureMessage)
- func (p *MediaPane) IsDirty() bool
- func (p *MediaPane) IsEnabled() bool
- func (p *MediaPane) KeepAwake() bool
- func (p *MediaPane) Render() (*image.RGBA, error)
- func (p *MediaPane) SendVolume()
- func (p *MediaPane) SendVolumeAdjust(direction bool)
- func (p *MediaPane) SetControlState(state string)
- type MediaPaneImages
- type OnOffPane
- type PairingCodePane
- type PairingColorPane
- type PairingLayout
- func (l *PairingLayout) Draw(updates *[][]uint8)
- func (l *PairingLayout) Render() (*image.RGBA, error)
- func (l *PairingLayout) ShowCode(text string)
- func (l *PairingLayout) ShowColor(c color.Color)
- func (l *PairingLayout) ShowDrawing()
- func (l *PairingLayout) ShowFadingColor(c color.Color, d time.Duration)
- func (l *PairingLayout) ShowFadingShrinkingColor(c color.Color, d time.Duration)
- func (l *PairingLayout) ShowIcon(image string)
- func (l *PairingLayout) ShowUpdateProgress(progress float64)
- type Pane
- type PaneLayout
- type TextScrollPane
- type Tick
- type Tween
- type UpdateProgressPane
- type WeatherPane
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertPane ¶
type CertPane struct {
// contains filtered or unexported fields
}
func NewCertPane ¶
type ClockPane ¶
type ClockPane struct {
// contains filtered or unexported fields
}
func NewClockPane ¶
func NewClockPane() *ClockPane
type ColorPane ¶
type ColorPane struct {
// contains filtered or unexported fields
}
func NewColorPane ¶
func NewFadingShrinkingColorPane ¶
creates a pane that fades and shrinks towards the center as time progresses
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field represents a two-dimensional field of cells.
func (*Field) Alive ¶
Alive reports whether the specified cell is alive. If the x or y coordinates are outside the field boundaries they are wrapped toroidally. For instance, an x value of -1 is treated as width-1.
type GameOfLifePane ¶
type GameOfLifePane struct {
// contains filtered or unexported fields
}
func NewGameOfLifePane ¶
func NewGameOfLifePane() *GameOfLifePane
func (*GameOfLifePane) Gesture ¶
func (p *GameOfLifePane) Gesture(gesture *gestic.GestureMessage)
func (*GameOfLifePane) IsDirty ¶
func (p *GameOfLifePane) IsDirty() bool
func (*GameOfLifePane) IsEnabled ¶
func (p *GameOfLifePane) IsEnabled() bool
func (*GameOfLifePane) KeepAwake ¶
func (p *GameOfLifePane) KeepAwake() bool
type GesturePane ¶
type GesturePane struct {
// contains filtered or unexported fields
}
func NewGesturePane ¶
func NewGesturePane() *GesturePane
func (*GesturePane) Gesture ¶
func (p *GesturePane) Gesture(gesture *gestic.GestureMessage)
func (*GesturePane) IsDirty ¶
func (p *GesturePane) IsDirty() bool
func (*GesturePane) IsEnabled ¶
func (p *GesturePane) IsEnabled() bool
func (*GesturePane) KeepAwake ¶
func (p *GesturePane) KeepAwake() bool
type ImagePane ¶
type ImagePane struct {
// contains filtered or unexported fields
}
func NewImagePane ¶
type Life ¶
type Life struct {
// contains filtered or unexported fields
}
Life stores the state of a round of Conway's Game of Life.
type LightPane ¶
type LightPane struct {
// contains filtered or unexported fields
}
func NewLightPane ¶
func (*LightPane) SendBrightnessToDevices ¶
func (p *LightPane) SendBrightnessToDevices()
func (*LightPane) SendColorToDevices ¶
func (p *LightPane) SendColorToDevices()
func (*LightPane) SendOnOffToDevices ¶
func (p *LightPane) SendOnOffToDevices()
func (*LightPane) SetOnOffState ¶
type MediaPane ¶
type MediaPane struct {
// contains filtered or unexported fields
}
func NewMediaPane ¶
func NewMediaPane(conn *ninja.Connection) *MediaPane
func (*MediaPane) SendVolume ¶
func (p *MediaPane) SendVolume()
func (*MediaPane) SendVolumeAdjust ¶
func (*MediaPane) SetControlState ¶
type MediaPaneImages ¶
type OnOffPane ¶
type OnOffPane struct {
// contains filtered or unexported fields
}
func NewOnOffPane ¶
type PairingCodePane ¶
type PairingCodePane struct {
// contains filtered or unexported fields
}
func NewPairingCodePane ¶
func NewPairingCodePane(text string) *PairingCodePane
func (*PairingCodePane) Gesture ¶
func (p *PairingCodePane) Gesture(gesture *gestic.GestureMessage)
func (*PairingCodePane) IsDirty ¶
func (p *PairingCodePane) IsDirty() bool
func (*PairingCodePane) IsEnabled ¶
func (p *PairingCodePane) IsEnabled() bool
func (*PairingCodePane) KeepAwake ¶
func (p *PairingCodePane) KeepAwake() bool
type PairingColorPane ¶
type PairingColorPane struct {
// contains filtered or unexported fields
}
func NewPairingColorPane ¶
func NewPairingColorPane(maskImage string, color color.Color) *PairingColorPane
func (*PairingColorPane) Gesture ¶
func (p *PairingColorPane) Gesture(gesture *gestic.GestureMessage)
func (*PairingColorPane) IsDirty ¶
func (p *PairingColorPane) IsDirty() bool
func (*PairingColorPane) IsEnabled ¶
func (p *PairingColorPane) IsEnabled() bool
func (*PairingColorPane) KeepAwake ¶
func (p *PairingColorPane) KeepAwake() bool
type PairingLayout ¶
type PairingLayout struct {
// contains filtered or unexported fields
}
func NewPairingLayout ¶
func NewPairingLayout() *PairingLayout
func (*PairingLayout) Draw ¶
func (l *PairingLayout) Draw(updates *[][]uint8)
func (*PairingLayout) ShowCode ¶
func (l *PairingLayout) ShowCode(text string)
func (*PairingLayout) ShowColor ¶
func (l *PairingLayout) ShowColor(c color.Color)
func (*PairingLayout) ShowDrawing ¶
func (l *PairingLayout) ShowDrawing()
func (*PairingLayout) ShowFadingColor ¶
func (l *PairingLayout) ShowFadingColor(c color.Color, d time.Duration)
func (*PairingLayout) ShowFadingShrinkingColor ¶
func (l *PairingLayout) ShowFadingShrinkingColor(c color.Color, d time.Duration)
func (*PairingLayout) ShowIcon ¶
func (l *PairingLayout) ShowIcon(image string)
func (*PairingLayout) ShowUpdateProgress ¶
func (l *PairingLayout) ShowUpdateProgress(progress float64)
type PaneLayout ¶
type PaneLayout struct {
// contains filtered or unexported fields
}
func NewPaneLayout ¶
func NewPaneLayout(fakeGestures bool, conn *ninja.Connection) (*PaneLayout, chan (bool))
func (*PaneLayout) AddPane ¶
func (l *PaneLayout) AddPane(pane Pane)
func (*PaneLayout) IsDirty ¶
func (l *PaneLayout) IsDirty() bool
func (*PaneLayout) OnGesture ¶
func (l *PaneLayout) OnGesture(g *gestic.GestureMessage)
func (*PaneLayout) RemovePane ¶
func (l *PaneLayout) RemovePane(pane Pane)
func (*PaneLayout) Sleep ¶
func (l *PaneLayout) Sleep()
func (*PaneLayout) Wake ¶
func (l *PaneLayout) Wake()
type TextScrollPane ¶
type TextScrollPane struct {
// contains filtered or unexported fields
}
func NewTextScrollPane ¶
func NewTextScrollPane(text string) *TextScrollPane
func (*TextScrollPane) Gesture ¶
func (p *TextScrollPane) Gesture(gesture *gestic.GestureMessage)
func (*TextScrollPane) IsDirty ¶
func (p *TextScrollPane) IsDirty() bool
func (*TextScrollPane) IsEnabled ¶
func (p *TextScrollPane) IsEnabled() bool
func (*TextScrollPane) KeepAwake ¶
func (p *TextScrollPane) KeepAwake() bool
type Tween ¶
type UpdateProgressPane ¶
type UpdateProgressPane struct {
// contains filtered or unexported fields
}
func NewUpdateProgressPane ¶
func NewUpdateProgressPane(progressImage string, loopingImage string) *UpdateProgressPane
func (*UpdateProgressPane) Gesture ¶
func (p *UpdateProgressPane) Gesture(gesture *gestic.GestureMessage)
func (*UpdateProgressPane) IsDirty ¶
func (p *UpdateProgressPane) IsDirty() bool
func (*UpdateProgressPane) IsEnabled ¶
func (p *UpdateProgressPane) IsEnabled() bool
func (*UpdateProgressPane) KeepAwake ¶
func (p *UpdateProgressPane) KeepAwake() bool
type WeatherPane ¶
type WeatherPane struct {
// contains filtered or unexported fields
}
func NewWeatherPane ¶
func NewWeatherPane(conn *ninja.Connection) *WeatherPane
func (*WeatherPane) Gesture ¶
func (p *WeatherPane) Gesture(gesture *gestic.GestureMessage)
func (*WeatherPane) GetWeather ¶
func (p *WeatherPane) GetWeather()
func (*WeatherPane) IsDirty ¶
func (p *WeatherPane) IsDirty() bool
func (*WeatherPane) IsEnabled ¶
func (p *WeatherPane) IsEnabled() bool
func (*WeatherPane) KeepAwake ¶
func (p *WeatherPane) KeepAwake() bool
Click to show internal directories.
Click to hide internal directories.