gtksourceview

package
v0.0.0-...-f05e200 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2013 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package gtksourceview provides API definitions for accessing libgtksourceview-2.0-0.dll.

Index

Constants

This section is empty.

Variables

View Source
var (
	BufferGetType         func() O.Type
	BufferNew             func(table *G.TextTagTable) *Buffer
	BufferNewWithLanguage func(language *Language) *Buffer

	BufferBackwardIterToSourceMark         func(b *Buffer, iter *G.TextIter, category string) bool
	BufferBeginNotUndoableAction           func(b *Buffer)
	BufferCanRedo                          func(b *Buffer) bool
	BufferCanUndo                          func(b *Buffer) bool
	BufferCreateSourceMark                 func(b *Buffer, name, category string, where *G.TextIter) *Mark
	BufferEndNotUndoableAction             func(b *Buffer)
	BufferEnsureHighlight                  func(b *Buffer, start, end *G.TextIter)
	BufferForwardIterToSourceMark          func(b *Buffer, iter *G.TextIter, category string) bool
	BufferGetContextClassesAtIter          func(b *Buffer, iter *G.TextIter) []string
	BufferGetHighlightMatchingBrackets     func(b *Buffer) bool
	BufferGetHighlightSyntax               func(b *Buffer) bool
	BufferGetLanguage                      func(b *Buffer) *Language
	BufferGetMaxUndoLevels                 func(b *Buffer) int
	BufferGetSourceMarksAtIter             func(b *Buffer, iter *G.TextIter, category string) *L.SList
	BufferGetSourceMarksAtLine             func(b *Buffer, line int, category string) *L.SList
	BufferGetStyleScheme                   func(b *Buffer) *StyleScheme
	BufferGetUndoManager                   func(b *Buffer) *UndoManager
	BufferIterBackwardToContextClassToggle func(b *Buffer, iter *G.TextIter, contextClass string) bool
	BufferIterForwardToContextClassToggle  func(b *Buffer, iter *G.TextIter, contextClass string) bool
	BufferIterHasContextClass              func(b *Buffer, iter *G.TextIter, contextClass string) bool
	BufferRedo                             func(b *Buffer)
	BufferRemoveSourceMarks                func(b *Buffer, start *G.TextIter, end *G.TextIter, category string)
	BufferSetHighlightMatchingBrackets     func(b *Buffer, highlight bool)
	BufferSetHighlightSyntax               func(b *Buffer, highlight bool)
	BufferSetLanguage                      func(b *Buffer, language *Language)
	BufferSetMaxUndoLevels                 func(b *Buffer, maxUndoLevels int)
	BufferSetStyleScheme                   func(b *Buffer, scheme *StyleScheme)
	BufferSetUndoManager                   func(b *Buffer, manager *UndoManager)
	BufferUndo                             func(b *Buffer)
)
View Source
var (
	CompletionGetType    func() O.Type
	CompletionErrorQuark func() L.Quark

	CompletionAddProvider        func(c *Completion, provider *CompletionProvider, err **L.Error) bool
	CompletionBlockInteractive   func(c *Completion)
	CompletionCreateContext      func(c *Completion, position *G.TextIter) *CompletionContext
	CompletionGetInfoWindow      func(c *Completion) *CompletionInfo
	CompletionGetProviders       func(c *Completion) *L.List
	CompletionGetView            func(c *Completion) *View
	CompletionHide               func(c *Completion)
	CompletionMoveWindow         func(c *Completion, iter *G.TextIter)
	CompletionRemoveProvider     func(c *Completion, provider *CompletionProvider, err **L.Error) bool
	CompletionShow               func(c *Completion, providers *L.List, context *CompletionContext) bool
	CompletionUnblockInteractive func(c *Completion)
)
View Source
var (
	CompletionContextGetType func() O.Type

	CompletionContextAddProposals  func(c *CompletionContext, provider *CompletionProvider, proposals *L.List, finished bool)
	CompletionContextGetActivation func(c *CompletionContext) CompletionActivation
	CompletionContextGetIter       func(c *CompletionContext, iter *G.TextIter)
)
View Source
var (
	CompletionInfoGetType func() O.Type
	CompletionInfoNew     func() *CompletionInfo

	CompletionInfoGetWidget     func(c *CompletionInfo) *G.Widget
	CompletionInfoMoveToIter    func(c *CompletionInfo, view *G.TextView, iter *G.TextIter)
	CompletionInfoProcessResize func(c *CompletionInfo)
	CompletionInfoSetSizing     func(c *CompletionInfo, width, height int, shrinkWidth bool, shrinkHeight bool)
	CompletionInfoSetWidget     func(c *CompletionInfo, widget *G.Widget)
)
View Source
var (
	CompletionItemGetType       func() O.Type
	CompletionItemNew           func(label, text string, icon *D.Pixbuf, info string) *CompletionItem
	CompletionItemNewWithMarkup func(markup, text string, icon *D.Pixbuf, info string) *CompletionItem
	CompletionItemNewFromStock  func(label, text, stock, info string) *CompletionItem
)
View Source
var (
	CompletionProposalGetType func() O.Type

	CompletionProposalChanged   func(c *CompletionProposal)
	CompletionProposalEqual     func(c *CompletionProposal, other *CompletionProposal) bool
	CompletionProposalGetIcon   func(c *CompletionProposal) *D.Pixbuf
	CompletionProposalGetInfo   func(c *CompletionProposal) string
	CompletionProposalGetLabel  func(c *CompletionProposal) string
	CompletionProposalGetMarkup func(c *CompletionProposal) string
	CompletionProposalGetText   func(c *CompletionProposal) string
	CompletionProposalHash      func(c *CompletionProposal) uint
)
View Source
var (
	CompletionProviderGetType func() O.Type

	CompletionProviderActivateProposal    func(c *CompletionProvider, proposal *CompletionProposal, iter *G.TextIter) bool
	CompletionProviderGetActivation       func(c *CompletionProvider) CompletionActivation
	CompletionProviderGetIcon             func(c *CompletionProvider) *D.Pixbuf
	CompletionProviderGetInfoWidget       func(c *CompletionProvider, proposal *CompletionProposal) *G.Widget
	CompletionProviderGetInteractiveDelay func(c *CompletionProvider) int
	CompletionProviderGetName             func(c *CompletionProvider) string
	CompletionProviderGetPriority         func(c *CompletionProvider) int
	CompletionProviderGetStartIter        func(c *CompletionProvider, context *CompletionContext, proposal *CompletionProposal, iter *G.TextIter) bool
	CompletionProviderMatch               func(c *CompletionProvider, context *CompletionContext) bool
	CompletionProviderPopulate            func(c *CompletionProvider, context *CompletionContext)
	CompletionProviderUpdateInfo          func(c *CompletionProvider, proposal *CompletionProposal, info *CompletionInfo)
)
View Source
var (
	CompletionWordsGetType func() O.Type
	CompletionWordsNew     func(name string, icon *D.Pixbuf) *CompletionWords

	CompletionWordsRegister   func(words *CompletionWords, buffer *G.TextBuffer)
	CompletionWordsUnregister func(words *CompletionWords, buffer *G.TextBuffer)
)
View Source
var (
	GutterGetType func() O.Type

	GutterGetWindow       func(g *Gutter) *D.Window
	GutterInsert          func(g *Gutter, renderer *G.CellRenderer, position int)
	GutterQueueDraw       func(g *Gutter)
	GutterRemove          func(g *Gutter, renderer *G.CellRenderer)
	GutterReorder         func(g *Gutter, renderer *G.CellRenderer, position int)
	GutterSetCellDataFunc func(g *Gutter, renderer *G.CellRenderer, f GutterDataFunc, funcData T.Gpointer, destroy O.DestroyNotify)
	GutterSetCellSizeFunc func(g *Gutter, renderer *G.CellRenderer, f GutterSizeFunc, funcData T.Gpointer, destroy O.DestroyNotify)
)
View Source
var (
	IterForwardSearch  func(iter *G.TextIter, str string, flags SearchFlags, matchStart *G.TextIter, matchEnd *G.TextIter, limit *G.TextIter) bool
	IterBackwardSearch func(iter *G.TextIter, str string, flags SearchFlags, matchStart *G.TextIter, matchEnd *G.TextIter, limit *G.TextIter) bool
)
View Source
var (
	LanguageGetType func() O.Type

	LanguageGetGlobs     func(language *Language) []string
	LanguageGetHidden    func(language *Language) bool
	LanguageGetId        func(language *Language) string
	LanguageGetMetadata  func(language *Language, name string) string
	LanguageGetMimeTypes func(language *Language) []string
	LanguageGetName      func(language *Language) string
	LanguageGetSection   func(language *Language) string
	LanguageGetStyleIds  func(language *Language) []string
	LanguageGetStyleName func(language *Language, styleId string) string
)
View Source
var (
	LanguageManagerGetType func() O.Type
	LanguageManagerNew     func() *LanguageManager

	LanguageManagerGetDefault func() *LanguageManager

	LanguageManagerGetLanguage    func(l *LanguageManager, id string) *Language
	LanguageManagerGetLanguageIds func(l *LanguageManager) []string
	LanguageManagerGetSearchPath  func(l *LanguageManager) []string
	LanguageManagerGuessLanguage  func(l *LanguageManager, filename string, contentType string) *Language
	LanguageManagerSetSearchPath  func(l *LanguageManager, dirs []string)
)
View Source
var (
	MarkGetType func() O.Type
	MarkNew     func(name, category string) *Mark

	MarkGetCategory func(m *Mark) string
	MarkNext        func(m *Mark, category string) *Mark
	MarkPrev        func(m *Mark, category string) *Mark
)
View Source
var (
	PrintCompositorGetType     func() O.Type
	PrintCompositorNew         func(buffer *Buffer) *PrintCompositor
	PrintCompositorNewFromView func(view *View) *PrintCompositor

	PrintCompositorDrawPage               func(p *PrintCompositor, context *G.PrintContext, pageNr int)
	PrintCompositorGetBodyFontName        func(p *PrintCompositor) string
	PrintCompositorGetBottomMargin        func(p *PrintCompositor, unit G.Unit) float64
	PrintCompositorGetBuffer              func(p *PrintCompositor) *Buffer
	PrintCompositorGetFooterFontName      func(p *PrintCompositor) string
	PrintCompositorGetHeaderFontName      func(p *PrintCompositor) string
	PrintCompositorGetHighlightSyntax     func(p *PrintCompositor) bool
	PrintCompositorGetLeftMargin          func(p *PrintCompositor, unit G.Unit) float64
	PrintCompositorGetLineNumbersFontName func(p *PrintCompositor) string
	PrintCompositorGetNPages              func(p *PrintCompositor) int
	PrintCompositorGetPaginationProgress  func(p *PrintCompositor) float64
	PrintCompositorGetPrintFooter         func(p *PrintCompositor) bool
	PrintCompositorGetPrintHeader         func(p *PrintCompositor) bool
	PrintCompositorGetPrintLineNumbers    func(p *PrintCompositor) uint
	PrintCompositorGetRightMargin         func(p *PrintCompositor, unit G.Unit) float64
	PrintCompositorGetTabWidth            func(p *PrintCompositor) uint
	PrintCompositorGetTopMargin           func(p *PrintCompositor, unit G.Unit) float64
	PrintCompositorGetWrapMode            func(p *PrintCompositor) G.WrapMode
	PrintCompositorPaginate               func(p *PrintCompositor, context *G.PrintContext) bool
	PrintCompositorSetBodyFontName        func(p *PrintCompositor, fontName string)
	PrintCompositorSetBottomMargin        func(p *PrintCompositor, margin float64, unit G.Unit)
	PrintCompositorSetFooterFontName      func(p *PrintCompositor, fontName string)
	PrintCompositorSetFooterFormat        func(p *PrintCompositor, separator bool, left, center, right string)
	PrintCompositorSetHeaderFontName      func(p *PrintCompositor, fontName string)
	PrintCompositorSetHeaderFormat        func(p *PrintCompositor, separator bool, left, center, right string)
	PrintCompositorSetHighlightSyntax     func(p *PrintCompositor, highlight bool)
	PrintCompositorSetLeftMargin          func(p *PrintCompositor, margin float64, unit G.Unit)
	PrintCompositorSetLineNumbersFontName func(p *PrintCompositor, fontName string)
	PrintCompositorSetPrintFooter         func(p *PrintCompositor, prt bool)
	PrintCompositorSetPrintHeader         func(p *PrintCompositor, prt bool)
	PrintCompositorSetPrintLineNumbers    func(p *PrintCompositor, interval uint)
	PrintCompositorSetRightMargin         func(p *PrintCompositor, margin float64, unit G.Unit)
	PrintCompositorSetTabWidth            func(p *PrintCompositor, width uint)
	PrintCompositorSetTopMargin           func(p *PrintCompositor, margin float64, unit G.Unit)
	PrintCompositorSetWrapMode            func(p *PrintCompositor, wrapMode G.WrapMode)
)
View Source
var (
	StyleGetType func() O.Type

	StyleCopy func(s *Style) *Style
)
View Source
var (
	StyleSchemeGetType func() O.Type

	StyleSchemeGetAuthors     func(s *StyleScheme) []string
	StyleSchemeGetDescription func(s *StyleScheme) string
	StyleSchemeGetFilename    func(s *StyleScheme) string
	StyleSchemeGetId          func(s *StyleScheme) string
	StyleSchemeGetName        func(s *StyleScheme) string
	StyleSchemeGetStyle       func(s *StyleScheme, styleId string) *Style
)
View Source
var (
	StyleSchemeManagerGetType func() O.Type
	StyleSchemeManagerNew     func() *StyleSchemeManager

	StyleSchemeManagerGetDefault func() *StyleSchemeManager

	StyleSchemeManagerAppendSearchPath  func(s *StyleSchemeManager, path string)
	StyleSchemeManagerForceRescan       func(s *StyleSchemeManager)
	StyleSchemeManagerGetScheme         func(s *StyleSchemeManager, schemeId string) *StyleScheme
	StyleSchemeManagerGetSchemeIds      func(s *StyleSchemeManager) []string
	StyleSchemeManagerGetSearchPath     func(s *StyleSchemeManager) []string
	StyleSchemeManagerPrependSearchPath func(s *StyleSchemeManager, path string)
	StyleSchemeManagerSetSearchPath     func(s *StyleSchemeManager, path **T.Gchar)
)
View Source
var (
	UndoManagerGetType func() O.Type

	UndoManagerBeginNotUndoableAction func(u *UndoManager)
	UndoManagerCanRedo                func(u *UndoManager) bool
	UndoManagerCanRedoChanged         func(u *UndoManager)
	UndoManagerCanUndo                func(u *UndoManager) bool
	UndoManagerCanUndoChanged         func(u *UndoManager)
	UndoManagerEndNotUndoableAction   func(u *UndoManager)
	UndoManagerRedo                   func(u *UndoManager)
	UndoManagerUndo                   func(u *UndoManager)
)
View Source
var (
	ViewGetType       func() O.Type
	ViewNew           func() *G.Widget
	ViewNewWithBuffer func(buffer *Buffer) *G.Widget

	ViewGetAutoIndent                    func(v *View) bool
	ViewGetCompletion                    func(v *View) *Completion
	ViewGetDrawSpaces                    func(v *View) DrawSpacesFlags
	ViewGetGutter                        func(v *View, windowType G.TextWindowType) *Gutter
	ViewGetHighlightCurrentLine          func(v *View) bool
	ViewGetIndentOnTab                   func(v *View) bool
	ViewGetIndentWidth                   func(v *View) int
	ViewGetInsertSpacesInsteadOfTabs     func(v *View) bool
	ViewGetMarkCategoryBackground        func(v *View, category string, dest *D.Color) bool
	ViewGetMarkCategoryPixbuf            func(v *View, category string) *D.Pixbuf
	ViewGetMarkCategoryPriority          func(v *View, category string) int
	ViewGetRightMarginPosition           func(v *View) uint
	ViewGetShowLineMarks                 func(v *View) bool
	ViewGetShowLineNumbers               func(v *View) bool
	ViewGetShowRightMargin               func(v *View) bool
	ViewGetSmartHomeEnd                  func(v *View) SmartHomeEndType
	ViewGetTabWidth                      func(v *View) uint
	ViewSetAutoIndent                    func(v *View, enable bool)
	ViewSetDrawSpaces                    func(v *View, flags DrawSpacesFlags)
	ViewSetHighlightCurrentLine          func(v *View, show bool)
	ViewSetIndentOnTab                   func(v *View, enable bool)
	ViewSetIndentWidth                   func(v *View, width int)
	ViewSetInsertSpacesInsteadOfTabs     func(v *View, enable bool)
	ViewSetMarkCategoryBackground        func(v *View, category string, color *D.Color)
	ViewSetMarkCategoryIconFromIconName  func(v *View, category, name string)
	ViewSetMarkCategoryIconFromPixbuf    func(v *View, category string, pixbuf *D.Pixbuf)
	ViewSetMarkCategoryIconFromStock     func(v *View, category, stockId string)
	ViewSetMarkCategoryPixbuf            func(v *View, category string, pixbuf *D.Pixbuf)
	ViewSetMarkCategoryPriority          func(v *View, category string, priority int)
	ViewSetMarkCategoryTooltipFunc       func(v *View, category string, f ViewMarkTooltipFunc, userData T.Gpointer, userDataNotify O.DestroyNotify)
	ViewSetMarkCategoryTooltipMarkupFunc func(v *View, category string, markupFunc ViewMarkTooltipFunc, userData T.Gpointer, userDataNotify O.DestroyNotify)
	ViewSetRightMarginPosition           func(v *View, pos uint)
	ViewSetShowLineMarks                 func(v *View, show bool)
	ViewSetShowLineNumbers               func(v *View, show bool)
	ViewSetShowRightMargin               func(v *View, show bool)
	ViewSetSmartHomeEnd                  func(v *View, smartHe SmartHomeEndType)
	ViewSetTabWidth                      func(v *View, width uint)
)
View Source
var CompletionActivationGetType func() O.Type
View Source
var CompletionErrorGetType func() O.Type
View Source
var DrawSpacesFlagsGetType func() O.Type
View Source
var SearchFlagsGetType func() O.Type
View Source
var SmartHomeEndTypeGetType func() O.Type
View Source
var ViewGutterPositionGetType func() O.Type

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	Parent G.TextBuffer
	// contains filtered or unexported fields
}

func (*Buffer) BackwardIterToSourceMark

func (b *Buffer) BackwardIterToSourceMark(iter *G.TextIter, category string) bool

func (*Buffer) BeginNotUndoableAction

func (b *Buffer) BeginNotUndoableAction()

func (*Buffer) CanRedo

func (b *Buffer) CanRedo() bool

func (*Buffer) CanUndo

func (b *Buffer) CanUndo() bool

func (*Buffer) ContextClassesAtIter

func (b *Buffer) ContextClassesAtIter(iter *G.TextIter) []string

func (*Buffer) CreateSourceMark

func (b *Buffer) CreateSourceMark(name, category string, where *G.TextIter) *Mark

func (*Buffer) EndNotUndoableAction

func (b *Buffer) EndNotUndoableAction()

func (*Buffer) EnsureHighlight

func (b *Buffer) EnsureHighlight(start, end *G.TextIter)

func (*Buffer) ForwardIterToSourceMark

func (b *Buffer) ForwardIterToSourceMark(iter *G.TextIter, category string) bool

func (*Buffer) HighlightMatchingBrackets

func (b *Buffer) HighlightMatchingBrackets() bool

func (*Buffer) HighlightSyntax

func (b *Buffer) HighlightSyntax() bool

func (*Buffer) IterBackwardToContextClassToggle

func (b *Buffer) IterBackwardToContextClassToggle(iter *G.TextIter, contextClass string) bool

func (*Buffer) IterForwardToContextClassToggle

func (b *Buffer) IterForwardToContextClassToggle(iter *G.TextIter, contextClass string) bool

func (*Buffer) IterHasContextClass

func (b *Buffer) IterHasContextClass(iter *G.TextIter, contextClass string) bool

func (*Buffer) Language

func (b *Buffer) Language() *Language

func (*Buffer) MaxUndoLevels

func (b *Buffer) MaxUndoLevels() int

func (*Buffer) Redo

func (b *Buffer) Redo()

func (*Buffer) RemoveSourceMarks

func (b *Buffer) RemoveSourceMarks(start *G.TextIter, end *G.TextIter, category string)

func (*Buffer) SetHighlightMatchingBrackets

func (b *Buffer) SetHighlightMatchingBrackets(highlight bool)

func (*Buffer) SetHighlightSyntax

func (b *Buffer) SetHighlightSyntax(highlight bool)

func (*Buffer) SetLanguage

func (b *Buffer) SetLanguage(language *Language)

func (*Buffer) SetMaxUndoLevels

func (b *Buffer) SetMaxUndoLevels(maxUndoLevels int)

func (*Buffer) SetStyleScheme

func (b *Buffer) SetStyleScheme(scheme *StyleScheme)

func (*Buffer) SetUndoManager

func (b *Buffer) SetUndoManager(manager *UndoManager)

func (*Buffer) SourceMarksAtIter

func (b *Buffer) SourceMarksAtIter(iter *G.TextIter, category string) *L.SList

func (*Buffer) SourceMarksAtLine

func (b *Buffer) SourceMarksAtLine(line int, category string) *L.SList

func (*Buffer) StyleScheme

func (b *Buffer) StyleScheme() *StyleScheme

func (*Buffer) Undo

func (b *Buffer) Undo()

func (*Buffer) UndoManager

func (b *Buffer) UndoManager() *UndoManager

type Completion

type Completion struct {
	Parent G.Object
	// contains filtered or unexported fields
}

func (*Completion) AddProvider

func (c *Completion) AddProvider(provider *CompletionProvider, err **L.Error) bool

func (*Completion) BlockInteractive

func (c *Completion) BlockInteractive()

func (*Completion) CreateContext

func (c *Completion) CreateContext(position *G.TextIter) *CompletionContext

func (*Completion) Hide

func (c *Completion) Hide()

func (*Completion) InfoWindow

func (c *Completion) InfoWindow() *CompletionInfo

func (*Completion) MoveWindow

func (c *Completion) MoveWindow(iter *G.TextIter)

func (*Completion) Providers

func (c *Completion) Providers() *L.List

func (*Completion) RemoveProvider

func (c *Completion) RemoveProvider(provider *CompletionProvider, err **L.Error) bool

func (*Completion) Show

func (c *Completion) Show(providers *L.List, context *CompletionContext) bool

func (*Completion) UnblockInteractive

func (c *Completion) UnblockInteractive()

func (*Completion) View

func (c *Completion) View() *View

type CompletionActivation

type CompletionActivation Enum
const (
	COMPLETION_ACTIVATION_INTERACTIVE CompletionActivation = 1 << iota
	COMPLETION_ACTIVATION_USER_REQUESTED
	COMPLETION_ACTIVATION_NONE CompletionActivation = 0
)

type CompletionContext

type CompletionContext struct {
	Parent T.GInitiallyUnowned
	// contains filtered or unexported fields
}

func (*CompletionContext) Activation

func (c *CompletionContext) Activation() CompletionActivation

func (*CompletionContext) AddProposals

func (c *CompletionContext) AddProposals(provider *CompletionProvider, proposals *L.List, finished bool)

func (*CompletionContext) Iter

func (c *CompletionContext) Iter(iter *G.TextIter)

type CompletionInfo

type CompletionInfo struct {
	Parent G.Window
	// contains filtered or unexported fields
}

func (*CompletionInfo) MoveToIter

func (c *CompletionInfo) MoveToIter(view *G.TextView, iter *G.TextIter)

func (*CompletionInfo) ProcessResize

func (c *CompletionInfo) ProcessResize()

func (*CompletionInfo) SetSizing

func (c *CompletionInfo) SetSizing(width, height int, shrinkWidth bool, shrinkHeight bool)

func (*CompletionInfo) SetWidget

func (c *CompletionInfo) SetWidget(widget *G.Widget)

func (*CompletionInfo) Widget

func (c *CompletionInfo) Widget() *G.Widget

type CompletionItem

type CompletionItem struct {
	Parent O.Object
	// contains filtered or unexported fields
}

type CompletionProposal

type CompletionProposal struct{}

func (*CompletionProposal) Changed

func (c *CompletionProposal) Changed()

func (*CompletionProposal) Equal

func (c *CompletionProposal) Equal(other *CompletionProposal) bool

func (*CompletionProposal) Hash

func (c *CompletionProposal) Hash() uint

func (*CompletionProposal) Icon

func (c *CompletionProposal) Icon() *D.Pixbuf

func (*CompletionProposal) Info

func (c *CompletionProposal) Info() string

func (*CompletionProposal) Label

func (c *CompletionProposal) Label() string

func (*CompletionProposal) Markup

func (c *CompletionProposal) Markup() string

func (*CompletionProposal) Text

func (c *CompletionProposal) Text() string

type CompletionProvider

type CompletionProvider struct{}

func (*CompletionProvider) ActivateProposal

func (c *CompletionProvider) ActivateProposal(proposal *CompletionProposal, iter *G.TextIter) bool

func (*CompletionProvider) Activation

func (c *CompletionProvider) Activation() CompletionActivation

func (*CompletionProvider) Icon

func (c *CompletionProvider) Icon() *D.Pixbuf

func (*CompletionProvider) InfoWidget

func (c *CompletionProvider) InfoWidget(proposal *CompletionProposal) *G.Widget

func (*CompletionProvider) InteractiveDelay

func (c *CompletionProvider) InteractiveDelay() int

func (*CompletionProvider) Match

func (c *CompletionProvider) Match(context *CompletionContext) bool

func (*CompletionProvider) Name

func (c *CompletionProvider) Name() string

func (*CompletionProvider) Populate

func (c *CompletionProvider) Populate(context *CompletionContext)

func (*CompletionProvider) Priority

func (c *CompletionProvider) Priority() int

func (*CompletionProvider) StartIter

func (c *CompletionProvider) StartIter(context *CompletionContext, proposal *CompletionProposal, iter *G.TextIter) bool

func (*CompletionProvider) UpdateInfo

func (c *CompletionProvider) UpdateInfo(proposal *CompletionProposal, info *CompletionInfo)

type CompletionWords

type CompletionWords struct {
	Parent O.Object
	// contains filtered or unexported fields
}

func (*CompletionWords) Register

func (c *CompletionWords) Register(buffer *G.TextBuffer)

func (*CompletionWords) Unregister

func (c *CompletionWords) Unregister(buffer *G.TextBuffer)

type DrawSpacesFlags

type DrawSpacesFlags Enum
const (
	DRAW_SPACES_SPACE DrawSpacesFlags = 1 << iota
	DRAW_SPACES_TAB
	DRAW_SPACES_NEWLINE
	DRAW_SPACES_NBSP
	DRAW_SPACES_LEADING
	DRAW_SPACES_TEXT
	DRAW_SPACES_TRAILING
	DRAW_SPACES_ALL = DRAW_SPACES_SPACE |
		DRAW_SPACES_TAB |
		DRAW_SPACES_NEWLINE |
		DRAW_SPACES_NBSP |
		DRAW_SPACES_LEADING |
		DRAW_SPACES_TEXT |
		DRAW_SPACES_TRAILING
)

type Enum

type Enum int

type Gutter

type Gutter struct {
	Parent O.Object
	// contains filtered or unexported fields
}

func (*Gutter) Insert

func (g *Gutter) Insert(renderer *G.CellRenderer, position int)

func (*Gutter) QueueDraw

func (g *Gutter) QueueDraw()

func (*Gutter) Remove

func (g *Gutter) Remove(renderer *G.CellRenderer)

func (*Gutter) Reorder

func (g *Gutter) Reorder(renderer *G.CellRenderer, position int)

func (*Gutter) SetCellDataFunc

func (g *Gutter) SetCellDataFunc(renderer *G.CellRenderer, f GutterDataFunc, funcData T.Gpointer, destroy O.DestroyNotify)

func (*Gutter) SetCellSizeFunc

func (g *Gutter) SetCellSizeFunc(renderer *G.CellRenderer, f GutterSizeFunc, funcData T.Gpointer, destroy O.DestroyNotify)

func (*Gutter) Window

func (g *Gutter) Window() *D.Window

type GutterDataFunc

type GutterDataFunc func(gutter *Gutter, cell *G.CellRenderer,
	LineNumber int, currentLine bool, data T.Gpointer)

type GutterSizeFunc

type GutterSizeFunc func(
	Gutter *Gutter, cell *G.CellRenderer, data T.Gpointer)

type Language

type Language struct {
	Parent O.Object
	// contains filtered or unexported fields
}

func (*Language) Globs

func (l *Language) Globs() []string

func (*Language) Hidden

func (l *Language) Hidden() bool

func (*Language) Id

func (l *Language) Id() string

func (*Language) Metadata

func (l *Language) Metadata(name string) string

func (*Language) MimeTypes

func (l *Language) MimeTypes() []string

func (*Language) Name

func (l *Language) Name() string

func (*Language) Section

func (l *Language) Section() string

func (*Language) StyleIds

func (l *Language) StyleIds() []string

func (*Language) StyleName

func (l *Language) StyleName(styleId string) string

type LanguageManager

type LanguageManager struct {
	Parent O.Object
	// contains filtered or unexported fields
}

func (*LanguageManager) GuessLanguage

func (l *LanguageManager) GuessLanguage(filename string, contentType string) *Language

func (*LanguageManager) Language

func (l *LanguageManager) Language(id string) *Language

func (*LanguageManager) LanguageIds

func (l *LanguageManager) LanguageIds() []string

func (*LanguageManager) SearchPath

func (l *LanguageManager) SearchPath() []string

func (*LanguageManager) SetSearchPath

func (l *LanguageManager) SetSearchPath(dirs []string)

type Mark

type Mark struct {
	Parent G.TextMark
	// contains filtered or unexported fields
}

func (*Mark) Category

func (m *Mark) Category() string

func (*Mark) Next

func (m *Mark) Next(category string) *Mark

func (*Mark) Prev

func (m *Mark) Prev(category string) *Mark

type PrintCompositor

type PrintCompositor struct {
	Parent O.Object
	// contains filtered or unexported fields
}

func (*PrintCompositor) BodyFontName

func (p *PrintCompositor) BodyFontName() string

func (*PrintCompositor) BottomMargin

func (p *PrintCompositor) BottomMargin(unit G.Unit) float64

func (*PrintCompositor) Buffer

func (p *PrintCompositor) Buffer() *Buffer

func (*PrintCompositor) DrawPage

func (p *PrintCompositor) DrawPage(context *G.PrintContext, pageNr int)

func (*PrintCompositor) FooterFontName

func (p *PrintCompositor) FooterFontName() string

func (*PrintCompositor) HeaderFontName

func (p *PrintCompositor) HeaderFontName() string

func (*PrintCompositor) HighlightSyntax

func (p *PrintCompositor) HighlightSyntax() bool

func (*PrintCompositor) LeftMargin

func (p *PrintCompositor) LeftMargin(unit G.Unit) float64

func (*PrintCompositor) LineNumbersFontName

func (p *PrintCompositor) LineNumbersFontName() string

func (*PrintCompositor) NPages

func (p *PrintCompositor) NPages() int

func (*PrintCompositor) Paginate

func (p *PrintCompositor) Paginate(context *G.PrintContext) bool

func (*PrintCompositor) PaginationProgress

func (p *PrintCompositor) PaginationProgress() float64

func (*PrintCompositor) PrintFooter

func (p *PrintCompositor) PrintFooter() bool

func (*PrintCompositor) PrintHeader

func (p *PrintCompositor) PrintHeader() bool

func (*PrintCompositor) PrintLineNumbers

func (p *PrintCompositor) PrintLineNumbers() uint

func (*PrintCompositor) RightMargin

func (p *PrintCompositor) RightMargin(unit G.Unit) float64

func (*PrintCompositor) SetBodyFontName

func (p *PrintCompositor) SetBodyFontName(fontName string)

func (*PrintCompositor) SetBottomMargin

func (p *PrintCompositor) SetBottomMargin(margin float64, unit G.Unit)

func (*PrintCompositor) SetFooterFontName

func (p *PrintCompositor) SetFooterFontName(fontName string)

func (*PrintCompositor) SetFooterFormat

func (p *PrintCompositor) SetFooterFormat(separator bool, left, center, right string)

func (*PrintCompositor) SetHeaderFontName

func (p *PrintCompositor) SetHeaderFontName(fontName string)

func (*PrintCompositor) SetHeaderFormat

func (p *PrintCompositor) SetHeaderFormat(separator bool, left, center, right string)

func (*PrintCompositor) SetHighlightSyntax

func (p *PrintCompositor) SetHighlightSyntax(highlight bool)

func (*PrintCompositor) SetLeftMargin

func (p *PrintCompositor) SetLeftMargin(margin float64, unit G.Unit)

func (*PrintCompositor) SetLineNumbersFontName

func (p *PrintCompositor) SetLineNumbersFontName(fontName string)

func (*PrintCompositor) SetPrintFooter

func (p *PrintCompositor) SetPrintFooter(prt bool)

func (*PrintCompositor) SetPrintHeader

func (p *PrintCompositor) SetPrintHeader(prt bool)

func (*PrintCompositor) SetPrintLineNumbers

func (p *PrintCompositor) SetPrintLineNumbers(interval uint)

func (*PrintCompositor) SetRightMargin

func (p *PrintCompositor) SetRightMargin(margin float64, unit G.Unit)

func (*PrintCompositor) SetTabWidth

func (p *PrintCompositor) SetTabWidth(width uint)

func (*PrintCompositor) SetTopMargin

func (p *PrintCompositor) SetTopMargin(margin float64, unit G.Unit)

func (*PrintCompositor) SetWrapMode

func (p *PrintCompositor) SetWrapMode(wrapMode G.WrapMode)

func (*PrintCompositor) TabWidth

func (p *PrintCompositor) TabWidth() uint

func (*PrintCompositor) TopMargin

func (p *PrintCompositor) TopMargin(unit G.Unit) float64

func (*PrintCompositor) WrapMode

func (p *PrintCompositor) WrapMode() G.WrapMode

type SearchFlags

type SearchFlags Enum
const (
	SEARCH_VISIBLE_ONLY SearchFlags = 1 << iota
	SEARCH_TEXT_ONLY
	SEARCH_CASE_INSENSITIVE
)

type SmartHomeEndType

type SmartHomeEndType Enum
const (
	SMART_HOME_END_DISABLED SmartHomeEndType = iota
	SMART_HOME_END_BEFORE
	SMART_HOME_END_AFTER
	SMART_HOME_END_ALWAYS
)

type Style

type Style struct{}

func (*Style) Copy

func (s *Style) Copy() *Style

type StyleScheme

type StyleScheme struct {
	Base O.Object
	// contains filtered or unexported fields
}

func (*StyleScheme) Authors

func (s *StyleScheme) Authors() []string

func (*StyleScheme) Description

func (s *StyleScheme) Description() string

func (*StyleScheme) Filename

func (s *StyleScheme) Filename() string

func (*StyleScheme) Id

func (s *StyleScheme) Id() string

func (*StyleScheme) Name

func (s *StyleScheme) Name() string

func (*StyleScheme) Style

func (s *StyleScheme) Style(styleId string) *Style

type StyleSchemeManager

type StyleSchemeManager struct {
	Parent O.Object
	// contains filtered or unexported fields
}

func (*StyleSchemeManager) AppendSearchPath

func (s *StyleSchemeManager) AppendSearchPath(path string)

func (*StyleSchemeManager) ForceRescan

func (s *StyleSchemeManager) ForceRescan()

func (*StyleSchemeManager) PrependSearchPath

func (s *StyleSchemeManager) PrependSearchPath(path string)

func (*StyleSchemeManager) Scheme

func (s *StyleSchemeManager) Scheme(schemeId string) *StyleScheme

func (*StyleSchemeManager) SchemeIds

func (s *StyleSchemeManager) SchemeIds() []string

func (*StyleSchemeManager) SearchPath

func (s *StyleSchemeManager) SearchPath() []string

func (*StyleSchemeManager) SetSearchPath

func (s *StyleSchemeManager) SetSearchPath(path **T.Gchar)

type UndoManager

type UndoManager struct{}

func (*UndoManager) BeginNotUndoableAction

func (u *UndoManager) BeginNotUndoableAction()

func (*UndoManager) CanRedo

func (u *UndoManager) CanRedo() bool

func (*UndoManager) CanRedoChanged

func (u *UndoManager) CanRedoChanged()

func (*UndoManager) CanUndo

func (u *UndoManager) CanUndo() bool

func (*UndoManager) CanUndoChanged

func (u *UndoManager) CanUndoChanged()

func (*UndoManager) EndNotUndoableAction

func (u *UndoManager) EndNotUndoableAction()

func (*UndoManager) Redo

func (u *UndoManager) Redo()

func (*UndoManager) Undo

func (u *UndoManager) Undo()

type View

type View struct {
	Parent G.TextView
	// contains filtered or unexported fields
}

func (*View) AutoIndent

func (v *View) AutoIndent() bool

func (*View) Completion

func (v *View) Completion() *Completion

func (*View) DrawSpaces

func (v *View) DrawSpaces() DrawSpacesFlags

func (*View) Gutter

func (v *View) Gutter(windowType G.TextWindowType) *Gutter

func (*View) HighlightCurrentLine

func (v *View) HighlightCurrentLine() bool

func (*View) IndentOnTab

func (v *View) IndentOnTab() bool

func (*View) IndentWidth

func (v *View) IndentWidth() int

func (*View) InsertSpacesInsteadOfTabs

func (v *View) InsertSpacesInsteadOfTabs() bool

func (*View) MarkCategoryBackground

func (v *View) MarkCategoryBackground(category string, dest *D.Color) bool

func (*View) MarkCategoryPixbuf

func (v *View) MarkCategoryPixbuf(category string) *D.Pixbuf

func (*View) MarkCategoryPriority

func (v *View) MarkCategoryPriority(category string) int

func (*View) RightMarginPosition

func (v *View) RightMarginPosition() uint

func (*View) SetAutoIndent

func (v *View) SetAutoIndent(enable bool)

func (*View) SetDrawSpaces

func (v *View) SetDrawSpaces(flags DrawSpacesFlags)

func (*View) SetHighlightCurrentLine

func (v *View) SetHighlightCurrentLine(show bool)

func (*View) SetIndentOnTab

func (v *View) SetIndentOnTab(enable bool)

func (*View) SetIndentWidth

func (v *View) SetIndentWidth(width int)

func (*View) SetInsertSpacesInsteadOfTabs

func (v *View) SetInsertSpacesInsteadOfTabs(enable bool)

func (*View) SetMarkCategoryBackground

func (v *View) SetMarkCategoryBackground(category string, color *D.Color)

func (*View) SetMarkCategoryIconFromIconName

func (v *View) SetMarkCategoryIconFromIconName(category, name string)

func (*View) SetMarkCategoryIconFromPixbuf

func (v *View) SetMarkCategoryIconFromPixbuf(category string, pixbuf *D.Pixbuf)

func (*View) SetMarkCategoryIconFromStock

func (v *View) SetMarkCategoryIconFromStock(category, stockId string)

func (*View) SetMarkCategoryPixbuf

func (v *View) SetMarkCategoryPixbuf(category string, pixbuf *D.Pixbuf)

func (*View) SetMarkCategoryPriority

func (v *View) SetMarkCategoryPriority(category string, priority int)

func (*View) SetMarkCategoryTooltipFunc

func (v *View) SetMarkCategoryTooltipFunc(category string, f ViewMarkTooltipFunc, userData T.Gpointer, userDataNotify O.DestroyNotify)

func (*View) SetMarkCategoryTooltipMarkupFunc

func (v *View) SetMarkCategoryTooltipMarkupFunc(category string, markupFunc ViewMarkTooltipFunc, userData T.Gpointer, userDataNotify O.DestroyNotify)

func (*View) SetRightMarginPosition

func (v *View) SetRightMarginPosition(pos uint)

func (*View) SetShowLineMarks

func (v *View) SetShowLineMarks(show bool)

func (*View) SetShowLineNumbers

func (v *View) SetShowLineNumbers(show bool)

func (*View) SetShowRightMargin

func (v *View) SetShowRightMargin(show bool)

func (*View) SetSmartHomeEnd

func (v *View) SetSmartHomeEnd(smartHe SmartHomeEndType)

func (*View) SetTabWidth

func (v *View) SetTabWidth(width uint)

func (*View) ShowLineMarks

func (v *View) ShowLineMarks() bool

func (*View) ShowLineNumbers

func (v *View) ShowLineNumbers() bool

func (*View) ShowRightMargin

func (v *View) ShowRightMargin() bool

func (*View) SmartHomeEnd

func (v *View) SmartHomeEnd() SmartHomeEndType

func (*View) TabWidth

func (v *View) TabWidth() uint

type ViewMarkTooltipFunc

type ViewMarkTooltipFunc func(
	Mark *Mark, userData T.Gpointer) string

Jump to

Keyboard shortcuts

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