digitalclock

package
v0.0.0-...-9c5270f Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AM = "A"

AM defines the AM string format

View Source
const PM = "P"

PM defines the PM string format

Variables

This section is empty.

Functions

This section is empty.

Types

type ClockFont

type ClockFont struct {
	// contains filtered or unexported fields
}

ClockFont struct to hold the font info

type ClockFontInterface

type ClockFontInterface interface {
	// contains filtered or unexported methods
}

ClockFontInterface to makes sure all fonts implement join and get methods

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

Settings defines the configuration properties for this module

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

NewSettingsFromYAML creates a new settings instance from a YAML config block

type Widget

type Widget struct {
	view.TextWidget
	// contains filtered or unexported fields
}

Widget is a text widget struct to hold info about the current widget

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, settings *Settings) *Widget

NewWidget creates a new widget using settings

func (*Widget) Refresh

func (widget *Widget) Refresh()

Refresh updates the onscreen contents of the widget

Jump to

Keyboard shortcuts

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