gtksourceview

package
Version: v0.0.0-...-af2e013 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SourceBuffer

type SourceBuffer struct {
	GSourceBuffer *C.GtkSourceBuffer
	*gtk.TextBuffer
}

----------------------------------------------------------------------- GtkSourceBuffer -----------------------------------------------------------------------

func NewSourceBuffer

func NewSourceBuffer() *SourceBuffer

func NewSourceBufferWithLanguage

func NewSourceBufferWithLanguage(lang *SourceLanguage) *SourceBuffer

func (*SourceBuffer) BeginNotUndoableAction

func (v *SourceBuffer) BeginNotUndoableAction()

func (*SourceBuffer) EndNotUndoableAction

func (v *SourceBuffer) EndNotUndoableAction()

func (*SourceBuffer) GetHighlightSyntax

func (v *SourceBuffer) GetHighlightSyntax() bool

func (*SourceBuffer) GetLanguage

func (v *SourceBuffer) GetLanguage() *SourceLanguage

func (*SourceBuffer) GetNativeBuffer

func (v *SourceBuffer) GetNativeBuffer() unsafe.Pointer

func (*SourceBuffer) SetHighlightMatchingBrackets

func (v *SourceBuffer) SetHighlightMatchingBrackets(hl bool)

func (*SourceBuffer) SetHighlightSyntax

func (v *SourceBuffer) SetHighlightSyntax(highlight bool)

func (*SourceBuffer) SetLanguage

func (v *SourceBuffer) SetLanguage(lang *SourceLanguage)

func (*SourceBuffer) SetStyleScheme

func (v *SourceBuffer) SetStyleScheme(scheme *SourceStyleScheme)

type SourceDrawSpacesFlags

type SourceDrawSpacesFlags int
const (
	SOURCE_DRAW_SPACES_SPACE    SourceDrawSpacesFlags = 1 << 0
	SOURCE_DRAW_SPACES_TAB      SourceDrawSpacesFlags = 1 << 1
	SOURCE_DRAW_SPACES_NEWLINE  SourceDrawSpacesFlags = 1 << 2
	SOURCE_DRAW_SPACES_NBSP     SourceDrawSpacesFlags = 1 << 3
	SOURCE_DRAW_SPACES_LEADING  SourceDrawSpacesFlags = 1 << 4
	SOURCE_DRAW_SPACES_TEXT     SourceDrawSpacesFlags = 1 << 5
	SOURCE_DRAW_SPACES_TRAILING SourceDrawSpacesFlags = 1 << 6
	SOURCE_DRAW_SPACES_ALL      SourceDrawSpacesFlags = (SOURCE_DRAW_SPACES_SPACE |
		SOURCE_DRAW_SPACES_TAB |
		SOURCE_DRAW_SPACES_NEWLINE |
		SOURCE_DRAW_SPACES_NBSP |
		SOURCE_DRAW_SPACES_LEADING |
		SOURCE_DRAW_SPACES_TEXT |
		SOURCE_DRAW_SPACES_TRAILING)
)

type SourceLanguage

type SourceLanguage struct {
	GSourceLanguage *C.GtkSourceLanguage
}

----------------------------------------------------------------------- GtkSourceLanguage -----------------------------------------------------------------------

func (*SourceLanguage) GetGlobs

func (v *SourceLanguage) GetGlobs() []string

func (*SourceLanguage) GetHidden

func (v *SourceLanguage) GetHidden() bool

func (*SourceLanguage) GetId

func (v *SourceLanguage) GetId() string

func (*SourceLanguage) GetMetadata

func (v *SourceLanguage) GetMetadata(name string) string

func (*SourceLanguage) GetMimeTypes

func (v *SourceLanguage) GetMimeTypes() []string

func (*SourceLanguage) GetName

func (v *SourceLanguage) GetName() string

func (*SourceLanguage) GetSection

func (v *SourceLanguage) GetSection() string

func (*SourceLanguage) GetStyleIds

func (v *SourceLanguage) GetStyleIds() []string

func (*SourceLanguage) GetStyleName

func (v *SourceLanguage) GetStyleName(styleId string) string

type SourceLanguageManager

type SourceLanguageManager struct {
	GSourceLanguageManager *C.GtkSourceLanguageManager
}

----------------------------------------------------------------------- GtkSourceLanguageManager -----------------------------------------------------------------------

func NewSourceLanguageManager

func NewSourceLanguageManager() *SourceLanguageManager

func SourceLanguageManagerGetDefault

func SourceLanguageManagerGetDefault() *SourceLanguageManager

func (*SourceLanguageManager) GetLanguage

func (v *SourceLanguageManager) GetLanguage(id string) *SourceLanguage

func (*SourceLanguageManager) GetLanguageIds

func (v *SourceLanguageManager) GetLanguageIds() []string

func (*SourceLanguageManager) GetSearchPath

func (v *SourceLanguageManager) GetSearchPath() []string

func (*SourceLanguageManager) GuessLanguage

func (v *SourceLanguageManager) GuessLanguage(filename string, contentType string) *SourceLanguage

func (*SourceLanguageManager) SetSearchPath

func (v *SourceLanguageManager) SetSearchPath(paths []string)

type SourceSmartHomeEndType

type SourceSmartHomeEndType int
const (
	SOURCE_SMART_HOME_END_DISABLED SourceSmartHomeEndType = 0
	SOURCE_SMART_HOME_END_BEFORE   SourceSmartHomeEndType = 1
	SOURCE_SMART_HOME_END_AFTER    SourceSmartHomeEndType = 2
	SOURCE_SMART_HOME_END_ALWAYS   SourceSmartHomeEndType = 3
)

type SourceStyleScheme

type SourceStyleScheme struct {
	GSourceStyleScheme *C.GtkSourceStyleScheme
}

----------------------------------------------------------------------- GtkSourceStyle -----------------------------------------------------------------------

type SourceStyleSchemeManager

type SourceStyleSchemeManager struct {
	GSourceStyleSchemeManager *C.GtkSourceStyleSchemeManager
}

----------------------------------------------------------------------- GtkSourceStyleSchemeManager -----------------------------------------------------------------------

func NewSourceStyleSchemeManager

func NewSourceStyleSchemeManager() *SourceStyleSchemeManager

func SourceStyleSchemeManagerGetDefault

func SourceStyleSchemeManagerGetDefault() *SourceStyleSchemeManager

func (*SourceStyleSchemeManager) AppendSearchPath

func (v *SourceStyleSchemeManager) AppendSearchPath(path string)

func (*SourceStyleSchemeManager) ForseRescan

func (v *SourceStyleSchemeManager) ForseRescan()

func (*SourceStyleSchemeManager) GetScheme

func (v *SourceStyleSchemeManager) GetScheme(scheme_id string) *SourceStyleScheme

func (*SourceStyleSchemeManager) GetSchemeIds

func (v *SourceStyleSchemeManager) GetSchemeIds() []string

func (*SourceStyleSchemeManager) GetSearchPath

func (v *SourceStyleSchemeManager) GetSearchPath() []string

func (*SourceStyleSchemeManager) PrepandSearchPath

func (v *SourceStyleSchemeManager) PrepandSearchPath(path string)

func (*SourceStyleSchemeManager) SetSearchPath

func (v *SourceStyleSchemeManager) SetSearchPath(paths []string)

type SourceView

type SourceView struct {
	gtk.TextView
}

----------------------------------------------------------------------- GtkSourceView -----------------------------------------------------------------------

func NewSourceView

func NewSourceView() *SourceView

func NewSourceViewWithBuffer

func NewSourceViewWithBuffer(buf *SourceBuffer) *SourceView

func (*SourceView) GetAutoIndent

func (v *SourceView) GetAutoIndent() bool

func (*SourceView) GetDrawSpaces

func (v *SourceView) GetDrawSpaces() SourceDrawSpacesFlags

func (*SourceView) GetHighlightCurrentLine

func (v *SourceView) GetHighlightCurrentLine() bool

func (*SourceView) GetIndentWidth

func (v *SourceView) GetIndentWidth() int

func (*SourceView) GetInsertSpacesInsteadOfTabs

func (v *SourceView) GetInsertSpacesInsteadOfTabs() bool

func (*SourceView) GetRightMarginPosition

func (v *SourceView) GetRightMarginPosition() uint

func (*SourceView) GetShowLineNumbers

func (v *SourceView) GetShowLineNumbers() bool

func (*SourceView) GetShowRightMargin

func (v *SourceView) GetShowRightMargin() bool

func (*SourceView) GetSmartHomeEnd

func (v *SourceView) GetSmartHomeEnd() SourceSmartHomeEndType

func (*SourceView) GetTabWidth

func (v *SourceView) GetTabWidth() uint

func (*SourceView) SetAutoIndent

func (v *SourceView) SetAutoIndent(enable bool)

func (*SourceView) SetDrawSpaces

func (v *SourceView) SetDrawSpaces(flags SourceDrawSpacesFlags)

func (*SourceView) SetHighlightCurrentLine

func (v *SourceView) SetHighlightCurrentLine(enable bool)

func (*SourceView) SetIndentWidth

func (v *SourceView) SetIndentWidth(width int)

func (*SourceView) SetInsertSpacesInsteadOfTabs

func (v *SourceView) SetInsertSpacesInsteadOfTabs(enable bool)

func (*SourceView) SetRightMarginPosition

func (v *SourceView) SetRightMarginPosition(pos uint)

func (*SourceView) SetShowLineNumbers

func (v *SourceView) SetShowLineNumbers(enable bool)

func (*SourceView) SetShowRightMargin

func (v *SourceView) SetShowRightMargin(enable bool)

func (*SourceView) SetSmartHomeEnd

func (v *SourceView) SetSmartHomeEnd(flags SourceSmartHomeEndType)

func (*SourceView) SetTabWidth

func (v *SourceView) SetTabWidth(width uint)

func (*SourceView) ToNativeSourceView

func (v *SourceView) ToNativeSourceView() *C.GtkSourceView

Jump to

Keyboard shortcuts

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