gtk3Import

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PangoColor

type PangoColor struct {
	Black     string
	Brown     string
	White     string
	Red       string
	Green     string
	Blue      string
	Cyan      string
	Magenta   string
	Purple    string
	Turquoise string
	Violet    string

	Darkred   string
	Darkgreen string
	Darkblue  string
	Darkgray  string
	Darkcyan  string

	Lightblue      string
	Lightgray      string
	Lightgreen     string
	Lightturquoise string
	Lightred       string
	Lightyellow    string
}

func PangoColorNew

func PangoColorNew() (pc *PangoColor)

func (*PangoColor) Init

func (pc *PangoColor) Init()

type PangoSimple

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

func PangoSimpleNew

func PangoSimpleNew() (ps *PangoSimple)

func (*PangoSimple) ApplyMarkup

func (pm *PangoSimple) ApplyMarkup(markup ...string) string

ApplyMarkup: This method add automatically the closer at end. ie: ApplyMarkup(`<span foreground="#FFFFFF">`, "hello")

func (*PangoSimple) ApplyMarkupAgain

func (pm *PangoSimple) ApplyMarkupAgain(markup ...string) string

func (*PangoSimple) Finalize

func (pm *PangoSimple) Finalize(inString string) string

finalize: restore originals characters using markup replacement

func (*PangoSimple) Init

func (pm *PangoSimple) Init()

Init: Init PangoSimple structure

func (*PangoSimple) MarkupHttpClickable

func (pm *PangoSimple) MarkupHttpClickable(inString string, keepFromEnd ...int) (outString string)

MarkupHttpClickable: Search for http adresses in the input text and make http adress as clickable links

func (*PangoSimple) Prepare

func (pm *PangoSimple) Prepare(inString string) string

prepare: sanitize input string to safely use with pango

Jump to

Keyboard shortcuts

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