static

package
v0.0.0-...-c936f35 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package static provides a simple module that shows static content on the bar, with methods to set the content. In a pinch, this can be used to create buttons, or show additional information by setting the output from within a format function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module represents a module that displays static content on the bar.

func New

func New(initial bar.Output) *Module

New constructs a static module that displays the given output.

func (*Module) Clear

func (m *Module) Clear()

Clear sets an empty output.

func (*Module) Set

func (m *Module) Set(out bar.Output)

Set sets the output to display.

func (*Module) Stream

func (m *Module) Stream(sink bar.Sink)

Stream starts the module.

Jump to

Keyboard shortcuts

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