Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EditorStyle ¶
type EditorStyle struct {
Font font.Font
// LineHeight controls the distance between the baselines of lines of text.
// If zero, a sensible default will be used.
LineHeight unit.Sp
// LineHeightScale applies a scaling factor to the LineHeight. If zero, a
// sensible default will be used.
LineHeightScale float32
// TabWidth set how many spaces to represent a tab character.
TabWidth int
// TextSize set the text size.
TextSize unit.Sp
// TextWeight set the text weight.
TextWeight font.Weight
// Color is the text color.
Color color.NRGBA
// SelectionColor is the color of the background for selected text.
SelectionColor color.NRGBA
//LineHighlightColor is the color used to highlight the clicked logical line.
// If not set, line will not be highlighted.
LineHighlightColor color.NRGBA
// TextHighlightColor use the color used to highlight the interested substring.
TextHighlightColor color.NRGBA
// Gap size between the line number bar and the main text area.
LineNumberGutter unit.Dp
LineNumberColor color.NRGBA
Editor *editor.Editor
// contains filtered or unexported fields
}
func (EditorStyle) Layout ¶
func (e EditorStyle) Layout(gtx layout.Context) layout.Dimensions
Click to show internal directories.
Click to hide internal directories.