Documentation ¶
Index ¶
- func SourceEncodingGetAll() *glib.SList
- func SourceEncodingGetDefaultCandidates() *glib.SList
- func SourceFinalize()
- func SourceGetVersion() (int, int, int, bool)
- func SourceInit()
- func SourceTagNew(tagName string) (*gtk.TextTag, error)
- func SourceUtilsEscapeSearchText(text string) string
- func SourceUtilsUnescapeSearchText(text string) string
- type SourceBackgroundPatternType
- type SourceBracketMatchType
- type SourceBuffer
- func (v *SourceBuffer) BackwardIterToSourceMark(iter *gtk.TextIter, category string) bool
- func (v *SourceBuffer) BeginNotUndoableAction()
- func (v *SourceBuffer) CanRedo() bool
- func (v *SourceBuffer) CanUndo() bool
- func (v *SourceBuffer) ChangeCase(caseType SourceChangeCaseType, start, end *gtk.TextIter)
- func (v *SourceBuffer) CreateSourceMark(name, category string, where *gtk.TextIter) (*SourceMark, error)
- func (v *SourceBuffer) CreateSourceTag(tagName string, nameWvalue map[string]interface{}) (*gtk.TextTag, error)
- func (v *SourceBuffer) Deserialize(content *SourceBuffer, format gdk.Atom, iter *gtk.TextIter, data []byte) (ok bool, err error)
- func (v *SourceBuffer) EndNotUndoableAction()
- func (v *SourceBuffer) EnsureHightlight(start, end *gtk.TextIter)
- func (v *SourceBuffer) ForwardIterToSourceMark(iter *gtk.TextIter, category string) bool
- func (v *SourceBuffer) GetContextClassAtIter(iter *gtk.TextIter) []string
- func (v *SourceBuffer) GetHighlightMatchingBrackets() bool
- func (v *SourceBuffer) GetHighlightSyntax() bool
- func (v *SourceBuffer) GetImplicitTrailingNewLine() bool
- func (v *SourceBuffer) GetLanguage() (*SourceLanguage, error)
- func (v *SourceBuffer) GetMaxUndoLevels() int
- func (v *SourceBuffer) GetSourceMarksAtIter(iter *gtk.TextIter, category string) *glib.List
- func (v *SourceBuffer) GetSourceMarksAtLine(line int, category string) *glib.List
- func (v *SourceBuffer) GetStyleSheme() (*SourceStyleScheme, error)
- func (v *SourceBuffer) GetUndoManager() (*SourceUndoManager, error)
- func (v *SourceBuffer) HasContextClass(iter *gtk.TextIter, contextClass string) bool
- func (v *SourceBuffer) IterBackwardToContextClassToggle(iter *gtk.TextIter, contextClass string) bool
- func (v *SourceBuffer) IterForwardToContextClassToggle(iter *gtk.TextIter, contextClass string) bool
- func (v *SourceBuffer) JoinLines(caseType SourceChangeCaseType, start, end *gtk.TextIter)
- func (v *SourceBuffer) Redo()
- func (v *SourceBuffer) RemoveSourceMarks(start, end *gtk.TextIter, category string)
- func (v *SourceBuffer) Serialize(content *SourceBuffer, format gdk.Atom, start, end *gtk.TextIter) string
- func (v *SourceBuffer) SetHighlightMatchingBrackets(highlight bool)
- func (v *SourceBuffer) SetHighlightSyntax(highlight bool)
- func (v *SourceBuffer) SetImplicitTrailingNewLine(impTrailNewLine bool)
- func (v *SourceBuffer) SetLanguage(language *SourceLanguage)
- func (v *SourceBuffer) SetMaxUndoLevels(maxLevels int)
- func (v *SourceBuffer) SetStyleSheme(scheme *SourceStyleScheme)
- func (v *SourceBuffer) SetUndoManager(manager *SourceUndoManager)
- func (v *SourceBuffer) SortLines(caseType SourceChangeCaseType, start, end *gtk.TextIter, flags SourceSortFlags, ...)
- func (v *SourceBuffer) ToTextBuffer() *gtk.TextBuffer
- func (v *SourceBuffer) Undo()
- type SourceChangeCaseType
- type SourceCompletion
- func (v *SourceCompletion) AddProvider(provider *SourceCompletionProvider) (bool, error)
- func (v *SourceCompletion) BlockInteractive()
- func (v *SourceCompletion) CreateContext(position *gtk.TextIter) (*SourceCompletionContext, error)
- func (v *SourceCompletion) GetInfoWindow() (*SourceCompletionInfo, error)
- func (v *SourceCompletion) GetProviders() *glib.List
- func (v *SourceCompletion) GetView() (*SourceView, error)
- func (v *SourceCompletion) Hide()
- func (v *SourceCompletion) RemoveProvider(provider *SourceCompletionProvider) (bool, error)
- func (v *SourceCompletion) Start(providers *glib.List, context *SourceCompletionContext) bool
- func (v *SourceCompletion) UnblockInteractive()
- type SourceCompletionActivation
- type SourceCompletionContext
- type SourceCompletionError
- type SourceCompletionInfo
- type SourceCompletionItem
- func (v *SourceCompletionItem) SetGIcon(icon *glib.Icon)
- func (v *SourceCompletionItem) SetIcon(icon *gdk.Pixbuf)
- func (v *SourceCompletionItem) SetIconName(iconName string)
- func (v *SourceCompletionItem) SetInfo(info string)
- func (v *SourceCompletionItem) SetLabel(label string)
- func (v *SourceCompletionItem) SetMarkup(markup string)
- func (v *SourceCompletionItem) SetText(text string)
- type SourceCompletionProposal
- func (v *SourceCompletionProposal) Equal(other *SourceCompletionProposal) bool
- func (v *SourceCompletionProposal) GetGIcon() (*glib.Icon, error)
- func (v *SourceCompletionProposal) GetIcon() (*gdk.Pixbuf, error)
- func (v *SourceCompletionProposal) GetIconName() string
- func (v *SourceCompletionProposal) GetInfo() string
- func (v *SourceCompletionProposal) GetLabel() string
- func (v *SourceCompletionProposal) GetMarkup() string
- func (v *SourceCompletionProposal) GetText() string
- func (v *SourceCompletionProposal) Hash() uint
- type SourceCompletionProvider
- func (v *SourceCompletionProvider) ActivateProposal(proposal *SourceCompletionProposal) (*gtk.TextIter, error)
- func (v *SourceCompletionProvider) GetActivation(context *SourceCompletionContext) SourceCompletionActivation
- func (v *SourceCompletionProvider) GetGIcon() (*glib.Icon, error)
- func (v *SourceCompletionProvider) GetIcon() (*gdk.Pixbuf, error)
- func (v *SourceCompletionProvider) GetIconName() string
- func (v *SourceCompletionProvider) GetInfoWidget(proposal *SourceCompletionProposal) *gtk.Widget
- func (v *SourceCompletionProvider) GetInteractiveDelay(context *SourceCompletionContext) int
- func (v *SourceCompletionProvider) GetName() string
- func (v *SourceCompletionProvider) GetPriority(context *SourceCompletionContext) int
- func (v *SourceCompletionProvider) GetStartIter(context *SourceCompletionContext, proposal *SourceCompletionProposal) (*gtk.TextIter, error)
- func (v *SourceCompletionProvider) Match(context *SourceCompletionContext) bool
- func (v *SourceCompletionProvider) Populate(context *SourceCompletionContext)
- func (v *SourceCompletionProvider) UpdateInfo(proposal *SourceCompletionProposal, info *SourceCompletionInfo)
- type SourceCompletionWords
- type SourceCompressionType
- type SourceEncoding
- type SourceFile
- func (v *SourceFile) CheckFileOnDisk()
- func (v *SourceFile) GetCompressionType() SourceCompressionType
- func (v *SourceFile) GetEncoding() (*SourceEncoding, error)
- func (v *SourceFile) GetLocation() (*glib.File, error)
- func (v *SourceFile) GetNewlineType() SourceNewlineType
- func (v *SourceFile) IsDeleted() bool
- func (v *SourceFile) IsExternallyModified() bool
- func (v *SourceFile) IsLocal() bool
- func (v *SourceFile) IsReadOnly() bool
- func (v *SourceFile) SetLocation(location *glib.File)
- type SourceFileLoader
- func (v *SourceFileLoader) GetBuffer() (*SourceBuffer, error)
- func (v *SourceFileLoader) GetCompressionType() SourceCompressionType
- func (v *SourceFileLoader) GetEncoding() (*SourceEncoding, error)
- func (v *SourceFileLoader) GetFile() (*SourceFile, error)
- func (v *SourceFileLoader) GetFileLocation() (*glib.File, error)
- func (v *SourceFileLoader) GetInputStream() (*glib.InputStream, error)
- func (v *SourceFileLoader) GetNewLineType() SourceNewlineType
- func (v *SourceFileLoader) LoadFinish(result *glib.AsyncResult) (bool, error)
- func (v *SourceFileLoader) SetCandidateEncodings(candidate *glib.SList)
- type SourceFileLoaderError
- type SourceFileSaver
- func (v *SourceFileSaver) GetBuffer() (*SourceBuffer, error)
- func (v *SourceFileSaver) GetCompressionType() SourceCompressionType
- func (v *SourceFileSaver) GetEncoding() (*SourceEncoding, error)
- func (v *SourceFileSaver) GetFile() (*SourceFile, error)
- func (v *SourceFileSaver) GetFlags() SourceFileSaverFlags
- func (v *SourceFileSaver) GetLocation() (*glib.File, error)
- func (v *SourceFileSaver) GetNewlineType() SourceNewlineType
- func (v *SourceFileSaver) SaveFinish(resulst *glib.AsyncResult) error
- func (v *SourceFileSaver) SetCompressionType(compressionType SourceCompressionType)
- func (v *SourceFileSaver) SetEncoding(encoding *SourceEncoding)
- func (v *SourceFileSaver) SetFlags(flags SourceFileSaverFlags)
- func (v *SourceFileSaver) SetNewlineType(newlineType SourceNewlineType)
- type SourceFileSaverError
- type SourceFileSaverFlags
- type SourceGutter
- func (v *SourceGutter) GetRendererAtPos(x, y int) (*SourceGutterRenderer, error)
- func (v *SourceGutter) GetView() (*SourceView, error)
- func (v *SourceGutter) GetWindowType() gtk.TextWindowType
- func (v *SourceGutter) Insert(renderer *SourceGutterRenderer, position int) bool
- func (v *SourceGutter) QueueDraw()
- func (v *SourceGutter) Remove(renderer *SourceGutterRenderer)
- func (v *SourceGutter) Reorder(renderer *SourceGutterRenderer, position int)
- type SourceGutterRenderer
- func (v *SourceGutterRenderer) Activatable(iter *gtk.TextIter, area *gdk.Rectangle, event *gdk.Event) bool
- func (v *SourceGutterRenderer) Activate(iter *gtk.TextIter, area *gdk.Rectangle, event *gdk.Event)
- func (v *SourceGutterRenderer) Begin(ct *cairo.Context, backgroundArea, cellArea *gdk.Rectangle, ...)
- func (v *SourceGutterRenderer) Draw(ct *cairo.Context, backgroundArea, cellArea *gdk.Rectangle, ...)
- func (v *SourceGutterRenderer) GetAlignment() (float64, float64)
- func (v *SourceGutterRenderer) GetAlignmentMode() SourceGutterRendererAlignmentMode
- func (v *SourceGutterRenderer) GetBackground() (*gdk.RGBA, bool)
- func (v *SourceGutterRenderer) GetPadding() (int, int)
- func (v *SourceGutterRenderer) GetSize() int
- func (v *SourceGutterRenderer) GetView() (*gtk.TextView, error)
- func (v *SourceGutterRenderer) GetVisible() bool
- func (v *SourceGutterRenderer) GetWindowType() gtk.TextWindowType
- func (v *SourceGutterRenderer) QueryData(start, end *gtk.TextIter, state SourceGutterRendererState)
- func (v *SourceGutterRenderer) QueryTooltip(iter *gtk.TextIter, area *gdk.Rectangle, x, y int, tooltip *gtk.Tooltip) bool
- func (v *SourceGutterRenderer) QueuDraw()
- func (v *SourceGutterRenderer) SetAlignment(xalign, yalign float64)
- func (v *SourceGutterRenderer) SetAlignmentMode(amode SourceGutterRendererAlignmentMode)
- func (v *SourceGutterRenderer) SetBackground(background *gdk.RGBA)
- func (v *SourceGutterRenderer) SetPadding(x, y int)
- func (v *SourceGutterRenderer) SetSize(size int)
- func (v *SourceGutterRenderer) SetVisible(visible bool)
- type SourceGutterRendererAlignmentMode
- type SourceGutterRendererPixbuf
- func (v *SourceGutterRendererPixbuf) GetGIcon() (*glib.Icon, error)
- func (v *SourceGutterRendererPixbuf) GetIconName() string
- func (v *SourceGutterRendererPixbuf) GetPixbuf() (*gdk.Pixbuf, error)
- func (v *SourceGutterRendererPixbuf) SetGIcon(icon *glib.Icon)
- func (v *SourceGutterRendererPixbuf) SetIconName(name string)
- func (v *SourceGutterRendererPixbuf) SetPixbuf(pixbuf *gdk.Pixbuf)
- type SourceGutterRendererState
- type SourceGutterRendererText
- type SourceLanguage
- func (v *SourceLanguage) GetGlobs() []string
- func (v *SourceLanguage) GetHidden() bool
- func (v *SourceLanguage) GetId() string
- func (v *SourceLanguage) GetMetadata(name string) string
- func (v *SourceLanguage) GetMimeTypes() []string
- func (v *SourceLanguage) GetName() string
- func (v *SourceLanguage) GetSection() string
- func (v *SourceLanguage) GetStyleFallback(styleId string) string
- func (v *SourceLanguage) GetStyleIds() []string
- func (v *SourceLanguage) GetStyleName(styleId string) string
- type SourceLanguageManager
- func (v *SourceLanguageManager) GetGuessLanguage(filename, contentType string) (*SourceLanguage, error)
- func (v *SourceLanguageManager) GetLanguage(id string) (*SourceLanguage, error)
- func (v *SourceLanguageManager) GetLanguageIds() []string
- func (v *SourceLanguageManager) GetSearchPath() []string
- func (v *SourceLanguageManager) SetSearchPath(dirs []string)
- type SourceMap
- type SourceMark
- type SourceMarkAttributes
- func (v *SourceMarkAttributes) GetBackground() (*gdk.RGBA, bool)
- func (v *SourceMarkAttributes) GetGIcon() (*glib.Icon, error)
- func (v *SourceMarkAttributes) GetIconName() string
- func (v *SourceMarkAttributes) GetPixbuf() (*gdk.Pixbuf, error)
- func (v *SourceMarkAttributes) GetTooltipMarkup(mark *SourceMark) string
- func (v *SourceMarkAttributes) GetTooltipText(mark *SourceMark) string
- func (v *SourceMarkAttributes) RenderIcon(widget *gtk.Widget, size int) (*gdk.Pixbuf, error)
- func (v *SourceMarkAttributes) SetBackground(background *gdk.RGBA)
- func (v *SourceMarkAttributes) SetGIcon(icon *glib.Icon)
- func (v *SourceMarkAttributes) SetIconName(name string)
- func (v *SourceMarkAttributes) SetPixbuf(pixbuf *gdk.Pixbuf)
- type SourceNewlineType
- type SourceSearchContext
- func (v *SourceSearchContext) Backward(iter *gtk.TextIter) (*gtk.TextIter, *gtk.TextIter, bool, bool)
- func (v *SourceSearchContext) BackwardAsync(iter *gtk.TextIter, cancellable *glib.Cancellable, ...)
- func (v *SourceSearchContext) BackwardFinish(result *glib.AsyncResult) (*gtk.TextIter, *gtk.TextIter, bool, bool, error)
- func (v *SourceSearchContext) Forward(iter *gtk.TextIter) (*gtk.TextIter, *gtk.TextIter, bool, bool)
- func (v *SourceSearchContext) ForwardAsync(iter *gtk.TextIter, cancellable *glib.Cancellable, ...)
- func (v *SourceSearchContext) ForwardFinish(result *glib.AsyncResult) (*gtk.TextIter, *gtk.TextIter, bool, bool, error)
- func (v *SourceSearchContext) GetBuffer() (*SourceBuffer, error)
- func (v *SourceSearchContext) GetHighLight() bool
- func (v *SourceSearchContext) GetMatchStyle() (*SourceStyle, error)
- func (v *SourceSearchContext) GetOccurencePosition(start, end *gtk.TextIter) int
- func (v *SourceSearchContext) GetOccurencesCount() int
- func (v *SourceSearchContext) GetRegexError() error
- func (v *SourceSearchContext) GetSettings() (*SourceSearchSettings, error)
- func (v *SourceSearchContext) Replace(start, end *gtk.TextIter, replace string) (bool, error)
- func (v *SourceSearchContext) ReplaceAll(replace string) (int, error)
- func (v *SourceSearchContext) SetHighLight(highlight bool)
- func (v *SourceSearchContext) SetMatchStyle(style *SourceStyle)
- type SourceSearchSettings
- func (v *SourceSearchSettings) GetCaseSensitive() bool
- func (v *SourceSearchSettings) GetRegexEnabled() bool
- func (v *SourceSearchSettings) GetSearchText() string
- func (v *SourceSearchSettings) GetWordBoundaries() bool
- func (v *SourceSearchSettings) GetWrapAround() bool
- func (v *SourceSearchSettings) SetCaseSensitive(caseSensitive bool)
- func (v *SourceSearchSettings) SetRegexEnabled(enabled bool)
- func (v *SourceSearchSettings) SetSearchText(search string)
- func (v *SourceSearchSettings) SetWordBoundaries(set bool)
- func (v *SourceSearchSettings) SetWrapAround(wrapAround bool)
- type SourceSmartHomeEndType
- type SourceSortFlags
- type SourceSpaceDrawer
- func (v *SourceSpaceDrawer) BindMatrixSetting(settings *glib.Settings, key string, flag glib.SettingsBindFlags)
- func (v *SourceSpaceDrawer) GetEnableMatrix() bool
- func (v *SourceSpaceDrawer) GetMatrix() (*glib.Variant, error)
- func (v *SourceSpaceDrawer) GetTypesForLocations(locations SourceSpaceLocationFlags) SourceSpaceTypeFlags
- func (v *SourceSpaceDrawer) SetEnableMatrix(enable bool)
- func (v *SourceSpaceDrawer) SetMatrix(matrix *glib.Variant)
- func (v *SourceSpaceDrawer) SetTypesForLocations(locations SourceSpaceLocationFlags, types SourceSpaceTypeFlags)
- type SourceSpaceLocationFlags
- type SourceSpaceTypeFlags
- type SourceStyle
- type SourceStyleScheme
- func (v *SourceStyleScheme) GetAuthors() []string
- func (v *SourceStyleScheme) GetDescription() string
- func (v *SourceStyleScheme) GetFilename() string
- func (v *SourceStyleScheme) GetId() string
- func (v *SourceStyleScheme) GetName() string
- func (v *SourceStyleScheme) GetStyle(styleId string) (*SourceStyle, error)
- type SourceStyleSchemeChooser
- type SourceStyleSchemeChooserButton
- type SourceStyleSchemeChooserWidget
- type SourceStyleSchemeManager
- func (v *SourceStyleSchemeManager) AppendSearchPath(path string)
- func (v *SourceStyleSchemeManager) ForceRescan()
- func (v *SourceStyleSchemeManager) GetScheme(id string) (*SourceStyleScheme, error)
- func (v *SourceStyleSchemeManager) GetSearchPath() []string
- func (v *SourceStyleSchemeManager) GetShemeIds() []string
- func (v *SourceStyleSchemeManager) PrependSearchPath(path string)
- func (v *SourceStyleSchemeManager) SetSearchPath(path []string)
- type SourceTag
- type SourceUndoManager
- func (v *SourceUndoManager) BeginNotUndoableAction()
- func (v *SourceUndoManager) CanRedo() bool
- func (v *SourceUndoManager) CanRedoChanged()
- func (v *SourceUndoManager) CanUndo() bool
- func (v *SourceUndoManager) CanUndoChanged()
- func (v *SourceUndoManager) EndNotUndoableAction()
- func (v *SourceUndoManager) Redo()
- func (v *SourceUndoManager) Undo()
- type SourceView
- func (v *SourceView) GetAutoIndent() bool
- func (v *SourceView) GetBackgroundPattern() SourceBackgroundPatternType
- func (v *SourceView) GetBuffer() (*SourceBuffer, error)
- func (v *SourceView) GetCompletion() (*SourceCompletion, error)
- func (v *SourceView) GetGutter(windowType gtk.TextWindowType) (*SourceGutter, error)
- func (v *SourceView) GetHighlightCurrentLine() bool
- func (v *SourceView) GetIndentOnTab() bool
- func (v *SourceView) GetIndentWidth() int
- func (v *SourceView) GetInsertSpacesInsteadOfTabs() bool
- func (v *SourceView) GetMarkAttributes(category string) (*SourceMarkAttributes, int, error)
- func (v *SourceView) GetRightMarginPosition() uint
- func (v *SourceView) GetShowLineMarks() bool
- func (v *SourceView) GetShowLineNumbers() bool
- func (v *SourceView) GetShowRightMargin() bool
- func (v *SourceView) GetSmartBackspace() bool
- func (v *SourceView) GetSmartHomeEnd() SourceSmartHomeEndType
- func (v *SourceView) GetSpaceDrawer() (*SourceSpaceDrawer, error)
- func (v *SourceView) GetTabWidth() uint
- func (v *SourceView) GetVisualColumn(iter *gtk.TextIter) uint
- func (v *SourceView) IndentLines(start, end *gtk.TextIter)
- func (v *SourceView) SetAutoIndent(enable bool)
- func (v *SourceView) SetBackgroundPattern(bp SourceBackgroundPatternType)
- func (v *SourceView) SetBuffer(buffer *SourceBuffer)
- func (v *SourceView) SetHighlightCurrentLine(highlight bool)
- func (v *SourceView) SetIndentOnTab(enable bool)
- func (v *SourceView) SetIndentWidth(width int)
- func (v *SourceView) SetInsertSpacesInsteadOfTabs(enable bool)
- func (v *SourceView) SetMarkAttributes(category string, attributes *SourceMarkAttributes, priority int)
- func (v *SourceView) SetRightMarginPosition(pos uint)
- func (v *SourceView) SetShowLineMarks(show bool)
- func (v *SourceView) SetShowLineNumbers(show bool)
- func (v *SourceView) SetShowRightMargin(show bool)
- func (v *SourceView) SetSmartBackspace(enable bool)
- func (v *SourceView) SetSmartHomeEnd(s SourceSmartHomeEndType)
- func (v *SourceView) SetTabWidth(width uint)
- func (v *SourceView) ToTextView() *gtk.TextView
- func (v *SourceView) UnIndentLines(start, end *gtk.TextIter)
- type SourceViewGutterPosition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SourceEncodingGetAll ¶
GetAll is a wrapper around gtk_source_encoding_get_all(). the returned list must be Free with (*glib.SList).Free().
func SourceEncodingGetDefaultCandidates ¶
GetDefaultCandidates is a wrapper around gtk_source_encoding_get_default_candidates(). the returned list must be Free with (*glib.SList).Free().
func SourceFinalize ¶
func SourceFinalize()
SourceFinalize is a wrapper around gtk_source_finalize().
func SourceGetVersion ¶
GetVersion same as GTK_SOURCE_CHECK_VERSION() macro. It is a personal implementation to check which version will be deployed in prod.
func SourceTagNew ¶
SourceTagNew is a wrapper around gtk_source_tag_new().
func SourceUtilsEscapeSearchText ¶
SourceUtilsEscapeSearchText is a wrapper around gtk_source_utils_escape_search_text(). Warning: the escape and unescape functions are not reciprocal! For example, escape (unescape (\)) = \\. So avoid cycles such as: search entry -> unescape -> search settings -> escape -> search entry. The original search entry text may be modified.
func SourceUtilsUnescapeSearchText ¶
SourceUtilsUnescapeSearchText is a wrapper around gtk_source_utils_unescape_search_text(). Warning: the escape and unescape functions are not reciprocal! For example, escape (unescape (\)) = \\. So avoid cycles such as: search entry -> unescape -> search settings -> escape -> search entry. The original search entry text may be modified.
Types ¶
type SourceBackgroundPatternType ¶
type SourceBackgroundPatternType int
SourceBackgroundPatternType is a representation of GTK's GtkSourceBackgroundPatternType.
const ( SOURCE_BACKGROUND_PATTERN_TYPE_NONE SourceBackgroundPatternType = C.GTK_SOURCE_BACKGROUND_PATTERN_TYPE_NONE SOURCE_BACKGROUND_PATTERN_TYPE_GRID = C.GTK_SOURCE_BACKGROUND_PATTERN_TYPE_GRID )
type SourceBracketMatchType ¶
type SourceBracketMatchType int
SourceBracketMatchType is a representation of GTK's GtkSourceBracketMatchType.
const ( SOURCE_BRACKET_MATCH_NONE SourceBracketMatchType = C.GTK_SOURCE_BRACKET_MATCH_NONE SOURCE_BRACKET_MATCH_OUT_OF_RANGE SourceBracketMatchType = C.GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE SOURCE_BRACKET_MATCH_NOT_FOUND SourceBracketMatchType = C.GTK_SOURCE_BRACKET_MATCH_NOT_FOUND SOURCE_BRACKET_MATCH_FOUND SourceBracketMatchType = C.GTK_SOURCE_BRACKET_MATCH_FOUND )
type SourceBuffer ¶
type SourceBuffer struct {
gtk.TextBuffer
}
SourceBuffer is a representation of GTK's GtkSourceBuffer. Subclass of GtkTextBuffer
func SourceBufferNew ¶
func SourceBufferNew(table *gtk.TextTagTable) (*SourceBuffer, error)
SourceBufferNew is a wrapper around gtk_source_buffer_new().
func SourceBufferNewWithLanguage ¶
func SourceBufferNewWithLanguage(language *SourceLanguage) (*SourceBuffer, error)
SourceBufferNew is a wrapper around gtk_source_buffer_new_with_language().
func (*SourceBuffer) BackwardIterToSourceMark ¶
func (v *SourceBuffer) BackwardIterToSourceMark(iter *gtk.TextIter, category string) bool
BackwardIterToSourceMark is a wrapper around gtk_source_buffer_backward_iter_to_source_mark().
func (*SourceBuffer) BeginNotUndoableAction ¶
func (v *SourceBuffer) BeginNotUndoableAction()
BeginNotUndoableAction is a wrapper around gtk_source_buffer_begin_not_undoable_action().
func (*SourceBuffer) CanRedo ¶
func (v *SourceBuffer) CanRedo() bool
CanRedo is a wrapper around gtk_source_buffer_can_redo().
func (*SourceBuffer) CanUndo ¶
func (v *SourceBuffer) CanUndo() bool
CanUndo is a wrapper around gtk_source_buffer_can_undo().
func (*SourceBuffer) ChangeCase ¶
func (v *SourceBuffer) ChangeCase(caseType SourceChangeCaseType, start, end *gtk.TextIter)
ChangeCase is a wrapper around gtk_source_buffer_change_case().
func (*SourceBuffer) CreateSourceMark ¶
func (v *SourceBuffer) CreateSourceMark(name, category string, where *gtk.TextIter) (*SourceMark, error)
CreateSourceMark is a wrapper around gtk_source_buffer_create_source_mark().
func (*SourceBuffer) CreateSourceTag ¶
func (v *SourceBuffer) CreateSourceTag(tagName string, nameWvalue map[string]interface{}) (*gtk.TextTag, error)
SourceBufferCreateSourceTag is a wrapper around gtk_source_buffer_create_source_tag(). nameWvalue := map[string]interface{}{}
func (*SourceBuffer) Deserialize ¶
func (v *SourceBuffer) Deserialize(content *SourceBuffer, format gdk.Atom, iter *gtk.TextIter, data []byte) (ok bool, err error)
Deserialize overriding gtk_text_buffer_deserialize() to use with GtkSourceBuffer
func (*SourceBuffer) EndNotUndoableAction ¶
func (v *SourceBuffer) EndNotUndoableAction()
EndNotUndoableAction is a wrapper around gtk_source_buffer_end_not_undoable_action().
func (*SourceBuffer) EnsureHightlight ¶
func (v *SourceBuffer) EnsureHightlight(start, end *gtk.TextIter)
EnsureHightlight is a wrapper around gtk_source_buffer_ensure_highlight().
func (*SourceBuffer) ForwardIterToSourceMark ¶
func (v *SourceBuffer) ForwardIterToSourceMark(iter *gtk.TextIter, category string) bool
ForwardIterToSourceMark is a wrapper around gtk_source_buffer_forward_iter_to_source_mark().
func (*SourceBuffer) GetContextClassAtIter ¶
func (v *SourceBuffer) GetContextClassAtIter(iter *gtk.TextIter) []string
GetContextClassAtIter is a wrapper around gtk_source_buffer_get_context_classes_at_iter().
func (*SourceBuffer) GetHighlightMatchingBrackets ¶
func (v *SourceBuffer) GetHighlightMatchingBrackets() bool
GetHighlightMatchingBrackets is a wrapper around gtk_source_buffer_get_highlight_matching_brackets().
func (*SourceBuffer) GetHighlightSyntax ¶
func (v *SourceBuffer) GetHighlightSyntax() bool
GetHighlightSyntax is a wrapper around gtk_source_buffer_get_highlight_syntax().
func (*SourceBuffer) GetImplicitTrailingNewLine ¶
func (v *SourceBuffer) GetImplicitTrailingNewLine() bool
GetImplicitTrailingNewLine is a wrapper around gtk_source_buffer_get_implicit_trailing_newline().
func (*SourceBuffer) GetLanguage ¶
func (v *SourceBuffer) GetLanguage() (*SourceLanguage, error)
GetLanguage is a wrapper around gtk_source_buffer_get_language().
func (*SourceBuffer) GetMaxUndoLevels ¶
func (v *SourceBuffer) GetMaxUndoLevels() int
GetMaxUndoLevels is a wrapper around gtk_source_buffer_get_max_undo_levels().
func (*SourceBuffer) GetSourceMarksAtIter ¶
GetSourceMarksAtIter is a wrapper around gtk_source_buffer_get_source_marks_at_iter().
func (*SourceBuffer) GetSourceMarksAtLine ¶
func (v *SourceBuffer) GetSourceMarksAtLine(line int, category string) *glib.List
GetSourceMarksAtLine is a wrapper around gtk_source_buffer_get_source_marks_at_line().
func (*SourceBuffer) GetStyleSheme ¶
func (v *SourceBuffer) GetStyleSheme() (*SourceStyleScheme, error)
GetStyleSheme is a wrapper around gtk_source_buffer_get_style_scheme().
func (*SourceBuffer) GetUndoManager ¶
func (v *SourceBuffer) GetUndoManager() (*SourceUndoManager, error)
GetUndoManager is a wrapper around gtk_source_buffer_get_undo_manager().
func (*SourceBuffer) HasContextClass ¶
func (v *SourceBuffer) HasContextClass(iter *gtk.TextIter, contextClass string) bool
HasContextClass is a wrapper around gtk_source_buffer_iter_has_context_class().
func (*SourceBuffer) IterBackwardToContextClassToggle ¶
func (v *SourceBuffer) IterBackwardToContextClassToggle(iter *gtk.TextIter, contextClass string) bool
IterBackwardToContextClassToggle is a wrapper around gtk_source_buffer_iter_backward_to_context_class_toggle().
func (*SourceBuffer) IterForwardToContextClassToggle ¶
func (v *SourceBuffer) IterForwardToContextClassToggle(iter *gtk.TextIter, contextClass string) bool
IterForwardToContextClassToggle is a wrapper around gtk_source_buffer_iter_forward_to_context_class_toggle().
func (*SourceBuffer) JoinLines ¶
func (v *SourceBuffer) JoinLines(caseType SourceChangeCaseType, start, end *gtk.TextIter)
JoinLines is a wrapper around gtk_source_buffer_join_lines().
func (*SourceBuffer) Redo ¶
func (v *SourceBuffer) Redo()
Redo is a wrapper around gtk_source_buffer_redo().
func (*SourceBuffer) RemoveSourceMarks ¶
func (v *SourceBuffer) RemoveSourceMarks(start, end *gtk.TextIter, category string)
RemoveSourceMarks is a wrapper around gtk_source_buffer_remove_source_marks().
func (*SourceBuffer) Serialize ¶
func (v *SourceBuffer) Serialize(content *SourceBuffer, format gdk.Atom, start, end *gtk.TextIter) string
Serialize overriding gtk_text_buffer_serialize() to use with GtkSourceBuffer
func (*SourceBuffer) SetHighlightMatchingBrackets ¶
func (v *SourceBuffer) SetHighlightMatchingBrackets(highlight bool)
SetHighlightMatchingBrackets is a wrapper around gtk_source_buffer_set_highlight_matching_brackets().
func (*SourceBuffer) SetHighlightSyntax ¶
func (v *SourceBuffer) SetHighlightSyntax(highlight bool)
SetHighlightSyntax is a wrapper around gtk_source_buffer_set_highlight_syntax().
func (*SourceBuffer) SetImplicitTrailingNewLine ¶
func (v *SourceBuffer) SetImplicitTrailingNewLine(impTrailNewLine bool)
SetImplicitTrailingNewLine is a wrapper around gtk_source_buffer_set_implicit_trailing_newline().
func (*SourceBuffer) SetLanguage ¶
func (v *SourceBuffer) SetLanguage(language *SourceLanguage)
SetLanguage is a wrapper around gtk_source_buffer_set_language().
func (*SourceBuffer) SetMaxUndoLevels ¶
func (v *SourceBuffer) SetMaxUndoLevels(maxLevels int)
SetMaxUndoLevels is a wrapper around gtk_source_buffer_set_max_undo_levels().
func (*SourceBuffer) SetStyleSheme ¶
func (v *SourceBuffer) SetStyleSheme(scheme *SourceStyleScheme)
SetStyleSheme is a wrapper around gtk_source_buffer_set_style_scheme().
func (*SourceBuffer) SetUndoManager ¶
func (v *SourceBuffer) SetUndoManager(manager *SourceUndoManager)
SetUndoManager is a wrapper around gtk_source_buffer_set_undo_manager().
func (*SourceBuffer) SortLines ¶
func (v *SourceBuffer) SortLines(caseType SourceChangeCaseType, start, end *gtk.TextIter, flags SourceSortFlags, column int)
JoinLines is a wrapper around gtk_source_buffer_sort_lines().
func (*SourceBuffer) ToTextBuffer ¶
func (v *SourceBuffer) ToTextBuffer() *gtk.TextBuffer
ToTextBuffer returns a *TextBuffer Some derived methods accept only a TextBuffer source as pointer
func (*SourceBuffer) Undo ¶
func (v *SourceBuffer) Undo()
Undo is a wrapper around gtk_source_buffer_undo().
type SourceChangeCaseType ¶
type SourceChangeCaseType int
SourceChangeCaseType is a representation of GTK's GtkSourceChangeCaseType. Since: 3.12
const ( SOURCE_CHANGE_CASE_LOWER SourceChangeCaseType = C.GTK_SOURCE_CHANGE_CASE_LOWER SOURCE_CHANGE_CASE_UPPER SourceChangeCaseType = C.GTK_SOURCE_CHANGE_CASE_UPPER SOURCE_CHANGE_CASE_TOGGLE SourceChangeCaseType = C.GTK_SOURCE_CHANGE_CASE_TOGGLE SOURCE_CHANGE_CASE_TITLE SourceChangeCaseType = C.GTK_SOURCE_CHANGE_CASE_TITLE )
type SourceCompletion ¶
SourceCompletion is a representation of GTK's GtkSourceCompletion.
func (*SourceCompletion) AddProvider ¶
func (v *SourceCompletion) AddProvider(provider *SourceCompletionProvider) (bool, error)
AddProvider is a wrapper around gtk_source_completion_add_provider().
func (*SourceCompletion) BlockInteractive ¶
func (v *SourceCompletion) BlockInteractive()
BlockInteractive is a wrapper around gtk_source_completion_block_interactive().
func (*SourceCompletion) CreateContext ¶
func (v *SourceCompletion) CreateContext(position *gtk.TextIter) (*SourceCompletionContext, error)
CreateContext is a wrapper around gtk_source_completion_create_context().
func (*SourceCompletion) GetInfoWindow ¶
func (v *SourceCompletion) GetInfoWindow() (*SourceCompletionInfo, error)
GetInfoWindow is a wrapper around gtk_source_completion_get_info_window().
func (*SourceCompletion) GetProviders ¶
func (v *SourceCompletion) GetProviders() *glib.List
GetProviders is a wrapper around gtk_source_completion_get_providers().
func (*SourceCompletion) GetView ¶
func (v *SourceCompletion) GetView() (*SourceView, error)
GetView is a wrapper around gtk_source_completion_get_view().
func (*SourceCompletion) Hide ¶
func (v *SourceCompletion) Hide()
Hide is a wrapper around gtk_source_completion_hide().
func (*SourceCompletion) RemoveProvider ¶
func (v *SourceCompletion) RemoveProvider(provider *SourceCompletionProvider) (bool, error)
RemoveProvider is a wrapper around gtk_source_completion_remove_provider().
func (*SourceCompletion) Start ¶
func (v *SourceCompletion) Start(providers *glib.List, context *SourceCompletionContext) bool
Start is a wrapper around gtk_source_completion_start(). since GtkSourceView 4, gtk_source_completion_show() has been renamed to gtk_source_completion_start(). A List must be manually freed by either calling Free() or FreeFull()
func (*SourceCompletion) UnblockInteractive ¶
func (v *SourceCompletion) UnblockInteractive()
UnblockInteractive is a wrapper around gtk_source_completion_unblock_interactive().
type SourceCompletionActivation ¶
type SourceCompletionActivation int
SourceCompletionActivation is a representation of GTK's GtkSourceCompletionActivation.
const ( SOURCE_COMPLETION_ACTIVATION_NONE SourceCompletionActivation = C.GTK_SOURCE_COMPLETION_ACTIVATION_NONE SOURCE_COMPLETION_ACTIVATION_INTERACTIVE SourceCompletionActivation = C.GTK_SOURCE_COMPLETION_ACTIVATION_INTERACTIVE SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED SourceCompletionActivation = C.GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED )
type SourceCompletionContext ¶
type SourceCompletionContext struct {
glib.InitiallyUnowned
}
SourceCompletionContext is a representation of GTK's GtkSourceCompletionContext.
func (*SourceCompletionContext) AddProposals ¶
func (v *SourceCompletionContext) AddProposals(provider *SourceCompletionProvider, proposals *glib.List) bool
AddProposals is a wrapper around gtk_source_completion_context_add_proposals(). Providers must ensure that they always call this function with finished set to TRUE once each population (even if no proposals need to be added 'nil') A List must be manually freed by either calling Free() or FreeFull()
func (*SourceCompletionContext) GetActivation ¶
func (v *SourceCompletionContext) GetActivation() SourceCompletionActivation
GetActivation is a wrapper around gtk_source_completion_context_get_activation().
type SourceCompletionError ¶
type SourceCompletionError int
SourceCompletionError is a representation of GTK's GtkSourceCompletionError.
const ( SOURCE_COMPLETION_ERROR_ALREADY_BOUND SourceCompletionError = C.GTK_SOURCE_COMPLETION_ERROR_ALREADY_BOUND SOURCE_COMPLETION_ERROR_NOT_BOUND SourceCompletionError = C.GTK_SOURCE_COMPLETION_ERROR_NOT_BOUND )
type SourceCompletionInfo ¶
SourceCompletionInfo is a representation of GTK's GtkSourceCompletionInfo.
func SourceCompletionInfoNew ¶
func SourceCompletionInfoNew() (*SourceCompletionInfo, error)
SourceCompletionInfoNew is a wrapper around gtk_source_completion_info_new().
func (*SourceCompletionInfo) MoveToIter ¶
func (v *SourceCompletionInfo) MoveToIter(view *gtk.TextView, iter *gtk.TextIter)
MoveToIter is a wrapper around gtk_source_completion_info_move_to_iter().
type SourceCompletionItem ¶
type SourceCompletionItem struct { *glib.Object SourceCompletionProposal }
SourceCompletionItem is a representation of GTK's GtkSourceCompletionItem.
func SourceCompletionItemNew ¶
func SourceCompletionItemNew() (*SourceCompletionItem, error)
SourceCompletionItemNew is a wrapper around gtk_source_completion_item_new().
func (*SourceCompletionItem) SetGIcon ¶
func (v *SourceCompletionItem) SetGIcon(icon *glib.Icon)
SetGIcon is a wrapper around gtk_source_completion_item_set_gicon().
func (*SourceCompletionItem) SetIcon ¶
func (v *SourceCompletionItem) SetIcon(icon *gdk.Pixbuf)
SetIcon is a wrapper around gtk_source_completion_item_set_icon().
func (*SourceCompletionItem) SetIconName ¶
func (v *SourceCompletionItem) SetIconName(iconName string)
SetIconName is a wrapper around gtk_source_completion_item_set_icon_name().
func (*SourceCompletionItem) SetInfo ¶
func (v *SourceCompletionItem) SetInfo(info string)
SetInfo is a wrapper around gtk_source_completion_item_set_info().
func (*SourceCompletionItem) SetLabel ¶
func (v *SourceCompletionItem) SetLabel(label string)
SetLabel is a wrapper around gtk_source_completion_item_set_label().
func (*SourceCompletionItem) SetMarkup ¶
func (v *SourceCompletionItem) SetMarkup(markup string)
SetMarkup is a wrapper around gtk_source_completion_item_set_markup().
func (*SourceCompletionItem) SetText ¶
func (v *SourceCompletionItem) SetText(text string)
SetText is a wrapper around gtk_source_completion_item_set_text().
type SourceCompletionProposal ¶
SourceCompletionProposal is a representation of GTK's GtkSourceCompletionProposal.
func (*SourceCompletionProposal) Equal ¶
func (v *SourceCompletionProposal) Equal(other *SourceCompletionProposal) bool
Equal is a wrapper around gtk_source_completion_proposal_equal().
func (*SourceCompletionProposal) GetGIcon ¶
func (v *SourceCompletionProposal) GetGIcon() (*glib.Icon, error)
GetGIcon is a wrapper around gtk_source_completion_proposal_get_gicon().
func (*SourceCompletionProposal) GetIcon ¶
func (v *SourceCompletionProposal) GetIcon() (*gdk.Pixbuf, error)
GetIcon is a wrapper around gtk_source_completion_proposal_get_icon().
func (*SourceCompletionProposal) GetIconName ¶
func (v *SourceCompletionProposal) GetIconName() string
GetIconName is a wrapper around gtk_source_completion_proposal_get_icon_name().
func (*SourceCompletionProposal) GetInfo ¶
func (v *SourceCompletionProposal) GetInfo() string
GetInfo is a wrapper around gtk_source_completion_proposal_get_info().
func (*SourceCompletionProposal) GetLabel ¶
func (v *SourceCompletionProposal) GetLabel() string
GetLabel is a wrapper around gtk_source_completion_proposal_get_label().
func (*SourceCompletionProposal) GetMarkup ¶
func (v *SourceCompletionProposal) GetMarkup() string
GetMarkup is a wrapper around gtk_source_completion_proposal_get_markup().
func (*SourceCompletionProposal) GetText ¶
func (v *SourceCompletionProposal) GetText() string
GetText is a wrapper around gtk_source_completion_proposal_get_text().
func (*SourceCompletionProposal) Hash ¶
func (v *SourceCompletionProposal) Hash() uint
Hash is a wrapper around gtk_source_completion_proposal_hash().
type SourceCompletionProvider ¶
SourceCompletionProvider is a representation of GTK's GtkSourceCompletionProvider.
func (*SourceCompletionProvider) ActivateProposal ¶
func (v *SourceCompletionProvider) ActivateProposal(proposal *SourceCompletionProposal) (*gtk.TextIter, error)
ActivateProposal is a wrapper around gtk_source_completion_provider_activate_proposal().
func (*SourceCompletionProvider) GetActivation ¶
func (v *SourceCompletionProvider) GetActivation(context *SourceCompletionContext) SourceCompletionActivation
GetActivation is a wrapper around gtk_source_completion_provider_get_activation().
func (*SourceCompletionProvider) GetGIcon ¶
func (v *SourceCompletionProvider) GetGIcon() (*glib.Icon, error)
GetGIcon is a wrapper around gtk_source_completion_provider_get_gicon().
func (*SourceCompletionProvider) GetIcon ¶
func (v *SourceCompletionProvider) GetIcon() (*gdk.Pixbuf, error)
GetIcon is a wrapper around gtk_source_completion_provider_get_icon().
func (*SourceCompletionProvider) GetIconName ¶
func (v *SourceCompletionProvider) GetIconName() string
GetIconName is a wrapper around gtk_source_completion_provider_get_icon_name().
func (*SourceCompletionProvider) GetInfoWidget ¶
func (v *SourceCompletionProvider) GetInfoWidget(proposal *SourceCompletionProposal) *gtk.Widget
GetInfoWidget is a wrapper around gtk_source_completion_provider_get_info_widget().
func (*SourceCompletionProvider) GetInteractiveDelay ¶
func (v *SourceCompletionProvider) GetInteractiveDelay(context *SourceCompletionContext) int
GetInteractiveDelay is a wrapper around gtk_source_completion_provider_get_interactive_delay().
func (*SourceCompletionProvider) GetName ¶
func (v *SourceCompletionProvider) GetName() string
GetName is a wrapper around gtk_source_completion_provider_get_name().
func (*SourceCompletionProvider) GetPriority ¶
func (v *SourceCompletionProvider) GetPriority(context *SourceCompletionContext) int
GetPriority is a wrapper around gtk_source_completion_provider_get_priority().
func (*SourceCompletionProvider) GetStartIter ¶
func (v *SourceCompletionProvider) GetStartIter(context *SourceCompletionContext, proposal *SourceCompletionProposal) (*gtk.TextIter, error)
GetStartIter is a wrapper around gtk_source_completion_provider_get_start_iter().
func (*SourceCompletionProvider) Match ¶
func (v *SourceCompletionProvider) Match(context *SourceCompletionContext) bool
Match is a wrapper around gtk_source_completion_provider_match().
func (*SourceCompletionProvider) Populate ¶
func (v *SourceCompletionProvider) Populate(context *SourceCompletionContext)
Populate is a wrapper around gtk_source_completion_provider_populate().
func (*SourceCompletionProvider) UpdateInfo ¶
func (v *SourceCompletionProvider) UpdateInfo(proposal *SourceCompletionProposal, info *SourceCompletionInfo)
UpdateInfo is a wrapper around gtk_source_completion_provider_update_info().
type SourceCompletionWords ¶
type SourceCompletionWords struct { *glib.Object SourceCompletionProvider }
SourceCompletionWords is a representation of GTK's GtkSourceCompletionWords.
func SourceCompletionWordsNew ¶
func SourceCompletionWordsNew(name string, icon *gdk.Pixbuf) (*SourceCompletionWords, error)
SourceCompletionWordsNew is a wrapper around gtk_source_completion_words_new().
func (*SourceCompletionWords) Register ¶
func (v *SourceCompletionWords) Register(buffer *gtk.TextBuffer)
Register is a wrapper around gtk_source_completion_words_register().
func (*SourceCompletionWords) Unregister ¶
func (v *SourceCompletionWords) Unregister(buffer *gtk.TextBuffer)
Unregister is a wrapper around gtk_source_completion_words_unregister().
type SourceCompressionType ¶
type SourceCompressionType int
SourceCompressionType is a representation of GTK's GtkSourceCompressionType.
const ( SOURCE_COMPRESSION_TYPE_NONE SourceCompressionType = C.GTK_SOURCE_COMPRESSION_TYPE_NONE SOURCE_COMPRESSION_TYPE_GZIP SourceCompressionType = C.GTK_SOURCE_COMPRESSION_TYPE_GZIP )
type SourceEncoding ¶
type SourceEncoding C.GtkSourceEncoding
func SourceEncodingGetCurrent ¶
func SourceEncodingGetCurrent() (*SourceEncoding, error)
SourceEncodingGetCurrent is a wrapper around gtk_source_encoding_get_current().
func SourceEncodingGetFromCharset ¶
func SourceEncodingGetFromCharset(charset string) (*SourceEncoding, error)
SourceEncodingGetFromCharset is a wrapper around gtk_source_encoding_get_from_charset().
func SourceEncodingGetUtf8 ¶
func SourceEncodingGetUtf8() (*SourceEncoding, error)
SourceEncodingGetUtf8 is a wrapper around gtk_source_encoding_get_utf8().
func (*SourceEncoding) Copy ¶
func (v *SourceEncoding) Copy() (*SourceEncoding, error)
Copy is a wrapper around gtk_source_encoding_copy().
func (*SourceEncoding) Free ¶
func (v *SourceEncoding) Free()
Free is a wrapper around gtk_source_encoding_free().
func (*SourceEncoding) GetCharset ¶
func (v *SourceEncoding) GetCharset() string
GetCharset is a wrapper around gtk_source_encoding_get_charset().
func (*SourceEncoding) GetName ¶
func (v *SourceEncoding) GetName() string
GetName is a wrapper around gtk_source_encoding_get_name().
func (*SourceEncoding) ToString ¶
func (v *SourceEncoding) ToString() string
ToString is a wrapper around gtk_source_encoding_to_string().
type SourceFile ¶
SourceFile is a representation of GTK's GtkSourceFile. On-disk representation of a GtkSourceBuffer
func SourceFileNew ¶
func SourceFileNew() (*SourceFile, error)
SourceFileNew is a wrapper around gtk_source_file_new().
func (*SourceFile) CheckFileOnDisk ¶
func (v *SourceFile) CheckFileOnDisk()
CheckFileOnDisk is a wrapper around gtk_source_file_check_file_on_disk().
func (*SourceFile) GetCompressionType ¶
func (v *SourceFile) GetCompressionType() SourceCompressionType
GetCompressionType is a wrapper around gtk_source_file_get_compression_type().
func (*SourceFile) GetEncoding ¶
func (v *SourceFile) GetEncoding() (*SourceEncoding, error)
GetEncoding is a wrapper around gtk_source_file_get_encoding().
func (*SourceFile) GetLocation ¶
func (v *SourceFile) GetLocation() (*glib.File, error)
GetLocation is a wrapper around gtk_source_file_get_location().
func (*SourceFile) GetNewlineType ¶
func (v *SourceFile) GetNewlineType() SourceNewlineType
GetNewlineType is a wrapper around gtk_source_file_get_newline_type().
func (*SourceFile) IsDeleted ¶
func (v *SourceFile) IsDeleted() bool
IsDeleted is a wrapper around gtk_source_file_is_deleted().
func (*SourceFile) IsExternallyModified ¶
func (v *SourceFile) IsExternallyModified() bool
IsExternallyModified is a wrapper around gtk_source_file_is_externally_modified().
func (*SourceFile) IsLocal ¶
func (v *SourceFile) IsLocal() bool
IsLocal is a wrapper around gtk_source_file_is_local().
func (*SourceFile) IsReadOnly ¶
func (v *SourceFile) IsReadOnly() bool
IsReadOnly is a wrapper around gtk_source_file_is_readonly().
func (*SourceFile) SetLocation ¶
func (v *SourceFile) SetLocation(location *glib.File)
SetLocation is a wrapper around gtk_source_file_set_location().
type SourceFileLoader ¶
SourceFileLoader is a representation of GTK's GtkSourceFileLoader. Load a file into a GtkSourceBuffer
func SourceFileLoaderNew ¶
func SourceFileLoaderNew(buffer *SourceBuffer, file *SourceFile) (*SourceFileLoader, error)
SourceFileLoaderNew is a wrapper around gtk_source_file_loader_new().
func SourceFileLoaderNewFromStream ¶
func SourceFileLoaderNewFromStream(buffer *SourceBuffer, file *SourceFile, stream *glib.InputStream) (*SourceFileLoader, error)
SourceFileLoaderNewFromStream is a wrapper around gtk_source_file_loader_new_from_stream().
func (*SourceFileLoader) GetBuffer ¶
func (v *SourceFileLoader) GetBuffer() (*SourceBuffer, error)
GetBuffer is a wrapper around gtk_source_file_loader_get_buffer().
func (*SourceFileLoader) GetCompressionType ¶
func (v *SourceFileLoader) GetCompressionType() SourceCompressionType
GetCompressionType is a wrapper around gtk_source_file_loader_get_compression_type().
func (*SourceFileLoader) GetEncoding ¶
func (v *SourceFileLoader) GetEncoding() (*SourceEncoding, error)
GetEncoding is a wrapper around gtk_source_file_loader_get_encoding().
func (*SourceFileLoader) GetFile ¶
func (v *SourceFileLoader) GetFile() (*SourceFile, error)
GetFile is a wrapper around gtk_source_file_loader_get_file().
func (*SourceFileLoader) GetFileLocation ¶
func (v *SourceFileLoader) GetFileLocation() (*glib.File, error)
GetFileLocation is a wrapper around gtk_source_file_loader_get_location().
func (*SourceFileLoader) GetInputStream ¶
func (v *SourceFileLoader) GetInputStream() (*glib.InputStream, error)
GetInputStream is a wrapper around gtk_source_file_loader_get_input_stream().
func (*SourceFileLoader) GetNewLineType ¶
func (v *SourceFileLoader) GetNewLineType() SourceNewlineType
GetNewLineType is a wrapper around gtk_source_file_loader_get_newline_type().
func (*SourceFileLoader) LoadFinish ¶
func (v *SourceFileLoader) LoadFinish(result *glib.AsyncResult) (bool, error)
LoadFinish is a wrapper around gtk_source_file_loader_load_finish().
func (*SourceFileLoader) SetCandidateEncodings ¶
func (v *SourceFileLoader) SetCandidateEncodings(candidate *glib.SList)
SetCandidateEncodings is a wrapper around gtk_source_file_loader_set_candidate_encodings(). The list must be Free with (*glib.SList).Free().
type SourceFileLoaderError ¶
type SourceFileLoaderError int
SourceFileLoaderError is a representation of GTK's GtkSourceFileLoaderError.
const ( SOURCE_FILE_LOADER_ERROR_TOO_BIG SourceFileLoaderError = C.GTK_SOURCE_FILE_LOADER_ERROR_TOO_BIG SOURCE_FILE_LOADER_ERROR_ENCODING_AUTO_DETECTION_FAILED SourceFileLoaderError = C.GTK_SOURCE_FILE_LOADER_ERROR_ENCODING_AUTO_DETECTION_FAILED SOURCE_FILE_LOADER_ERROR_CONVERSION_FALLBACK SourceFileLoaderError = C.GTK_SOURCE_FILE_LOADER_ERROR_CONVERSION_FALLBACK )
type SourceFileSaver ¶
SourceFileSaver is a representation of GTK's GtkSourceFileSaver. Save a GtkSourceBuffer into a file
func SourceFileSaverNew ¶
func SourceFileSaverNew(sourceBuffer *SourceBuffer, file *SourceFile) (*SourceFileSaver, error)
SourceFileSaverNew is a wrapper around gtk_source_file_saver_new().
func SourceFileSaverNewWithTarget ¶
func SourceFileSaverNewWithTarget(buffer *SourceBuffer, file *SourceFile, target *glib.File) (*SourceFileSaver, error)
SourceFileSaverNewWithTarget is a wrapper around gtk_source_file_saver_new_with_target().
func (*SourceFileSaver) GetBuffer ¶
func (v *SourceFileSaver) GetBuffer() (*SourceBuffer, error)
GetBuffer is a wrapper around gtk_source_file_saver_get_buffer().
func (*SourceFileSaver) GetCompressionType ¶
func (v *SourceFileSaver) GetCompressionType() SourceCompressionType
GetCompressionType is a wrapper around gtk_source_file_saver_get_compression_type().
func (*SourceFileSaver) GetEncoding ¶
func (v *SourceFileSaver) GetEncoding() (*SourceEncoding, error)
GetEncoding is a wrapper around gtk_source_file_saver_get_encoding().
func (*SourceFileSaver) GetFile ¶
func (v *SourceFileSaver) GetFile() (*SourceFile, error)
GetFile is a wrapper around gtk_source_file_saver_get_file().
func (*SourceFileSaver) GetFlags ¶
func (v *SourceFileSaver) GetFlags() SourceFileSaverFlags
GetFlags is a wrapper around gtk_source_file_saver_get_flags().
func (*SourceFileSaver) GetLocation ¶
func (v *SourceFileSaver) GetLocation() (*glib.File, error)
GetLocation is a wrapper around gtk_source_file_saver_get_location().
func (*SourceFileSaver) GetNewlineType ¶
func (v *SourceFileSaver) GetNewlineType() SourceNewlineType
GetNewlineType is a wrapper around gtk_source_file_saver_get_newline_type().
func (*SourceFileSaver) SaveFinish ¶
func (v *SourceFileSaver) SaveFinish(resulst *glib.AsyncResult) error
ReplaceAll is a wrapper around gtk_source_file_saver_save_finish().
func (*SourceFileSaver) SetCompressionType ¶
func (v *SourceFileSaver) SetCompressionType(compressionType SourceCompressionType)
SetCompressionType is a wrapper around gtk_source_file_saver_set_compression_type().
func (*SourceFileSaver) SetEncoding ¶
func (v *SourceFileSaver) SetEncoding(encoding *SourceEncoding)
SetEncoding is a wrapper around gtk_source_file_saver_set_encoding().
func (*SourceFileSaver) SetFlags ¶
func (v *SourceFileSaver) SetFlags(flags SourceFileSaverFlags)
SetFlags is a wrapper around gtk_source_file_saver_set_flags().
func (*SourceFileSaver) SetNewlineType ¶
func (v *SourceFileSaver) SetNewlineType(newlineType SourceNewlineType)
SetNewlineType is a wrapper around gtk_source_file_saver_set_newline_type().
type SourceFileSaverError ¶
type SourceFileSaverError int
SourceFileSaverError is a representation of GTK's GtkSourceFileSaverError.
const ( SOURCE_FILE_SAVER_ERROR_INVALID_CHARS SourceFileSaverError = C.GTK_SOURCE_FILE_SAVER_ERROR_INVALID_CHARS SOURCE_FILE_SAVER_ERROR_EXTERNALLY_MODIFIED SourceFileSaverError = C.GTK_SOURCE_FILE_SAVER_ERROR_EXTERNALLY_MODIFIED )
type SourceFileSaverFlags ¶
type SourceFileSaverFlags int
SourceFileSaverFlags is a representation of GTK's GtkSourceFileSaverFlags.
const ( SOURCE_FILE_SAVER_FLAGS_NONE SourceFileSaverFlags = C.GTK_SOURCE_FILE_SAVER_FLAGS_NONE SOURCE_FILE_SAVER_FLAGS_IGNORE_INVALID_CHARS SourceFileSaverFlags = C.GTK_SOURCE_FILE_SAVER_FLAGS_IGNORE_INVALID_CHARS SOURCE_FILE_SAVER_FLAGS_IGNORE_MODIFICATION_TIME SourceFileSaverFlags = C.GTK_SOURCE_FILE_SAVER_FLAGS_IGNORE_MODIFICATION_TIME SOURCE_FILE_SAVER_FLAGS_CREATE_BACKUP SourceFileSaverFlags = C.GTK_SOURCE_FILE_SAVER_FLAGS_CREATE_BACKUP )
type SourceGutter ¶
SourceGutter is a representation of GTK's GtkSourceGutter.
func (*SourceGutter) GetRendererAtPos ¶
func (v *SourceGutter) GetRendererAtPos(x, y int) (*SourceGutterRenderer, error)
GetRendererAtPos is a wrapper around gtk_source_gutter_get_renderer_at_pos().
func (*SourceGutter) GetView ¶
func (v *SourceGutter) GetView() (*SourceView, error)
GetView is a wrapper around gtk_source_gutter_get_view().
func (*SourceGutter) GetWindowType ¶
func (v *SourceGutter) GetWindowType() gtk.TextWindowType
GetWindowType is a wrapper around gtk_source_gutter_get_window_type().
func (*SourceGutter) Insert ¶
func (v *SourceGutter) Insert(renderer *SourceGutterRenderer, position int) bool
Insert is a wrapper around gtk_source_gutter_insert().
func (*SourceGutter) QueueDraw ¶
func (v *SourceGutter) QueueDraw()
QueueDraw is a wrapper around gtk_source_gutter_queue_draw().
func (*SourceGutter) Remove ¶
func (v *SourceGutter) Remove(renderer *SourceGutterRenderer)
Remove is a wrapper around gtk_source_gutter_remove().
func (*SourceGutter) Reorder ¶
func (v *SourceGutter) Reorder(renderer *SourceGutterRenderer, position int)
Reorder is a wrapper around gtk_source_gutter_reorder().
type SourceGutterRenderer ¶
type SourceGutterRenderer struct {
glib.InitiallyUnowned
}
SourceGutterRenderer is a representation of GTK's GtkSourceGutterRenderer. Gutter cell renderer
func SourceGutterRendererPixbufNew ¶
func SourceGutterRendererPixbufNew() (*SourceGutterRenderer, error)
SourceGutterRendererPixbufNew is a wrapper around gtk_source_gutter_renderer_pixbuf_new().
func SourceGutterRendererTextNew ¶
func SourceGutterRendererTextNew() (*SourceGutterRenderer, error)
SourceGutterRendererTextNew is a wrapper around gtk_source_gutter_renderer_text_new().
func (*SourceGutterRenderer) Activatable ¶
func (v *SourceGutterRenderer) Activatable(iter *gtk.TextIter, area *gdk.Rectangle, event *gdk.Event) bool
Activatable is a wrapper around gtk_source_gutter_renderer_query_activatable().
func (*SourceGutterRenderer) Activate ¶
Activate is a wrapper around gtk_source_gutter_renderer_activate().
func (*SourceGutterRenderer) Begin ¶
func (v *SourceGutterRenderer) Begin(ct *cairo.Context, backgroundArea, cellArea *gdk.Rectangle, start, end *gtk.TextIter)
Begin is a wrapper around gtk_source_gutter_renderer_begin().
func (*SourceGutterRenderer) Draw ¶
func (v *SourceGutterRenderer) Draw(ct *cairo.Context, backgroundArea, cellArea *gdk.Rectangle, start, end *gtk.TextIter, state SourceGutterRendererState)
Draw is a wrapper around gtk_source_gutter_renderer_draw().
func (*SourceGutterRenderer) GetAlignment ¶
func (v *SourceGutterRenderer) GetAlignment() (float64, float64)
GetAlignment is a wrapper around gtk_source_gutter_renderer_get_alignment().
func (*SourceGutterRenderer) GetAlignmentMode ¶
func (v *SourceGutterRenderer) GetAlignmentMode() SourceGutterRendererAlignmentMode
GetAlignmentMode is a wrapper around gtk_source_gutter_renderer_get_alignment_mode().
func (*SourceGutterRenderer) GetBackground ¶
func (v *SourceGutterRenderer) GetBackground() (*gdk.RGBA, bool)
GetBackground is a wrapper around gtk_source_gutter_renderer_get_background().
func (*SourceGutterRenderer) GetPadding ¶
func (v *SourceGutterRenderer) GetPadding() (int, int)
GetPadding is a wrapper around gtk_source_gutter_renderer_get_padding().
func (*SourceGutterRenderer) GetSize ¶
func (v *SourceGutterRenderer) GetSize() int
GetSize is a wrapper around gtk_source_gutter_renderer_get_size().
func (*SourceGutterRenderer) GetView ¶
func (v *SourceGutterRenderer) GetView() (*gtk.TextView, error)
GetView is a wrapper around gtk_source_gutter_renderer_get_view().
func (*SourceGutterRenderer) GetVisible ¶
func (v *SourceGutterRenderer) GetVisible() bool
GetVisible is a wrapper around gtk_source_gutter_renderer_get_visible().
func (*SourceGutterRenderer) GetWindowType ¶
func (v *SourceGutterRenderer) GetWindowType() gtk.TextWindowType
GetWindowType is a wrapper around gtk_source_gutter_renderer_get_window_type().
func (*SourceGutterRenderer) QueryData ¶
func (v *SourceGutterRenderer) QueryData(start, end *gtk.TextIter, state SourceGutterRendererState)
QueryData is a wrapper around gtk_source_gutter_renderer_query_data().
func (*SourceGutterRenderer) QueryTooltip ¶
func (v *SourceGutterRenderer) QueryTooltip(iter *gtk.TextIter, area *gdk.Rectangle, x, y int, tooltip *gtk.Tooltip) bool
QueryTooltip is a wrapper around gtk_source_gutter_renderer_query_tooltip().
func (*SourceGutterRenderer) QueuDraw ¶
func (v *SourceGutterRenderer) QueuDraw()
QueuDraw is a wrapper around gtk_source_gutter_renderer_queue_draw().
func (*SourceGutterRenderer) SetAlignment ¶
func (v *SourceGutterRenderer) SetAlignment(xalign, yalign float64)
SetAlignment is a wrapper around gtk_source_gutter_renderer_set_alignment().
func (*SourceGutterRenderer) SetAlignmentMode ¶
func (v *SourceGutterRenderer) SetAlignmentMode(amode SourceGutterRendererAlignmentMode)
SetAlignmentMode is a wrapper around gtk_source_gutter_renderer_set_alignment_mode().
func (*SourceGutterRenderer) SetBackground ¶
func (v *SourceGutterRenderer) SetBackground(background *gdk.RGBA)
SetBackground is a wrapper around gtk_source_gutter_renderer_set_background().
func (*SourceGutterRenderer) SetPadding ¶
func (v *SourceGutterRenderer) SetPadding(x, y int)
SetPadding is a wrapper around gtk_source_gutter_renderer_set_padding().
func (*SourceGutterRenderer) SetSize ¶
func (v *SourceGutterRenderer) SetSize(size int)
SetSize is a wrapper around gtk_source_gutter_renderer_set_size().
func (*SourceGutterRenderer) SetVisible ¶
func (v *SourceGutterRenderer) SetVisible(visible bool)
SetVisible is a wrapper around gtk_source_gutter_renderer_set_visible().
type SourceGutterRendererAlignmentMode ¶
type SourceGutterRendererAlignmentMode int
SourceGutterRendererAlignmentMode is a representation of GTK's GtkSourceGutterRendererAlignmentMode.
const ( SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL SourceGutterRendererAlignmentMode = C.GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_FIRST SourceGutterRendererAlignmentMode = C.GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_FIRST SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_LAST SourceGutterRendererAlignmentMode = C.GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_LAST )
type SourceGutterRendererPixbuf ¶
type SourceGutterRendererPixbuf struct {
SourceGutterRenderer
}
SourceGutterRendererPixbuf is a representation of GTK's GtkSourceGutterRendererPixbuf. Renders a pixbuf in the gutter
func (*SourceGutterRendererPixbuf) GetGIcon ¶
func (v *SourceGutterRendererPixbuf) GetGIcon() (*glib.Icon, error)
GetGIcon is a wrapper around gtk_source_gutter_renderer_pixbuf_get_gicon().
func (*SourceGutterRendererPixbuf) GetIconName ¶
func (v *SourceGutterRendererPixbuf) GetIconName() string
GetIconName is a wrapper around gtk_source_gutter_renderer_pixbuf_get_icon_name().
func (*SourceGutterRendererPixbuf) GetPixbuf ¶
func (v *SourceGutterRendererPixbuf) GetPixbuf() (*gdk.Pixbuf, error)
GetPixbuf is a wrapper around gtk_source_gutter_renderer_pixbuf_get_pixbuf().
func (*SourceGutterRendererPixbuf) SetGIcon ¶
func (v *SourceGutterRendererPixbuf) SetGIcon(icon *glib.Icon)
SetGIcon is a wrapper around gtk_source_gutter_renderer_pixbuf_set_gicon().
func (*SourceGutterRendererPixbuf) SetIconName ¶
func (v *SourceGutterRendererPixbuf) SetIconName(name string)
SetIconName is a wrapper around gtk_source_gutter_renderer_pixbuf_set_icon_name().
func (*SourceGutterRendererPixbuf) SetPixbuf ¶
func (v *SourceGutterRendererPixbuf) SetPixbuf(pixbuf *gdk.Pixbuf)
SetPixbuf is a wrapper around gtk_source_gutter_renderer_pixbuf_set_pixbuf().
type SourceGutterRendererState ¶
type SourceGutterRendererState int
SourceGutterRendererState is a representation of GTK's GtkSourceGutterRendererState.
const ( SOURCE_GUTTER_RENDERER_STATE_NORMAL SourceGutterRendererState = C.GTK_SOURCE_GUTTER_RENDERER_STATE_NORMAL SOURCE_GUTTER_RENDERER_STATE_CURSOR SourceGutterRendererState = C.GTK_SOURCE_GUTTER_RENDERER_STATE_CURSOR SOURCE_GUTTER_RENDERER_STATE_PRELIT SourceGutterRendererState = C.GTK_SOURCE_GUTTER_RENDERER_STATE_PRELIT SOURCE_GUTTER_RENDERER_STATE_SELECTED SourceGutterRendererState = C.GTK_SOURCE_GUTTER_RENDERER_STATE_SELECTED )
type SourceGutterRendererText ¶
type SourceGutterRendererText struct {
SourceGutterRenderer
}
SourceGutterRendererText is a representation of GTK's GtkSourceGutterRendererText. Renders text in the gutter
func (*SourceGutterRendererText) Measure ¶
func (v *SourceGutterRendererText) Measure(text string) (width, height int)
Measure is a wrapper around gtk_source_gutter_renderer_text_measure().
func (*SourceGutterRendererText) MeasureMarkup ¶
func (v *SourceGutterRendererText) MeasureMarkup(markup string) (width, height int)
MeasureMarkup is a wrapper around gtk_source_gutter_renderer_text_measure_markup().
func (*SourceGutterRendererText) SetMarkup ¶
func (v *SourceGutterRendererText) SetMarkup(markup string)
SetMarkup is a wrapper around gtk_source_gutter_renderer_text_set_markup().
func (*SourceGutterRendererText) SetText ¶
func (v *SourceGutterRendererText) SetText(text string)
SetText is a wrapper around gtk_source_gutter_renderer_text_set_text().
type SourceLanguage ¶
SourceLanguage is a representation of GTK's GtkSourceLanguage.
func (*SourceLanguage) GetGlobs ¶
func (v *SourceLanguage) GetGlobs() []string
GetGlobs is a wrapper around gtk_source_language_get_globs().
func (*SourceLanguage) GetHidden ¶
func (v *SourceLanguage) GetHidden() bool
GetHidden is a wrapper around gtk_source_language_get_hidden().
func (*SourceLanguage) GetId ¶
func (v *SourceLanguage) GetId() string
GetId is a wrapper around gtk_source_language_get_id().
func (*SourceLanguage) GetMetadata ¶
func (v *SourceLanguage) GetMetadata(name string) string
GetMetadata is a wrapper around gtk_source_language_get_metadata().
func (*SourceLanguage) GetMimeTypes ¶
func (v *SourceLanguage) GetMimeTypes() []string
GetMimeTypes is a wrapper around gtk_source_language_get_mime_types().
func (*SourceLanguage) GetName ¶
func (v *SourceLanguage) GetName() string
GetName is a wrapper around gtk_source_language_get_name().
func (*SourceLanguage) GetSection ¶
func (v *SourceLanguage) GetSection() string
GetSection is a wrapper around gtk_source_language_get_section().
func (*SourceLanguage) GetStyleFallback ¶
func (v *SourceLanguage) GetStyleFallback(styleId string) string
GetStyleFallback is a wrapper around gtk_source_language_get_style_fallback().
func (*SourceLanguage) GetStyleIds ¶
func (v *SourceLanguage) GetStyleIds() []string
GetStyleIds is a wrapper around gtk_source_language_get_style_ids().
func (*SourceLanguage) GetStyleName ¶
func (v *SourceLanguage) GetStyleName(styleId string) string
GetStyleName is a wrapper around gtk_source_language_get_style_name().
type SourceLanguageManager ¶
SourceLanguageManager is a representation of GTK's GtkSourceLanguageManager. Provides access to GtkSourceLanguages
func SourceLanguageManagerGetDefault ¶
func SourceLanguageManagerGetDefault() (*SourceLanguageManager, error)
SourceLanguageManagerGetDefault is a wrapper around gtk_source_language_manager_get_default ().
func SourceLanguageManagerNew ¶
func SourceLanguageManagerNew() (*SourceLanguageManager, error)
SourceLanguageManagerNew is a wrapper around gtk_source_language_manager_new ().
func (*SourceLanguageManager) GetGuessLanguage ¶
func (v *SourceLanguageManager) GetGuessLanguage(filename, contentType string) (*SourceLanguage, error)
GetGuessLanguage is a wrapper around gtk_source_language_manager_guess_language().
func (*SourceLanguageManager) GetLanguage ¶
func (v *SourceLanguageManager) GetLanguage(id string) (*SourceLanguage, error)
GetLanguage is a wrapper around gtk_source_language_manager_get_language().
func (*SourceLanguageManager) GetLanguageIds ¶
func (v *SourceLanguageManager) GetLanguageIds() []string
GetLanguageIds is a wrapper around gtk_source_language_manager_get_language_ids().
func (*SourceLanguageManager) GetSearchPath ¶
func (v *SourceLanguageManager) GetSearchPath() []string
GetSearchPath is a wrapper around gtk_source_language_manager_get_search_path().
func (*SourceLanguageManager) SetSearchPath ¶
func (v *SourceLanguageManager) SetSearchPath(dirs []string)
SetSearchPath is a wrapper around gtk_source_language_manager_set_search_path(). At the moment this function can be called only before the language files are loaded for the first time. In practice to set a custom search path for a GtkSourceLanguageManager, you have to call this function right after creating it.
type SourceMap ¶
type SourceMap struct {
SourceView
}
SourceMap is a representation of GTK's GtkSourceMap. Widget that displays a map for a specific GtkSourceView
func SourceMapNew ¶
SourceMapNew is a wrapper around gtk_source_map_new(). Original documentation figure out return a GtkWidget but here, to be able to use SetView and GetView methods, we get a SourceMap object instead. To convert, use SourceMap.ToWidget()
func (*SourceMap) GetView ¶
func (v *SourceMap) GetView() (*SourceView, error)
GetView is a wrapper around gtk_source_map_get_view ().
func (*SourceMap) SetView ¶
func (v *SourceMap) SetView(view *SourceView)
SetView is a wrapper around gtk_source_map_set_view ().
type SourceMark ¶
SourceMark is a representation of GTK's GtkSourceMark. Mark object for GtkSourceBuffer
func SourceMarkNew ¶
func SourceMarkNew(name, category string) (*SourceMark, error)
SourceMarkNew is a wrapper around gtk_source_mark_new().
func (*SourceMark) GetBuffer ¶
func (v *SourceMark) GetBuffer() (*SourceBuffer, error)
GetBuffer overriding gtk_text_mark_get_buffer() to get a GtkSourceBuffer from a GtkSourceMark
func (*SourceMark) GetCategory ¶
func (v *SourceMark) GetCategory() string
GetCategory is a wrapper around gtk_source_mark_get_category().
func (*SourceMark) Next ¶
func (v *SourceMark) Next(category string) (*SourceMark, error)
Next is a wrapper around gtk_source_mark_next().
func (*SourceMark) Prev ¶
func (v *SourceMark) Prev(category string) (*SourceMark, error)
Prev is a wrapper around gtk_source_mark_prev().
type SourceMarkAttributes ¶
SourceMarkAttributes is a representation of GTK's GtkSourceMarkAttributes.
func SourceMarkAttributesNew ¶
func SourceMarkAttributesNew() (*SourceMarkAttributes, error)
SourceMarkAttributesNew is a wrapper around gtk_source_mark_attributes_new().
func (*SourceMarkAttributes) GetBackground ¶
func (v *SourceMarkAttributes) GetBackground() (*gdk.RGBA, bool)
GetBackground is a wrapper around gtk_source_mark_attributes_get_background().
func (*SourceMarkAttributes) GetGIcon ¶
func (v *SourceMarkAttributes) GetGIcon() (*glib.Icon, error)
GetGIcon is a wrapper around gtk_source_mark_attributes_get_gicon().
func (*SourceMarkAttributes) GetIconName ¶
func (v *SourceMarkAttributes) GetIconName() string
GetIconName is a wrapper around gtk_source_mark_attributes_get_icon_name().
func (*SourceMarkAttributes) GetPixbuf ¶
func (v *SourceMarkAttributes) GetPixbuf() (*gdk.Pixbuf, error)
GetPixBuf is a wrapper around gtk_source_mark_attributes_get_pixbuf().
func (*SourceMarkAttributes) GetTooltipMarkup ¶
func (v *SourceMarkAttributes) GetTooltipMarkup(mark *SourceMark) string
GetTooltipMarkup is a wrapper around gtk_source_mark_attributes_get_tooltip_markup().
func (*SourceMarkAttributes) GetTooltipText ¶
func (v *SourceMarkAttributes) GetTooltipText(mark *SourceMark) string
GetTooltipText is a wrapper around gtk_source_mark_attributes_get_tooltip_text().
func (*SourceMarkAttributes) RenderIcon ¶
RenderIcon is a wrapper around gtk_source_mark_attributes_render_icon().
func (*SourceMarkAttributes) SetBackground ¶
func (v *SourceMarkAttributes) SetBackground(background *gdk.RGBA)
SetBackground is a wrapper around gtk_source_mark_attributes_set_background().
func (*SourceMarkAttributes) SetGIcon ¶
func (v *SourceMarkAttributes) SetGIcon(icon *glib.Icon)
SetGIcon is a wrapper around gtk_source_mark_attributes_set_gicon().
func (*SourceMarkAttributes) SetIconName ¶
func (v *SourceMarkAttributes) SetIconName(name string)
SetIconName is a wrapper around gtk_source_mark_attributes_set_icon_name().
func (*SourceMarkAttributes) SetPixbuf ¶
func (v *SourceMarkAttributes) SetPixbuf(pixbuf *gdk.Pixbuf)
SetPixBuf is a wrapper around gtk_source_mark_attributes_set_pixbuf().
type SourceNewlineType ¶
type SourceNewlineType int
SourceNewlineType is a representation of GTK's GtkSourceNewlineType.
const ( SOURCE_NEWLINE_TYPE_LF SourceNewlineType = C.GTK_SOURCE_NEWLINE_TYPE_LF SOURCE_NEWLINE_TYPE_CR SourceNewlineType = C.GTK_SOURCE_NEWLINE_TYPE_CR SOURCE_NEWLINE_TYPE_CR_LF SourceNewlineType = C.GTK_SOURCE_NEWLINE_TYPE_CR_LF )
type SourceSearchContext ¶
SourceSearchContext is a representation of GTK's GtkSourceSearchContext.
func SourceSearchContextNew ¶
func SourceSearchContextNew(buffer *SourceBuffer, settings *SourceSearchSettings) (*SourceSearchContext, error)
SourceSearchContextNew is a wrapper around gtk_source_search_context_new().
func (*SourceSearchContext) Backward ¶
func (v *SourceSearchContext) Backward(iter *gtk.TextIter) (*gtk.TextIter, *gtk.TextIter, bool, bool)
Backward is a wrapper around gtk_source_search_context_backward().
func (*SourceSearchContext) BackwardAsync ¶
func (v *SourceSearchContext) BackwardAsync( iter *gtk.TextIter, cancellable *glib.Cancellable, callback glib.AsyncReadyCallback, userData ...uintptr)
BackwardAsync is a wrapper around gtk_source_search_context_backward_async().
func (*SourceSearchContext) BackwardFinish ¶
func (v *SourceSearchContext) BackwardFinish(result *glib.AsyncResult) (*gtk.TextIter, *gtk.TextIter, bool, bool, error)
BackwardFinish is a wrapper around gtk_source_search_context_backward_finish().
func (*SourceSearchContext) Forward ¶
func (v *SourceSearchContext) Forward(iter *gtk.TextIter) (*gtk.TextIter, *gtk.TextIter, bool, bool)
Forward is a wrapper around gtk_source_search_context_forward().
func (*SourceSearchContext) ForwardAsync ¶
func (v *SourceSearchContext) ForwardAsync( iter *gtk.TextIter, cancellable *glib.Cancellable, callback glib.AsyncReadyCallback, userData ...uintptr)
ForwardAsync is a wrapper around gtk_source_search_context_forward_async().
func (*SourceSearchContext) ForwardFinish ¶
func (v *SourceSearchContext) ForwardFinish(result *glib.AsyncResult) (*gtk.TextIter, *gtk.TextIter, bool, bool, error)
ForwardFinish is a wrapper around gtk_source_search_context_forward_finish().
func (*SourceSearchContext) GetBuffer ¶
func (v *SourceSearchContext) GetBuffer() (*SourceBuffer, error)
GetBuffer is a wrapper around gtk_source_search_context_get_buffer().
func (*SourceSearchContext) GetHighLight ¶
func (v *SourceSearchContext) GetHighLight() bool
GetHighLight is a wrapper around gtk_source_search_context_get_highlight().
func (*SourceSearchContext) GetMatchStyle ¶
func (v *SourceSearchContext) GetMatchStyle() (*SourceStyle, error)
GetMatchStyle is a wrapper around gtk_source_search_context_get_match_style().
func (*SourceSearchContext) GetOccurencePosition ¶
func (v *SourceSearchContext) GetOccurencePosition(start, end *gtk.TextIter) int
GetOccurencePosition is a wrapper around gtk_source_search_context_get_occurrence_position().
func (*SourceSearchContext) GetOccurencesCount ¶
func (v *SourceSearchContext) GetOccurencesCount() int
GetOccurencesCount is a wrapper around gtk_source_search_context_get_occurrences_count().
func (*SourceSearchContext) GetRegexError ¶
func (v *SourceSearchContext) GetRegexError() error
ReplaceAll is a wrapper around gtk_source_search_context_get_regex_error().
func (*SourceSearchContext) GetSettings ¶
func (v *SourceSearchContext) GetSettings() (*SourceSearchSettings, error)
GetSettings is a wrapper around gtk_source_search_context_get_settings().
func (*SourceSearchContext) Replace ¶
Replace is a wrapper around gtk_source_search_context_replace().
func (*SourceSearchContext) ReplaceAll ¶
func (v *SourceSearchContext) ReplaceAll(replace string) (int, error)
ReplaceAll is a wrapper around gtk_source_search_context_replace_all().
func (*SourceSearchContext) SetHighLight ¶
func (v *SourceSearchContext) SetHighLight(highlight bool)
SetHighLight is a wrapper around gtk_source_search_context_set_highlight().
func (*SourceSearchContext) SetMatchStyle ¶
func (v *SourceSearchContext) SetMatchStyle(style *SourceStyle)
SetMatchStyle is a wrapper around gtk_source_search_context_set_match_style().
type SourceSearchSettings ¶
SourceSearchSettings is a representation of GTK's GtkSourceSearchSettings.
func SourceSearchSettingsNew ¶
func SourceSearchSettingsNew() (*SourceSearchSettings, error)
SourceSearchSettingsNew is a wrapper around gtk_source_search_settings_new().
func (*SourceSearchSettings) GetCaseSensitive ¶
func (v *SourceSearchSettings) GetCaseSensitive() bool
GetCaseSensitive is a wrapper around gtk_source_search_settings_get_case_sensitive().
func (*SourceSearchSettings) GetRegexEnabled ¶
func (v *SourceSearchSettings) GetRegexEnabled() bool
GetRegexEnabled is a wrapper around gtk_source_search_settings_get_regex_enabled().
func (*SourceSearchSettings) GetSearchText ¶
func (v *SourceSearchSettings) GetSearchText() string
GetSearchText is a wrapper around gtk_source_search_settings_get_search_text().
func (*SourceSearchSettings) GetWordBoundaries ¶
func (v *SourceSearchSettings) GetWordBoundaries() bool
GetWordBoundaries is a wrapper around gtk_source_search_settings_get_at_word_boundaries().
func (*SourceSearchSettings) GetWrapAround ¶
func (v *SourceSearchSettings) GetWrapAround() bool
GetWrapAround is a wrapper around gtk_source_search_settings_get_wrap_around().
func (*SourceSearchSettings) SetCaseSensitive ¶
func (v *SourceSearchSettings) SetCaseSensitive(caseSensitive bool)
SetCaseSensitive is a wrapper around gtk_source_search_settings_set_case_sensitive().
func (*SourceSearchSettings) SetRegexEnabled ¶
func (v *SourceSearchSettings) SetRegexEnabled(enabled bool)
SetRegexEnabled is a wrapper around gtk_source_search_settings_set_regex_enabled().
func (*SourceSearchSettings) SetSearchText ¶
func (v *SourceSearchSettings) SetSearchText(search string)
SetSearchText is a wrapper around gtk_source_search_settings_set_search_text().
func (*SourceSearchSettings) SetWordBoundaries ¶
func (v *SourceSearchSettings) SetWordBoundaries(set bool)
SetWordBoundaries is a wrapper around gtk_source_search_settings_set_at_word_boundaries().
func (*SourceSearchSettings) SetWrapAround ¶
func (v *SourceSearchSettings) SetWrapAround(wrapAround bool)
SetWrapAround is a wrapper around gtk_source_search_settings_set_wrap_around().
type SourceSmartHomeEndType ¶
type SourceSmartHomeEndType int
SourceSmartHomeEndType is a representation of GTK's GtkSourceSmartHomeEndType.
const ( SOURCE_SMART_HOME_END_DISABLED SourceSmartHomeEndType = C.GTK_SOURCE_SMART_HOME_END_DISABLED SOURCE_SMART_HOME_END_BEFORE SourceSmartHomeEndType = C.GTK_SOURCE_SMART_HOME_END_BEFORE SOURCE_SMART_HOME_END_AFTER SourceSmartHomeEndType = C.GTK_SOURCE_SMART_HOME_END_AFTER SOURCE_SMART_HOME_END_ALWAYS SourceSmartHomeEndType = C.GTK_SOURCE_SMART_HOME_END_ALWAYS )
type SourceSortFlags ¶
type SourceSortFlags int
SourceSortFlags is a representation of GTK's GtkSourceSortFlags.
const ( SOURCE_SORT_FLAGS_NONE SourceSortFlags = C.GTK_SOURCE_SORT_FLAGS_NONE SOURCE_SORT_FLAGS_CASE_SENSITIVE SourceSortFlags = C.GTK_SOURCE_SORT_FLAGS_CASE_SENSITIVE SOURCE_SORT_FLAGS_REVERSE_ORDER SourceSortFlags = C.GTK_SOURCE_SORT_FLAGS_REVERSE_ORDER SOURCE_SORT_FLAGS_REMOVE_DUPLICATES SourceSortFlags = C.GTK_SOURCE_SORT_FLAGS_REMOVE_DUPLICATES )
type SourceSpaceDrawer ¶
SourceSpaceDrawer is a representation of GTK's GtkSourceSpaceDrawer. Represent white space characters with symbols
func SourceSpaceDrawerNew ¶
func SourceSpaceDrawerNew() (*SourceSpaceDrawer, error)
SourceSpaceDrawerNew is a wrapper around gtk_source_space_drawer_new().
func (*SourceSpaceDrawer) BindMatrixSetting ¶
func (v *SourceSpaceDrawer) BindMatrixSetting( settings *glib.Settings, key string, flag glib.SettingsBindFlags)
BindMatrixSetting is a wrapper around gtk_source_space_drawer_bind_matrix_setting().
func (*SourceSpaceDrawer) GetEnableMatrix ¶
func (v *SourceSpaceDrawer) GetEnableMatrix() bool
GetEnableMatrix is a wrapper around gtk_source_space_drawer_get_enable_matrix().
func (*SourceSpaceDrawer) GetMatrix ¶
func (v *SourceSpaceDrawer) GetMatrix() (*glib.Variant, error)
GetMatrix is a wrapper around gtk_source_space_drawer_get_matrix().
func (*SourceSpaceDrawer) GetTypesForLocations ¶
func (v *SourceSpaceDrawer) GetTypesForLocations(locations SourceSpaceLocationFlags) SourceSpaceTypeFlags
GetTypesForLocations is a wrapper around gtk_source_space_drawer_get_types_for_locations().
func (*SourceSpaceDrawer) SetEnableMatrix ¶
func (v *SourceSpaceDrawer) SetEnableMatrix(enable bool)
SetEnableMatrix is a wrapper around gtk_source_space_drawer_set_enable_matrix().
func (*SourceSpaceDrawer) SetMatrix ¶
func (v *SourceSpaceDrawer) SetMatrix(matrix *glib.Variant)
SetMatrix is a wrapper around gtk_source_space_drawer_set_matrix().
func (*SourceSpaceDrawer) SetTypesForLocations ¶
func (v *SourceSpaceDrawer) SetTypesForLocations(locations SourceSpaceLocationFlags, types SourceSpaceTypeFlags)
SetTypesForLocations is a wrapper around gtk_source_space_drawer_set_types_for_locations().
type SourceSpaceLocationFlags ¶
type SourceSpaceLocationFlags int
GtkSourceSpaceLocationFlags contains flags for white space locations.
const ( SOURCE_SPACE_LOCATION_NONE SourceSpaceLocationFlags = C.GTK_SOURCE_SPACE_LOCATION_NONE SOURCE_SPACE_LOCATION_LEADING SourceSpaceLocationFlags = C.GTK_SOURCE_SPACE_LOCATION_LEADING SOURCE_SPACE_LOCATION_INSIDE_TEXT SourceSpaceLocationFlags = C.GTK_SOURCE_SPACE_LOCATION_INSIDE_TEXT SOURCE_SPACE_LOCATION_TRAILING SourceSpaceLocationFlags = C.GTK_SOURCE_SPACE_LOCATION_TRAILING SOURCE_SPACE_LOCATION_ALL SourceSpaceLocationFlags = C.GTK_SOURCE_SPACE_LOCATION_ALL )
type SourceSpaceTypeFlags ¶
type SourceSpaceTypeFlags int
GtkSourceSpaceTypeFlags contains flags for white space types.
const ( SOURCE_SPACE_TYPE_NONE SourceSpaceTypeFlags = C.GTK_SOURCE_SPACE_TYPE_NONE SOURCE_SPACE_TYPE_SPACE SourceSpaceTypeFlags = C.GTK_SOURCE_SPACE_TYPE_SPACE SOURCE_SPACE_TYPE_TAB SourceSpaceTypeFlags = C.GTK_SOURCE_SPACE_TYPE_TAB SOURCE_SPACE_TYPE_NEWLINE SourceSpaceTypeFlags = C.GTK_SOURCE_SPACE_TYPE_NEWLINE SOURCE_SPACE_TYPE_NBSP SourceSpaceTypeFlags = C.GTK_SOURCE_SPACE_TYPE_NBSP SOURCE_SPACE_TYPE_ALL SourceSpaceTypeFlags = C.GTK_SOURCE_SPACE_TYPE_ALL )
type SourceStyle ¶
SourceStyle is a representation of GTK's GtkSourceStyle.
func (*SourceStyle) Apply ¶
func (v *SourceStyle) Apply(tag *gtk.TextTag)
Apply is a wrapper around gtk_source_style_apply().
func (*SourceStyle) Copy ¶
func (v *SourceStyle) Copy() (*SourceStyle, error)
Copy is a wrapper around gtk_source_style_copy().
type SourceStyleScheme ¶
SourceStyleScheme is a representation of GTK's GtkSourceStyleScheme.
func (*SourceStyleScheme) GetAuthors ¶
func (v *SourceStyleScheme) GetAuthors() []string
GetAuthors is a wrapper around gtk_source_style_scheme_get_authors().
func (*SourceStyleScheme) GetDescription ¶
func (v *SourceStyleScheme) GetDescription() string
GetDescription is a wrapper around gtk_source_style_scheme_get_description().
func (*SourceStyleScheme) GetFilename ¶
func (v *SourceStyleScheme) GetFilename() string
GetFilename is a wrapper around gtk_source_style_scheme_get_filename().
func (*SourceStyleScheme) GetId ¶
func (v *SourceStyleScheme) GetId() string
GetId is a wrapper around gtk_source_style_scheme_get_id().
func (*SourceStyleScheme) GetName ¶
func (v *SourceStyleScheme) GetName() string
GetName is a wrapper around gtk_source_style_scheme_get_name().
func (*SourceStyleScheme) GetStyle ¶
func (v *SourceStyleScheme) GetStyle(styleId string) (*SourceStyle, error)
GetStyle is a wrapper around gtk_source_style_scheme_get_style().
type SourceStyleSchemeChooser ¶
SourceStyleSchemeChooser is a representation of GTK's GtkSourceStyleSchemeChooser.
func (*SourceStyleSchemeChooser) GetStyleScheme ¶
func (v *SourceStyleSchemeChooser) GetStyleScheme() (*SourceStyleScheme, error)
GetStyleScheme is a wrapper around gtk_source_style_scheme_chooser_get_style_scheme().
func (*SourceStyleSchemeChooser) SetStyleScheme ¶
func (v *SourceStyleSchemeChooser) SetStyleScheme(scheme *SourceStyleScheme)
SetStyleScheme is a wrapper around gtk_source_style_scheme_chooser_set_style_scheme().
type SourceStyleSchemeChooserButton ¶
type SourceStyleSchemeChooserButton struct { gtk.Button SourceStyleSchemeChooser }
SourceStyleSchemeChooserButton is a representation of GTK's GtkSourceStyleSchemeChooserButton.
func SourceStyleSchemeChooserButtonNew ¶
func SourceStyleSchemeChooserButtonNew() (*SourceStyleSchemeChooserButton, error)
SourceStyleSchemeChooserButtonNew is a wrapper around gtk_source_style_scheme_chooser_button_new().
type SourceStyleSchemeChooserWidget ¶
type SourceStyleSchemeChooserWidget struct { gtk.Bin SourceStyleSchemeChooser }
SourceStyleSchemeChooserWidget is a representation of GTK's GtkSourceStyleSchemeChooserWidget.
func SourceStyleSchemeChooserWidgetNew ¶
func SourceStyleSchemeChooserWidgetNew() (*SourceStyleSchemeChooserWidget, error)
SourceStyleSchemeChooserWidgetNew is a wrapper around gtk_source_style_scheme_chooser_widget_new().
type SourceStyleSchemeManager ¶
SourceStyleSchemeManager is a representation of GTK's GtkSourceStyleSchemeManager.
func SourceStyleSchemeManagerGetDefault ¶
func SourceStyleSchemeManagerGetDefault() (*SourceStyleSchemeManager, error)
SourceStyleSchemeManagerGetDefault is a wrapper around gtk_source_style_scheme_manager_get_default().
func SourceStyleSchemeManagerNew ¶
func SourceStyleSchemeManagerNew() (*SourceStyleSchemeManager, error)
SourceStyleSchemeManagerNew is a wrapper around gtk_source_style_scheme_manager_new().
func (*SourceStyleSchemeManager) AppendSearchPath ¶
func (v *SourceStyleSchemeManager) AppendSearchPath(path string)
AppendSearchPath is a wrapper around gtk_source_style_scheme_manager_append_search_path().
func (*SourceStyleSchemeManager) ForceRescan ¶
func (v *SourceStyleSchemeManager) ForceRescan()
ForceRescan() is a wrapper around gtk_source_style_scheme_manager_force_rescan().
func (*SourceStyleSchemeManager) GetScheme ¶
func (v *SourceStyleSchemeManager) GetScheme(id string) (*SourceStyleScheme, error)
GetScheme is a wrapper around gtk_source_style_scheme_manager_get_scheme().
func (*SourceStyleSchemeManager) GetSearchPath ¶
func (v *SourceStyleSchemeManager) GetSearchPath() []string
GetSearchPath is a wrapper around gtk_source_style_scheme_manager_get_search_path().
func (*SourceStyleSchemeManager) GetShemeIds ¶
func (v *SourceStyleSchemeManager) GetShemeIds() []string
GetShemeIds is a wrapper around gtk_source_style_scheme_manager_get_scheme_ids().
func (*SourceStyleSchemeManager) PrependSearchPath ¶
func (v *SourceStyleSchemeManager) PrependSearchPath(path string)
PrependSearchPath is a wrapper around gtk_source_style_scheme_manager_prepend_search_path().
func (*SourceStyleSchemeManager) SetSearchPath ¶
func (v *SourceStyleSchemeManager) SetSearchPath(path []string)
SetSearchPath is a wrapper around gtk_source_style_scheme_manager_set_search_path().
type SourceTag ¶
SourceTag is a representation of GTK's GtkSourceTag. Subclass of GtkTextTag A tag that can be applied to text in a GtkSourceBuffer
type SourceUndoManager ¶
SourceUndoManager is a representation of GTK's GtkSourceUndoManager. Undo manager interface for GtkSourceView
func (*SourceUndoManager) BeginNotUndoableAction ¶
func (v *SourceUndoManager) BeginNotUndoableAction()
BeginNotUndoableAction is a wrapper around gtk_source_undo_manager_begin_not_undoable_action().
func (*SourceUndoManager) CanRedo ¶
func (v *SourceUndoManager) CanRedo() bool
CanRedo is a wrapper around gtk_source_undo_manager_can_redo().
func (*SourceUndoManager) CanRedoChanged ¶
func (v *SourceUndoManager) CanRedoChanged()
CanRedoChanged is a wrapper around gtk_source_undo_manager_can_redo_changed().
func (*SourceUndoManager) CanUndo ¶
func (v *SourceUndoManager) CanUndo() bool
CanUndo is a wrapper around gtk_source_undo_manager_can_undo().
func (*SourceUndoManager) CanUndoChanged ¶
func (v *SourceUndoManager) CanUndoChanged()
CanUndoChanged is a wrapper around gtk_source_undo_manager_can_undo_changed().
func (*SourceUndoManager) EndNotUndoableAction ¶
func (v *SourceUndoManager) EndNotUndoableAction()
EndNotUndoableAction is a wrapper around gtk_source_undo_manager_end_not_undoable_action().
func (*SourceUndoManager) Redo ¶
func (v *SourceUndoManager) Redo()
Redo is a wrapper around gtk_source_undo_manager_redo().
func (*SourceUndoManager) Undo ¶
func (v *SourceUndoManager) Undo()
Undo is a wrapper around gtk_source_undo_manager_undo().
type SourceView ¶
SourceView is a representation of GTK's GtkSourceView Subclass of GtkTextView
func SourceViewNew ¶
func SourceViewNew() (*SourceView, error)
SourceViewNew is a wrapper around gtk_source_view_new ().
func SourceViewNewWithBuffer ¶
func SourceViewNewWithBuffer(buf *SourceBuffer) (*SourceView, error)
SourceViewNewWithBuffer is a wrapper around gtk_source_view_new_with_buffer().
func (*SourceView) GetAutoIndent ¶
func (v *SourceView) GetAutoIndent() bool
GetAutoIndent is a wrapper around gtk_source_view_get_auto_indent().
func (*SourceView) GetBackgroundPattern ¶
func (v *SourceView) GetBackgroundPattern() SourceBackgroundPatternType
GetBackgroundPattern is a wrapper around gtk_source_view_get_background_pattern().
func (*SourceView) GetBuffer ¶
func (v *SourceView) GetBuffer() (*SourceBuffer, error)
GetBuffer overriding gtk_text_view_get_buffer() to get a GtkSourceBuffer from a GtkSourceView
func (*SourceView) GetCompletion ¶
func (v *SourceView) GetCompletion() (*SourceCompletion, error)
GetCompletion is a wrapper around gtk_source_view_get_completion().
func (*SourceView) GetGutter ¶
func (v *SourceView) GetGutter(windowType gtk.TextWindowType) (*SourceGutter, error)
GetGutter is a wrapper around gtk_source_view_get_gutter().
func (*SourceView) GetHighlightCurrentLine ¶
func (v *SourceView) GetHighlightCurrentLine() bool
GetHighlightCurrentLine is a wrapper around gtk_source_view_get_highlight_current_line().
func (*SourceView) GetIndentOnTab ¶
func (v *SourceView) GetIndentOnTab() bool
GetIndentOnTab is a wrapper around gtk_source_view_get_indent_on_tab().
func (*SourceView) GetIndentWidth ¶
func (v *SourceView) GetIndentWidth() int
GetIndentWidth is a wrapper around gtk_source_view_get_indent_width().
func (*SourceView) GetInsertSpacesInsteadOfTabs ¶
func (v *SourceView) GetInsertSpacesInsteadOfTabs() bool
GetInsertSpacesInsteadOfTabs is a wrapper around gtk_source_view_get_insert_spaces_instead_of_tabs().
func (*SourceView) GetMarkAttributes ¶
func (v *SourceView) GetMarkAttributes(category string) (*SourceMarkAttributes, int, error)
GetMarkAttributes is a wrapper around gtk_source_view_get_mark_attributes().
func (*SourceView) GetRightMarginPosition ¶
func (v *SourceView) GetRightMarginPosition() uint
GetRightMarginPosition is a wrapper around gtk_source_view_get_right_margin_position().
func (*SourceView) GetShowLineMarks ¶
func (v *SourceView) GetShowLineMarks() bool
GetShowLineMarks is a wrapper around gtk_source_view_get_show_line_marks().
func (*SourceView) GetShowLineNumbers ¶
func (v *SourceView) GetShowLineNumbers() bool
GetShowLineNumbers is a wrapper around gtk_source_view_get_show_line_numbers().
func (*SourceView) GetShowRightMargin ¶
func (v *SourceView) GetShowRightMargin() bool
GetShowRightMargin is a wrapper around gtk_source_view_get_show_right_margin().
func (*SourceView) GetSmartBackspace ¶
func (v *SourceView) GetSmartBackspace() bool
GetSmartBackspace is a wrapper around gtk_source_view_get_smart_backspace().
func (*SourceView) GetSmartHomeEnd ¶
func (v *SourceView) GetSmartHomeEnd() SourceSmartHomeEndType
GetSmartHomeEnd is a wrapper around gtk_source_view_get_smart_home_end().
func (*SourceView) GetSpaceDrawer ¶
func (v *SourceView) GetSpaceDrawer() (*SourceSpaceDrawer, error)
GetSpaceDrawer is a wrapper around gtk_source_view_get_space_drawer().
func (*SourceView) GetTabWidth ¶
func (v *SourceView) GetTabWidth() uint
GetTabWidth is a wrapper around gtk_source_view_get_tab_width().
func (*SourceView) GetVisualColumn ¶
func (v *SourceView) GetVisualColumn(iter *gtk.TextIter) uint
GetVisualColumn is a wrapper around gtk_source_view_get_visual_column().
func (*SourceView) IndentLines ¶
func (v *SourceView) IndentLines(start, end *gtk.TextIter)
IndentLines is a wrapper around gtk_source_view_indent_lines().
func (*SourceView) SetAutoIndent ¶
func (v *SourceView) SetAutoIndent(enable bool)
SetAutoIndent is a wrapper around gtk_source_view_set_auto_indent().
func (*SourceView) SetBackgroundPattern ¶
func (v *SourceView) SetBackgroundPattern(bp SourceBackgroundPatternType)
SetBackgroundPattern is a wrapper around gtk_source_view_set_background_pattern().
func (*SourceView) SetBuffer ¶
func (v *SourceView) SetBuffer(buffer *SourceBuffer)
SetBuffer overriding gtk_text_view_set_buffer() to set a GtkSourceBuffer to a GtkSourceView
func (*SourceView) SetHighlightCurrentLine ¶
func (v *SourceView) SetHighlightCurrentLine(highlight bool)
SetHighlightCurrentLine is a wrapper around gtk_source_view_set_highlight_current_line().
func (*SourceView) SetIndentOnTab ¶
func (v *SourceView) SetIndentOnTab(enable bool)
SetIndentOnTab is a wrapper around gtk_source_view_set_indent_on_tab().
func (*SourceView) SetIndentWidth ¶
func (v *SourceView) SetIndentWidth(width int)
SetIndentWidth is a wrapper around gtk_source_view_set_indent_width().
func (*SourceView) SetInsertSpacesInsteadOfTabs ¶
func (v *SourceView) SetInsertSpacesInsteadOfTabs(enable bool)
SetInsertSpacesInsteadOfTabs is a wrapper around gtk_source_view_set_insert_spaces_instead_of_tabs().
func (*SourceView) SetMarkAttributes ¶
func (v *SourceView) SetMarkAttributes(category string, attributes *SourceMarkAttributes, priority int)
SetMarkAttributes is a wrapper around gtk_source_view_set_mark_attributes().
func (*SourceView) SetRightMarginPosition ¶
func (v *SourceView) SetRightMarginPosition(pos uint)
SetRightMarginPosition is a wrapper around gtk_source_view_set_right_margin_position().
func (*SourceView) SetShowLineMarks ¶
func (v *SourceView) SetShowLineMarks(show bool)
SetShowLineMarks is a wrapper around gtk_source_view_set_show_line_marks().
func (*SourceView) SetShowLineNumbers ¶
func (v *SourceView) SetShowLineNumbers(show bool)
SetShowLineNumbers is a wrapper around gtk_source_view_set_show_line_numbers().
func (*SourceView) SetShowRightMargin ¶
func (v *SourceView) SetShowRightMargin(show bool)
SetShowRightMargin is a wrapper around gtk_source_view_set_show_right_margin().
func (*SourceView) SetSmartBackspace ¶
func (v *SourceView) SetSmartBackspace(enable bool)
SetSmartBackspace is a wrapper around gtk_source_view_set_smart_backspace().
func (*SourceView) SetSmartHomeEnd ¶
func (v *SourceView) SetSmartHomeEnd(s SourceSmartHomeEndType)
SetSmartHomeEnd is a wrapper around gtk_source_view_set_smart_home_end().
func (*SourceView) SetTabWidth ¶
func (v *SourceView) SetTabWidth(width uint)
SetTabWidth is a wrapper around gtk_source_view_set_tab_width().
func (*SourceView) ToTextView ¶
func (v *SourceView) ToTextView() *gtk.TextView
ToTextView returns a *TextView Some derived methods accept only a TextView source as pointer
func (*SourceView) UnIndentLines ¶
func (v *SourceView) UnIndentLines(start, end *gtk.TextIter)
UnIndentLines is a wrapper around gtk_source_view_unindent_lines().
type SourceViewGutterPosition ¶
type SourceViewGutterPosition int
SourceViewGutterPosition is a representation of GTK's GtkSourceViewGutterPosition.
const ( SOURCE_VIEW_GUTTER_POSITION_LINES SourceViewGutterPosition = C.GTK_SOURCE_VIEW_GUTTER_POSITION_LINES SOURCE_VIEW_GUTTER_POSITION_MARKS SourceViewGutterPosition = C.GTK_SOURCE_VIEW_GUTTER_POSITION_MARKS )
Source Files ¶
- source.go
- source_facility.go
- source_facility.gtk.go
- source_lib-4_since_3_20.go
- source_since_3_10.go
- source_since_3_12.go
- source_since_3_14.go
- source_since_3_16.go
- source_since_3_18.go
- source_since_3_20.go
- source_since_3_22.go
- source_since_3_24.go
- source_since_4_0.go
- sourceencoding_since_3_14.go
- sourcefile_since_3_14.go
- sourcefile_since_3_18.go