textstyle

package
v0.0.0-...-fc402b7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackgroundColor

type BackgroundColor struct {
	NamedColor NamedColor
}

func (*BackgroundColor) String

func (f *BackgroundColor) String() string

type ForegroundColor

type ForegroundColor struct {
	NamedColor NamedColor
}

func (*ForegroundColor) String

func (f *ForegroundColor) String() string

type NamedColor

type NamedColor int
const (
	Black NamedColor = iota
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
	NoColor = -1
)

func (NamedColor) BackgroundColor

func (a NamedColor) BackgroundColor() *BackgroundColor

func (NamedColor) ColorName

func (n NamedColor) ColorName() string

func (NamedColor) ForegroundColor

func (a NamedColor) ForegroundColor() *ForegroundColor

type TextStyle

type TextStyle int
const (
	Bold TextStyle = 1 << iota
	Italic
	Underline
)

func (TextStyle) Flatten

func (t TextStyle) Flatten() attributedtext.Attributes

func (TextStyle) IsBold

func (t TextStyle) IsBold() bool

func (TextStyle) IsItalic

func (t TextStyle) IsItalic() bool

func (TextStyle) IsUnderline

func (t TextStyle) IsUnderline() bool

func (TextStyle) String

func (t TextStyle) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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