-
Notifications
You must be signed in to change notification settings - Fork 71
/
typegen.go
17 lines (10 loc) · 1.99 KB
/
typegen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by "core generate -add-types"; DO NOT EDIT.
package histyle
import (
"cogentcore.org/core/types"
)
var _ = types.AddType(&types.Type{Name: "cogentcore.org/core/texteditor/histyle.Trilean", IDName: "trilean", Doc: "Trilean value for StyleEntry value inheritance."})
var _ = types.AddType(&types.Type{Name: "cogentcore.org/core/texteditor/histyle.StyleEntry", IDName: "style-entry", Doc: "StyleEntry is one value in the map of highlight style values", Fields: []types.Field{{Name: "Color", Doc: "text color"}, {Name: "Background", Doc: "background color"}, {Name: "Border", Doc: "border color? not sure what this is -- not really used"}, {Name: "Bold", Doc: "bold font"}, {Name: "Italic", Doc: "italic font"}, {Name: "Underline", Doc: "underline"}, {Name: "NoInherit", Doc: "don't inherit these settings from sub-category or category levels -- otherwise everything with a Pass is inherited"}}})
var _ = types.AddType(&types.Type{Name: "cogentcore.org/core/texteditor/histyle.Style", IDName: "style", Doc: "Style is a full style map of styles for different token.Tokens tag values"})
var _ = types.AddType(&types.Type{Name: "cogentcore.org/core/texteditor/histyle.Styles", IDName: "styles", Doc: "Styles is a collection of styles", Methods: []types.Method{{Name: "OpenJSON", Doc: "Open hi styles from a JSON-formatted file. You can save and open\nstyles to / from files to share, experiment, transfer, etc.", Directives: []types.Directive{{Tool: "types", Directive: "add"}}, Args: []string{"filename"}, Returns: []string{"error"}}, {Name: "SaveJSON", Doc: "Save hi styles to a JSON-formatted file. You can save and open\nstyles to / from files to share, experiment, transfer, etc.", Directives: []types.Directive{{Tool: "types", Directive: "add"}}, Args: []string{"filename"}, Returns: []string{"error"}}}})
var _ = types.AddType(&types.Type{Name: "cogentcore.org/core/texteditor/histyle.Value", IDName: "value", Doc: "Value represents a [core.HiStyleName] with a button.", Embeds: []types.Field{{Name: "ValueBase"}}})