Documentation ¶
Index ¶
- func TagCreateIfNotExists(buff interface{}, tagName string, props map[string]interface{}) (tag *gtk.TextTag)
- func TagLookupIfExists(buff interface{}, tagName string) (tag *gtk.TextTag, ok bool)
- func TagRemoveIfExists(buff interface{}, tagName string)
- func TextTagPropNew(name string, value interface{}) (outProp map[string]interface{})
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 ¶
LookupExistingTag:
func TagRemoveIfExists ¶
func TagRemoveIfExists(buff interface{}, tagName string)
RemoveTag: from entire buffer if exists.
func TextTagPropNew ¶
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.
Click to show internal directories.
Click to hide internal directories.