hexwidget

package
v0.0.0-...-2aedad7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package hexwidget implements a 7-segment style hexadecimal display

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HexWidget

type HexWidget struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

HexWidget represents a 7-segment hexadecimal display. The segments of the display mapped active-low onto 7 state bits, with segment 0 in the least significant bit.

     0
   -----
  |     |
5 |     | 1
  |  6  |
   -----
  |     |
4 |     | 2
  |  3  |
   -----

func NewHexWidget

func NewHexWidget() *HexWidget

NewHexWidget instantiates a new widget instance, with all of the segments disabled.

func (*HexWidget) CreateRenderer

func (h *HexWidget) CreateRenderer() fyne.WidgetRenderer

CreateRenderer implements fyne.Widget

func (*HexWidget) Update

func (h *HexWidget) Update(segments uint8)

Update changes the state of the segments and causes the widget to refresh so the changes are visible to the user.

Jump to

Keyboard shortcuts

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