package
0.1.4
Repository: https://github.com/diamondburned/gotktrix.git
Documentation: pkg.go.dev

# Functions

DefaultColorHasher returns the default color hasher.
Markup renders the markup string for the given user inside the given room.
Name returns the raw name string with no markup.
NewChip creates a new Chip widget.
RGBHex converts the given color to a HTML hex color string.
SetDefaultColorHasher sets the default hasher that the package uses.
Text renders the author's name into a rich text buffer.
UserColor returns the color in hexadecimal with the # prefix.
WithColorHasher uses the given color hasher.
WithMention makes the renderer prefix an at ("@") symbol.
WithMinimal renders the markup without additional information, such as pronouns.
WithName overrides the name in the generated author string.
WithShade renders the markup with a background shade.
WithTextTagAttr sets the given attribute into the text tag used for the author.
WithWidgetColor determines the best hasher from the given widget.

# Variables

DarkColorHasher generates a darker, stronger color name for use with a light background.
DJB2Hasher is the string hasher used for color hashing.
FNVHasher is the alternative hasher for color hashing.
LightColorHasher generates a pastel color name for use with a dark background.

# Structs

Chip describes a user chip.
HSVHasher describes a color hasher that accepts saturation and value parameters in the HSV color space.

# Interfaces

ColorHasher describes a string hasher that outputs a color.

# Type aliases

MarkupMod is a function type that Markup can take multiples of.