Documentation ¶
Overview ¶
Package gtksourceview provides API definitions for accessing libgtksourceview-2.0-0.dll.
Index ¶
- Variables
- type Buffer
- func (b *Buffer) BackwardIterToSourceMark(iter *G.TextIter, category string) bool
- func (b *Buffer) BeginNotUndoableAction()
- func (b *Buffer) CanRedo() bool
- func (b *Buffer) CanUndo() bool
- func (b *Buffer) ContextClassesAtIter(iter *G.TextIter) []string
- func (b *Buffer) CreateSourceMark(name, category string, where *G.TextIter) *Mark
- func (b *Buffer) EndNotUndoableAction()
- func (b *Buffer) EnsureHighlight(start, end *G.TextIter)
- func (b *Buffer) ForwardIterToSourceMark(iter *G.TextIter, category string) bool
- func (b *Buffer) HighlightMatchingBrackets() bool
- func (b *Buffer) HighlightSyntax() bool
- func (b *Buffer) IterBackwardToContextClassToggle(iter *G.TextIter, contextClass string) bool
- func (b *Buffer) IterForwardToContextClassToggle(iter *G.TextIter, contextClass string) bool
- func (b *Buffer) IterHasContextClass(iter *G.TextIter, contextClass string) bool
- func (b *Buffer) Language() *Language
- func (b *Buffer) MaxUndoLevels() int
- func (b *Buffer) Redo()
- func (b *Buffer) RemoveSourceMarks(start *G.TextIter, end *G.TextIter, category string)
- func (b *Buffer) SetHighlightMatchingBrackets(highlight bool)
- func (b *Buffer) SetHighlightSyntax(highlight bool)
- func (b *Buffer) SetLanguage(language *Language)
- func (b *Buffer) SetMaxUndoLevels(maxUndoLevels int)
- func (b *Buffer) SetStyleScheme(scheme *StyleScheme)
- func (b *Buffer) SetUndoManager(manager *UndoManager)
- func (b *Buffer) SourceMarksAtIter(iter *G.TextIter, category string) *L.SList
- func (b *Buffer) SourceMarksAtLine(line int, category string) *L.SList
- func (b *Buffer) StyleScheme() *StyleScheme
- func (b *Buffer) Undo()
- func (b *Buffer) UndoManager() *UndoManager
- type Completion
- func (c *Completion) AddProvider(provider *CompletionProvider, err **L.Error) bool
- func (c *Completion) BlockInteractive()
- func (c *Completion) CreateContext(position *G.TextIter) *CompletionContext
- func (c *Completion) Hide()
- func (c *Completion) InfoWindow() *CompletionInfo
- func (c *Completion) MoveWindow(iter *G.TextIter)
- func (c *Completion) Providers() *L.List
- func (c *Completion) RemoveProvider(provider *CompletionProvider, err **L.Error) bool
- func (c *Completion) Show(providers *L.List, context *CompletionContext) bool
- func (c *Completion) UnblockInteractive()
- func (c *Completion) View() *View
- type CompletionActivation
- type CompletionContext
- type CompletionInfo
- func (c *CompletionInfo) MoveToIter(view *G.TextView, iter *G.TextIter)
- func (c *CompletionInfo) ProcessResize()
- func (c *CompletionInfo) SetSizing(width, height int, shrinkWidth bool, shrinkHeight bool)
- func (c *CompletionInfo) SetWidget(widget *G.Widget)
- func (c *CompletionInfo) Widget() *G.Widget
- type CompletionItem
- type CompletionProposal
- func (c *CompletionProposal) Changed()
- func (c *CompletionProposal) Equal(other *CompletionProposal) bool
- func (c *CompletionProposal) Hash() uint
- func (c *CompletionProposal) Icon() *D.Pixbuf
- func (c *CompletionProposal) Info() string
- func (c *CompletionProposal) Label() string
- func (c *CompletionProposal) Markup() string
- func (c *CompletionProposal) Text() string
- type CompletionProvider
- func (c *CompletionProvider) ActivateProposal(proposal *CompletionProposal, iter *G.TextIter) bool
- func (c *CompletionProvider) Activation() CompletionActivation
- func (c *CompletionProvider) Icon() *D.Pixbuf
- func (c *CompletionProvider) InfoWidget(proposal *CompletionProposal) *G.Widget
- func (c *CompletionProvider) InteractiveDelay() int
- func (c *CompletionProvider) Match(context *CompletionContext) bool
- func (c *CompletionProvider) Name() string
- func (c *CompletionProvider) Populate(context *CompletionContext)
- func (c *CompletionProvider) Priority() int
- func (c *CompletionProvider) StartIter(context *CompletionContext, proposal *CompletionProposal, iter *G.TextIter) bool
- func (c *CompletionProvider) UpdateInfo(proposal *CompletionProposal, info *CompletionInfo)
- type CompletionWords
- type DrawSpacesFlags
- type Enum
- type Gutter
- func (g *Gutter) Insert(renderer *G.CellRenderer, position int)
- func (g *Gutter) QueueDraw()
- func (g *Gutter) Remove(renderer *G.CellRenderer)
- func (g *Gutter) Reorder(renderer *G.CellRenderer, position int)
- func (g *Gutter) SetCellDataFunc(renderer *G.CellRenderer, f GutterDataFunc, funcData T.Gpointer, ...)
- func (g *Gutter) SetCellSizeFunc(renderer *G.CellRenderer, f GutterSizeFunc, funcData T.Gpointer, ...)
- func (g *Gutter) Window() *D.Window
- type GutterDataFunc
- type GutterSizeFunc
- type Language
- func (l *Language) Globs() []string
- func (l *Language) Hidden() bool
- func (l *Language) Id() string
- func (l *Language) Metadata(name string) string
- func (l *Language) MimeTypes() []string
- func (l *Language) Name() string
- func (l *Language) Section() string
- func (l *Language) StyleIds() []string
- func (l *Language) StyleName(styleId string) string
- type LanguageManager
- type Mark
- type PrintCompositor
- func (p *PrintCompositor) BodyFontName() string
- func (p *PrintCompositor) BottomMargin(unit G.Unit) float64
- func (p *PrintCompositor) Buffer() *Buffer
- func (p *PrintCompositor) DrawPage(context *G.PrintContext, pageNr int)
- func (p *PrintCompositor) FooterFontName() string
- func (p *PrintCompositor) HeaderFontName() string
- func (p *PrintCompositor) HighlightSyntax() bool
- func (p *PrintCompositor) LeftMargin(unit G.Unit) float64
- func (p *PrintCompositor) LineNumbersFontName() string
- func (p *PrintCompositor) NPages() int
- func (p *PrintCompositor) Paginate(context *G.PrintContext) bool
- func (p *PrintCompositor) PaginationProgress() float64
- func (p *PrintCompositor) PrintFooter() bool
- func (p *PrintCompositor) PrintHeader() bool
- func (p *PrintCompositor) PrintLineNumbers() uint
- func (p *PrintCompositor) RightMargin(unit G.Unit) float64
- func (p *PrintCompositor) SetBodyFontName(fontName string)
- func (p *PrintCompositor) SetBottomMargin(margin float64, unit G.Unit)
- func (p *PrintCompositor) SetFooterFontName(fontName string)
- func (p *PrintCompositor) SetFooterFormat(separator bool, left, center, right string)
- func (p *PrintCompositor) SetHeaderFontName(fontName string)
- func (p *PrintCompositor) SetHeaderFormat(separator bool, left, center, right string)
- func (p *PrintCompositor) SetHighlightSyntax(highlight bool)
- func (p *PrintCompositor) SetLeftMargin(margin float64, unit G.Unit)
- func (p *PrintCompositor) SetLineNumbersFontName(fontName string)
- func (p *PrintCompositor) SetPrintFooter(prt bool)
- func (p *PrintCompositor) SetPrintHeader(prt bool)
- func (p *PrintCompositor) SetPrintLineNumbers(interval uint)
- func (p *PrintCompositor) SetRightMargin(margin float64, unit G.Unit)
- func (p *PrintCompositor) SetTabWidth(width uint)
- func (p *PrintCompositor) SetTopMargin(margin float64, unit G.Unit)
- func (p *PrintCompositor) SetWrapMode(wrapMode G.WrapMode)
- func (p *PrintCompositor) TabWidth() uint
- func (p *PrintCompositor) TopMargin(unit G.Unit) float64
- func (p *PrintCompositor) WrapMode() G.WrapMode
- type SearchFlags
- type SmartHomeEndType
- type Style
- type StyleScheme
- type StyleSchemeManager
- func (s *StyleSchemeManager) AppendSearchPath(path string)
- func (s *StyleSchemeManager) ForceRescan()
- func (s *StyleSchemeManager) PrependSearchPath(path string)
- func (s *StyleSchemeManager) Scheme(schemeId string) *StyleScheme
- func (s *StyleSchemeManager) SchemeIds() []string
- func (s *StyleSchemeManager) SearchPath() []string
- func (s *StyleSchemeManager) SetSearchPath(path **T.Gchar)
- type UndoManager
- func (u *UndoManager) BeginNotUndoableAction()
- func (u *UndoManager) CanRedo() bool
- func (u *UndoManager) CanRedoChanged()
- func (u *UndoManager) CanUndo() bool
- func (u *UndoManager) CanUndoChanged()
- func (u *UndoManager) EndNotUndoableAction()
- func (u *UndoManager) Redo()
- func (u *UndoManager) Undo()
- type View
- func (v *View) AutoIndent() bool
- func (v *View) Completion() *Completion
- func (v *View) DrawSpaces() DrawSpacesFlags
- func (v *View) Gutter(windowType G.TextWindowType) *Gutter
- func (v *View) HighlightCurrentLine() bool
- func (v *View) IndentOnTab() bool
- func (v *View) IndentWidth() int
- func (v *View) InsertSpacesInsteadOfTabs() bool
- func (v *View) MarkCategoryBackground(category string, dest *D.Color) bool
- func (v *View) MarkCategoryPixbuf(category string) *D.Pixbuf
- func (v *View) MarkCategoryPriority(category string) int
- func (v *View) RightMarginPosition() uint
- func (v *View) SetAutoIndent(enable bool)
- func (v *View) SetDrawSpaces(flags DrawSpacesFlags)
- func (v *View) SetHighlightCurrentLine(show bool)
- func (v *View) SetIndentOnTab(enable bool)
- func (v *View) SetIndentWidth(width int)
- func (v *View) SetInsertSpacesInsteadOfTabs(enable bool)
- func (v *View) SetMarkCategoryBackground(category string, color *D.Color)
- func (v *View) SetMarkCategoryIconFromIconName(category, name string)
- func (v *View) SetMarkCategoryIconFromPixbuf(category string, pixbuf *D.Pixbuf)
- func (v *View) SetMarkCategoryIconFromStock(category, stockId string)
- func (v *View) SetMarkCategoryPixbuf(category string, pixbuf *D.Pixbuf)
- func (v *View) SetMarkCategoryPriority(category string, priority int)
- func (v *View) SetMarkCategoryTooltipFunc(category string, f ViewMarkTooltipFunc, userData T.Gpointer, ...)
- func (v *View) SetMarkCategoryTooltipMarkupFunc(category string, markupFunc ViewMarkTooltipFunc, userData T.Gpointer, ...)
- func (v *View) SetRightMarginPosition(pos uint)
- func (v *View) SetShowLineMarks(show bool)
- func (v *View) SetShowLineNumbers(show bool)
- func (v *View) SetShowRightMargin(show bool)
- func (v *View) SetSmartHomeEnd(smartHe SmartHomeEndType)
- func (v *View) SetTabWidth(width uint)
- func (v *View) ShowLineMarks() bool
- func (v *View) ShowLineNumbers() bool
- func (v *View) ShowRightMargin() bool
- func (v *View) SmartHomeEnd() SmartHomeEndType
- func (v *View) TabWidth() uint
- type ViewMarkTooltipFunc
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 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 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) 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) 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 (*Buffer) BeginNotUndoableAction ¶
func (b *Buffer) BeginNotUndoableAction()
func (*Buffer) ContextClassesAtIter ¶
func (*Buffer) CreateSourceMark ¶
func (*Buffer) EndNotUndoableAction ¶
func (b *Buffer) EndNotUndoableAction()
func (*Buffer) EnsureHighlight ¶
func (*Buffer) ForwardIterToSourceMark ¶
func (*Buffer) HighlightMatchingBrackets ¶
func (*Buffer) HighlightSyntax ¶
func (*Buffer) IterBackwardToContextClassToggle ¶
func (*Buffer) IterForwardToContextClassToggle ¶
func (*Buffer) IterHasContextClass ¶
func (*Buffer) MaxUndoLevels ¶
func (*Buffer) RemoveSourceMarks ¶
func (*Buffer) SetHighlightMatchingBrackets ¶
func (*Buffer) SetHighlightSyntax ¶
func (*Buffer) SetLanguage ¶
func (*Buffer) SetMaxUndoLevels ¶
func (*Buffer) SetStyleScheme ¶
func (b *Buffer) SetStyleScheme(scheme *StyleScheme)
func (*Buffer) SetUndoManager ¶
func (b *Buffer) SetUndoManager(manager *UndoManager)
func (*Buffer) SourceMarksAtIter ¶
func (*Buffer) SourceMarksAtLine ¶
func (*Buffer) StyleScheme ¶
func (b *Buffer) StyleScheme() *StyleScheme
func (*Buffer) UndoManager ¶
func (b *Buffer) UndoManager() *UndoManager
type Completion ¶
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 ¶
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 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 ¶
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 Gutter ¶
func (*Gutter) Remove ¶
func (g *Gutter) Remove(renderer *G.CellRenderer)
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)
type GutterDataFunc ¶
type GutterSizeFunc ¶
type GutterSizeFunc func( Gutter *Gutter, cell *G.CellRenderer, data T.Gpointer)
type LanguageManager ¶
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 PrintCompositor ¶
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) 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 StyleScheme ¶
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 ¶
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 ¶
func (*View) AutoIndent ¶
func (*View) Completion ¶
func (v *View) Completion() *Completion
func (*View) DrawSpaces ¶
func (v *View) DrawSpaces() DrawSpacesFlags
func (*View) HighlightCurrentLine ¶
func (*View) IndentOnTab ¶
func (*View) IndentWidth ¶
func (*View) InsertSpacesInsteadOfTabs ¶
func (*View) MarkCategoryBackground ¶
func (*View) MarkCategoryPriority ¶
func (*View) RightMarginPosition ¶
func (*View) SetAutoIndent ¶
func (*View) SetDrawSpaces ¶
func (v *View) SetDrawSpaces(flags DrawSpacesFlags)
func (*View) SetHighlightCurrentLine ¶
func (*View) SetIndentOnTab ¶
func (*View) SetIndentWidth ¶
func (*View) SetInsertSpacesInsteadOfTabs ¶
func (*View) SetMarkCategoryBackground ¶
func (*View) SetMarkCategoryIconFromIconName ¶
func (*View) SetMarkCategoryIconFromPixbuf ¶
func (*View) SetMarkCategoryIconFromStock ¶
func (*View) SetMarkCategoryPixbuf ¶
func (*View) SetMarkCategoryPriority ¶
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 (*View) SetShowLineMarks ¶
func (*View) SetShowLineNumbers ¶
func (*View) SetShowRightMargin ¶
func (*View) SetSmartHomeEnd ¶
func (v *View) SetSmartHomeEnd(smartHe SmartHomeEndType)
func (*View) SetTabWidth ¶
func (*View) ShowLineMarks ¶
func (*View) ShowLineNumbers ¶
func (*View) ShowRightMargin ¶
func (*View) SmartHomeEnd ¶
func (v *View) SmartHomeEnd() SmartHomeEndType
Click to show internal directories.
Click to hide internal directories.