textTag

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

func TagCreateIfNotExists

func TagCreateIfNotExists(buff interface{}, tagName string, props map[string]interface{}) (tag *gtk.TextTag)

CreateTag: create tag with properties and add it to buffer. Check whether tag already exist in this case, only add or update property value.

func TagLookupIfExists

func TagLookupIfExists(buff interface{}, tagName string) (tag *gtk.TextTag, ok bool)

LookupExistingTag:

func TagRemoveIfExists

func TagRemoveIfExists(buff interface{}, tagName string)

RemoveTag: from entire buffer if exists.

func TextTagPropNew

func TextTagPropNew(name string, value interface{}) (outProp map[string]interface{})

TextTagPropNew: Convenient function to create and fill a new TextTagProp struct. i.e: Modify("blue_foreground",

TextTagPropNew("foreground", "#0022FF"),
TextTagPropNew("strikethrough", true))

Types

This section is empty.

Jump to

Keyboard shortcuts

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