sanitview

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package sanitview provides foundational capabilities for managing tview styles. It enables them to be built programmatically, and creates functionality similar to cascading stylesheets where one style can override a subset of another.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TViewStringStyle

type TViewStringStyle = string

func StyleToString

func StyleToString(style *TViewStyle) TViewStringStyle

type TViewStyle

type TViewStyle struct {
	Fg    string
	Bg    string
	Attrs string
	Url   string
}

func MergeTviewStyles

func MergeTviewStyles(styles ...*TViewStyle) *TViewStyle

func StringToStyle

func StringToStyle(s TViewStringStyle) *TViewStyle

func (*TViewStyle) AsTCellStyle

func (tvs *TViewStyle) AsTCellStyle() tcell.Style

func (*TViewStyle) AsTag

func (tvs *TViewStyle) AsTag() string

func (*TViewStyle) Clone

func (tvs *TViewStyle) Clone() *TViewStyle

func (*TViewStyle) IsEmpty

func (s *TViewStyle) IsEmpty() bool

Jump to

Keyboard shortcuts

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