Documentation
¶
Index ¶
- func CodePointIsBracketCloser(ch imgui.Wchar) bool
- func CodePointIsBracketOpener(ch imgui.Wchar) bool
- func CodePointIsEastAsian(codepoint imgui.Wchar) bool
- func CodePointIsLetter(codepoint imgui.Wchar) bool
- func CodePointIsLower(codepoint imgui.Wchar) bool
- func CodePointIsMatchingBrackets(open, close imgui.Wchar) bool
- func CodePointIsMatchingPair(open, close imgui.Wchar) bool
- func CodePointIsNumber(codepoint imgui.Wchar) bool
- func CodePointIsPairCloser(ch imgui.Wchar) bool
- func CodePointIsPairOpener(ch imgui.Wchar) bool
- func CodePointIsUpper(codepoint imgui.Wchar) bool
- func CodePointIsWhiteSpace(codepoint imgui.Wchar) bool
- func CodePointIsWord(codepoint imgui.Wchar) bool
- func CodePointIsXidContinue(codepoint imgui.Wchar) bool
- func CodePointIsXidStart(codepoint imgui.Wchar) bool
- func CodePointToLower(codepoint imgui.Wchar) imgui.Wchar
- func CodePointToPairCloser(ch imgui.Wchar) imgui.Wchar
- func CodePointToPairOpener(ch imgui.Wchar) imgui.Wchar
- func CodePointToUpper(codepoint imgui.Wchar) imgui.Wchar
- func CodePointWrite(i string, codepoint imgui.Wchar) uint64
- func PaletteDestroy(noname1 *Palette)
- func PaletteSet(noname1 *Palette, noname2 uint32, noname3 int32)
- func Paletteconstget(noname1 *Palette, noname2 Color) uint32
- func SetDejavu()
- func TextEditorGetTextfree(ptr string)
- func TextEditorSetDefaultPalette(aValue *Palette)
- func TextEditorSetImGuiContext(ctx *imgui.Context)
- type AutoCompleteConfig
- type AutoCompleteState
- type BreakOption
- type Change
- type CodePoint
- type Color
- type Decorator
- func (self Decorator) C() (C.Decorator, func())
- func (self *Decorator) GlyphSize() imgui.Vec2
- func (self *Decorator) Handle() (result *C.Decorator, fin func())
- func (self *Decorator) Height() float32
- func (self *Decorator) Line() uint64
- func (self Decorator) SetGlyphSize(v imgui.Vec2)
- func (self Decorator) SetHeight(v float32)
- func (self Decorator) SetLine(v uint64)
- func (self Decorator) SetUserData(v uintptr)
- func (self Decorator) SetWidth(v float32)
- func (self *Decorator) UserData() uintptr
- func (self *Decorator) Width() float32
- type DocPos
- type DocSelection
- func (self DocSelection) C() (C.DocSelection, func())
- func (self *DocSelection) Destroy()
- func (self *DocSelection) End() DocPos
- func (self *DocSelection) Handle() (result *C.DocSelection, fin func())
- func (self DocSelection) SetEnd(v DocPos)
- func (self DocSelection) SetStart(v DocPos)
- func (self *DocSelection) Start() DocPos
- type Glyph
- func (self *Glyph) BreakOption() BreakOption
- func (self Glyph) C() (C.Glyph, func())
- func (self *Glyph) Codepoint() imgui.Wchar
- func (self *Glyph) Color() Color
- func (self *Glyph) Destroy()
- func (self *Glyph) Handle() (result *C.Glyph, fin func())
- func (self Glyph) SetBreakOption(v BreakOption)
- func (self Glyph) SetCodepoint(v imgui.Wchar)
- func (self Glyph) SetColor(v Color)
- func (self Glyph) SetSquiggle(v uint64)
- func (self *Glyph) Squiggle() uint64
- type Iterator
- type Language
- func LanguageAngelScript() *Language
- func LanguageC() *Language
- func LanguageCpp() *Language
- func LanguageCs() *Language
- func LanguageGlsl() *Language
- func LanguageHlsl() *Language
- func LanguageJson() *Language
- func LanguageLua() *Language
- func LanguageMarkdown() *Language
- func LanguagePython() *Language
- func LanguageSql() *Language
- func NewLanguageFromC[SRC any](cvalue SRC) *Language
- type LineBreakConfig
- type Notifications
- func (self *Notifications) Add(typeArg Type, message string)
- func (self *Notifications) AddV(typeArg Type, message string, dismissTime int32)
- func (self Notifications) C() (C.Notifications, func())
- func (self *Notifications) Destroy()
- func (self *Notifications) Handle() (result *C.Notifications, fin func())
- func (self *Notifications) Render(pos imgui.Vec2)
- type Palette
- type PopupData
- type Scroll
- type TextDiff
- func (self TextDiff) C() (C.TextDiff, func())
- func (self *TextDiff) Destroy()
- func (self *TextDiff) Handle() (result *C.TextDiff, fin func())
- func (self *TextDiff) IsShowScrollbarMiniMapEnabled() bool
- func (self *TextDiff) IsShowSpacesEnabled() bool
- func (self *TextDiff) IsShowTabsEnabled() bool
- func (self *TextDiff) IsShowWhitespacesEnabled() bool
- func (self *TextDiff) IsWordWrapEnabled() bool
- func (self *TextDiff) Language() *Language
- func (self *TextDiff) LineSpacing() float32
- func (self *TextDiff) Palette() *Palette
- func (self *TextDiff) Render(title string)
- func (self *TextDiff) RenderV(title string, size imgui.Vec2, childFlags imgui.ChildFlags, ...)
- func (self *TextDiff) SetColors(ac, dc uint32)
- func (self *TextDiff) SetFocus()
- func (self *TextDiff) SetLanguage(language *Language)
- func (self *TextDiff) SetLineSpacing(value float32)
- func (self *TextDiff) SetPalette(newPalette *Palette)
- func (self *TextDiff) SetShowScrollbarMiniMapEnabled(value bool)
- func (self *TextDiff) SetShowSpacesEnabled(value bool)
- func (self *TextDiff) SetShowTabsEnabled(value bool)
- func (self *TextDiff) SetShowWhitespacesEnabled(value bool)
- func (self *TextDiff) SetSideBySideMode(flag bool)
- func (self *TextDiff) SetTabSize(value uint64)
- func (self *TextDiff) SetText(left, right string)
- func (self *TextDiff) SetWordWrapEnabled(value bool)
- func (self *TextDiff) SideBySideMode() bool
- func (self *TextDiff) TabSize() uint64
- type TextEditor
- func (self *TextEditor) AddMarker(line uint64, lineNumberColor, textColor uint32, ...)
- func (self *TextEditor) AddNextOccurrence()
- func (self *TextEditor) AddSquiggle(start, end DocPos, typeArg uint64, color uint32)
- func (self *TextEditor) AddSquiggleV(start, end DocPos, typeArg uint64, color uint32, tooltip string)
- func (self *TextEditor) AllCursorsHaveSelection() bool
- func (self *TextEditor) AnyCursorHasSelection() bool
- func (self TextEditor) C() (C.TextEditor, func())
- func (self *TextEditor) CanRedo() bool
- func (self *TextEditor) CanUndo() bool
- func (self *TextEditor) ClearCursors()
- func (self *TextEditor) ClearLineDecorator()
- func (self *TextEditor) ClearLineNumberContextMenuCallback()
- func (self *TextEditor) ClearMarkers()
- func (self *TextEditor) ClearSquiggles()
- func (self *TextEditor) ClearSquigglesDocPos(start, end DocPos)
- func (self *TextEditor) ClearSquigglessizet(typeArg uint64)
- func (self *TextEditor) ClearText()
- func (self *TextEditor) ClearTextContextMenuCallback()
- func (self *TextEditor) ClearTextHoverCallback()
- func (self *TextEditor) CloseFindReplaceWindow()
- func (self *TextEditor) Copy()
- func (self *TextEditor) CurrentCursorHasSelection() bool
- func (self *TextEditor) CurrentCursorPosition() DocPos
- func (self *TextEditor) CurrentCursorSelection() DocSelection
- func (self *TextEditor) CursorPosition(cursor uint64) DocPos
- func (self *TextEditor) CursorSelection(cursor uint64) DocSelection
- func (self *TextEditor) CursorText(cursor uint64) string
- func (self *TextEditor) Cut()
- func (self *TextEditor) DecorationLeftMargin() uint64
- func (self *TextEditor) DeindentLines()
- func (self *TextEditor) Destroy()
- func (self *TextEditor) DocPos2VisPos(pos DocPos) VisPos
- func (self *TextEditor) DocPosAtMousePos(mousePos imgui.Vec2) DocPos
- func (self *TextEditor) FindAll()
- func (self *TextEditor) FindNext()
- func (self *TextEditor) FirstVisibleColumn() uint64
- func (self *TextEditor) FirstVisibleRow() uint64
- func (self *TextEditor) FoldAroundLine(line uint64)
- func (self *TextEditor) GlyphWidth() float32
- func (self *TextEditor) GrowSelections()
- func (self *TextEditor) Handle() (result *C.TextEditor, fin func())
- func (self *TextEditor) HasFindString() bool
- func (self *TextEditor) HasLanguage() bool
- func (self *TextEditor) HasLineDecorator() bool
- func (self *TextEditor) HasLineNumberContextMenuCallback() bool
- func (self *TextEditor) HasMarkers() bool
- func (self *TextEditor) HasSquiggles() bool
- func (self *TextEditor) HasTextContextMenuCallback() bool
- func (self *TextEditor) HasTextHoverCallback() bool
- func (self *TextEditor) IndentLines()
- func (self *TextEditor) IsAutoIndentEnabled() bool
- func (self *TextEditor) IsCaretsVisible() bool
- func (self *TextEditor) IsCompletingPairedGlyphs() bool
- func (self *TextEditor) IsDocPosVisible(pos DocPos) bool
- func (self *TextEditor) IsEmpty() bool
- func (self *TextEditor) IsInsertSpacesOnTabs() bool
- func (self *TextEditor) IsLineFoldable(line uint64) bool
- func (self *TextEditor) IsLineFolded(line uint64) bool
- func (self *TextEditor) IsLineFoldingEnabled() bool
- func (self *TextEditor) IsLineHidden(line uint64) bool
- func (self *TextEditor) IsLineVisible(line uint64) bool
- func (self *TextEditor) IsMiddleMousePanMode() bool
- func (self *TextEditor) IsMousePosOverGlyph(mousePos imgui.Vec2) bool
- func (self *TextEditor) IsOverwriteEnabled() bool
- func (self *TextEditor) IsReadOnlyEnabled() bool
- func (self *TextEditor) IsShowLineNumbersEnabled() bool
- func (self *TextEditor) IsShowMiniMapEnabled() bool
- func (self *TextEditor) IsShowPanScrollIndicatorEnabled() bool
- func (self *TextEditor) IsShowScrollbarMiniMapEnabled() bool
- func (self *TextEditor) IsShowSpacesEnabled() bool
- func (self *TextEditor) IsShowTabsEnabled() bool
- func (self *TextEditor) IsShowWhitespacesEnabled() bool
- func (self *TextEditor) IsShowingMatchingBrackets() bool
- func (self *TextEditor) IsVisPosOverGlyph(pos VisPos) bool
- func (self *TextEditor) IsWordWrapEnabled() bool
- func (self *TextEditor) Language() *Language
- func (self *TextEditor) LanguageName() string
- func (self *TextEditor) LastVisibleColumn() uint64
- func (self *TextEditor) LastVisibleRow() uint64
- func (self *TextEditor) LineCount() uint64
- func (self *TextEditor) LineHeight() float32
- func (self *TextEditor) LineNumberLeftMargin() uint64
- func (self *TextEditor) LineSpacing() float32
- func (self *TextEditor) LineText(line uint64) string
- func (self *TextEditor) MainCursorPosition() DocPos
- func (self *TextEditor) MainCursorSelection() DocSelection
- func (self *TextEditor) MiniMapColumns() uint64
- func (self *TextEditor) MoveDownLines()
- func (self *TextEditor) MoveUpLines()
- func (self *TextEditor) NumberOfCursors() uint64
- func (self *TextEditor) OpenFindReplaceWindow()
- func (self *TextEditor) Palette() *Palette
- func (self *TextEditor) Paste()
- func (self *TextEditor) Redo()
- func (self *TextEditor) Render(title string) bool
- func (self *TextEditor) RenderV(title string, size imgui.Vec2, childFlags imgui.ChildFlags, ...) bool
- func (self *TextEditor) ReplaceSectionTextDocPos(start, end DocPos, text string)
- func (self *TextEditor) ReplaceSectionTextDocSelection(selection DocSelection, text string)
- func (self *TextEditor) ReplaceTextInAllCursors(text string)
- func (self *TextEditor) ReplaceTextInCurrentCursor(text string)
- func (self *TextEditor) ScrollToLine(line uint64, alignment Scroll)
- func (self *TextEditor) SectionTextDocPos(start, end DocPos) string
- func (self *TextEditor) SectionTextDocSelection(selection DocSelection) string
- func (self *TextEditor) SelectAll()
- func (self *TextEditor) SelectAllOccurrences()
- func (self *TextEditor) SelectAllOccurrencesOf(text string)
- func (self *TextEditor) SelectAllOccurrencesOfV(text string, caseSensitive, wholeWord bool)
- func (self *TextEditor) SelectFirstOccurrenceOf(text string)
- func (self *TextEditor) SelectFirstOccurrenceOfV(text string, caseSensitive, wholeWord bool)
- func (self *TextEditor) SelectLine(line uint64)
- func (self *TextEditor) SelectLines(start, end uint64)
- func (self *TextEditor) SelectNextOccurrenceOf(text string)
- func (self *TextEditor) SelectNextOccurrenceOfV(text string, caseSensitive, wholeWord bool)
- func (self *TextEditor) SelectRegion(start, end DocPos)
- func (self *TextEditor) SelectToBrackets()
- func (self *TextEditor) SelectToBracketsV(includeBrackets bool)
- func (self *TextEditor) SelectionToLowerCase()
- func (self *TextEditor) SelectionToUpperCase()
- func (self *TextEditor) SetAutoCompleteConfig(autoCompleteConfig *AutoCompleteConfig)
- func (self *TextEditor) SetAutoIndentEnabled(value bool)
- func (self *TextEditor) SetCaretsVisible(value bool)
- func (self *TextEditor) SetCompletePairedGlyphs(value bool)
- func (self *TextEditor) SetCursor(pos DocPos)
- func (self *TextEditor) SetDecorationLeftMargin(value uint64)
- func (self *TextEditor) SetFindAllButtonLabel(label string)
- func (self *TextEditor) SetFindButtonLabel(label string)
- func (self *TextEditor) SetFocus()
- func (self *TextEditor) SetInsertSpacesOnTabs(value bool)
- func (self *TextEditor) SetLanguage(language *Language)
- func (self *TextEditor) SetLineBreakConfig(newConfig *LineBreakConfig)
- func (self *TextEditor) SetLineFoldingEnabled(value bool)
- func (self *TextEditor) SetLineNumberLeftMargin(value uint64)
- func (self *TextEditor) SetLineSpacing(value float32)
- func (self *TextEditor) SetMiddleMousePanMode()
- func (self *TextEditor) SetMiddleMouseScrollMode()
- func (self *TextEditor) SetMiniMapColumns(value uint64)
- func (self *TextEditor) SetOverwriteEnabled(value bool)
- func (self *TextEditor) SetPalette(newPalette *Palette)
- func (self *TextEditor) SetReadOnlyEnabled(value bool)
- func (self *TextEditor) SetReplaceAllButtonLabel(label string)
- func (self *TextEditor) SetReplaceButtonLabel(label string)
- func (self *TextEditor) SetShowLineNumbersEnabled(value bool)
- func (self *TextEditor) SetShowMatchingBrackets(value bool)
- func (self *TextEditor) SetShowMiniMapEnabled(value bool)
- func (self *TextEditor) SetShowPanScrollIndicatorEnabled(value bool)
- func (self *TextEditor) SetShowScrollbarMiniMapEnabled(value bool)
- func (self *TextEditor) SetShowSpacesEnabled(value bool)
- func (self *TextEditor) SetShowTabsEnabled(value bool)
- func (self *TextEditor) SetShowWhitespacesEnabled(value bool)
- func (self *TextEditor) SetTabSize(value uint64)
- func (self *TextEditor) SetText(text string)
- func (self *TextEditor) SetTextLeftMargin(value uint64)
- func (self *TextEditor) SetUserData(line uint64, data uintptr)
- func (self *TextEditor) SetWordWrapEnabled(value bool)
- func (self *TextEditor) ShrinkSelections()
- func (self *TextEditor) SpacesToTabs()
- func (self *TextEditor) StripTrailingWhitespaces()
- func (self *TextEditor) TabSize() uint64
- func (self *TextEditor) TabsToSpaces()
- func (self *TextEditor) Text() string
- func (self *TextEditor) TextLeftMargin() uint64
- func (self *TextEditor) Textalloc() string
- func (self *TextEditor) Textstatic() string
- func (self *TextEditor) ToggleAtLine(line uint64)
- func (self *TextEditor) ToggleComments()
- func (self *TextEditor) Undo()
- func (self *TextEditor) UndoIndex() uint64
- func (self *TextEditor) UnfoldAll()
- func (self *TextEditor) UnfoldAroundLine(line uint64)
- func (self *TextEditor) UserData(line uint64) uintptr
- func (self *TextEditor) VisPos2DocPos(pos VisPos) DocPos
- func (self *TextEditor) WordAtMousePos(mousePos imgui.Vec2) string
- type TrieAutoComplete
- func (self TrieAutoComplete) C() (C.TrieAutoComplete, func())
- func (self *TrieAutoComplete) Connect(editor *TextEditor)
- func (self *TrieAutoComplete) Destroy()
- func (self *TrieAutoComplete) Disconnect()
- func (self *TrieAutoComplete) Handle() (result *C.TrieAutoComplete, fin func())
- func (self *TrieAutoComplete) IsConnected() bool
- type Type
- type VisPos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodePointIsBracketCloser ¶ added in v1.6.0
func CodePointIsBracketOpener ¶ added in v1.6.0
func CodePointIsEastAsian ¶ added in v1.6.0
func CodePointIsLetter ¶ added in v1.6.0
func CodePointIsLower ¶ added in v1.6.0
func CodePointIsMatchingBrackets ¶ added in v1.6.0
func CodePointIsMatchingPair ¶ added in v1.6.0
func CodePointIsNumber ¶ added in v1.6.0
func CodePointIsPairCloser ¶ added in v1.6.0
func CodePointIsPairOpener ¶ added in v1.6.0
func CodePointIsUpper ¶ added in v1.6.0
func CodePointIsWhiteSpace ¶ added in v1.6.0
func CodePointIsWord ¶ added in v1.6.0
func CodePointIsXidContinue ¶ added in v1.6.0
func CodePointIsXidStart ¶ added in v1.6.0
func PaletteDestroy ¶ added in v1.6.0
func PaletteDestroy(noname1 *Palette)
func PaletteSet ¶ added in v1.6.0
func Paletteconstget ¶ added in v1.6.0
func TextEditorGetTextfree ¶ added in v1.6.0
func TextEditorGetTextfree(ptr string)
func TextEditorSetDefaultPalette ¶
func TextEditorSetDefaultPalette(aValue *Palette)
func TextEditorSetImGuiContext ¶ added in v1.6.0
Types ¶
type AutoCompleteConfig ¶ added in v1.6.0
type AutoCompleteConfig struct {
CData *C.AutoCompleteConfig
}
func NewAutoCompleteConfigFromC ¶ added in v1.6.0
func NewAutoCompleteConfigFromC[SRC any](cvalue SRC) *AutoCompleteConfig
NewAutoCompleteConfigFromC creates AutoCompleteConfig from its C pointer. SRC ~= *C.AutoCompleteConfig
func (*AutoCompleteConfig) Handle ¶ added in v1.6.0
func (self *AutoCompleteConfig) Handle() (result *C.AutoCompleteConfig, fin func())
Handle returns C version of AutoCompleteConfig and its finalizer func.
type AutoCompleteState ¶ added in v1.6.0
type AutoCompleteState struct {
CData *C.AutoCompleteState
}
func NewAutoCompleteStateFromC ¶ added in v1.6.0
func NewAutoCompleteStateFromC[SRC any](cvalue SRC) *AutoCompleteState
NewAutoCompleteStateFromC creates AutoCompleteState from its C pointer. SRC ~= *C.AutoCompleteState
func (*AutoCompleteState) Handle ¶ added in v1.6.0
func (self *AutoCompleteState) Handle() (result *C.AutoCompleteState, fin func())
Handle returns C version of AutoCompleteState and its finalizer func.
type BreakOption ¶ added in v1.6.0
type BreakOption int32
original name: BreakOption
const ( MustBreak BreakOption = 0 AllowBreak BreakOption = 1 NoBreak BreakOption = 2 Undefined BreakOption = 3 )
type Change ¶ added in v1.6.0
func NewChangeFromC ¶ added in v1.6.0
NewChangeFromC creates Change from its C pointer. SRC ~= *C.Change
type CodePoint ¶ added in v1.6.0
func NewCodePointFromC ¶ added in v1.6.0
NewCodePointFromC creates CodePoint from its C pointer. SRC ~= *C.CodePoint
func NewEmptyCodePoint ¶ added in v1.6.0
func NewEmptyCodePoint() *CodePoint
NewEmptyCodePoint creates CodePoint with its 0 value.
type Color ¶ added in v1.6.0
type Color int32
original name: Color
const ( Text Color = 0 Keyword Color = 1 Declaration Color = 2 Number Color = 3 String Color = 4 Punctuation Color = 5 Preprocessor Color = 6 Identifier Color = 7 KnownIdentifier Color = 8 Comment Color = 9 Background Color = 10 Cursor Color = 11 Selection Color = 12 Whitespace Color = 13 MatchingBracketBackground Color = 14 MatchingBracketActive Color = 15 MatchingBracketLevel1 Color = 16 MatchingBracketLevel2 Color = 17 MatchingBracketLevel3 Color = 18 MatchingBracketError Color = 19 LineNumber Color = 20 CurrentLineNumber Color = 21 Count Color = 22 )
type Decorator ¶ added in v1.6.0
func NewDecoratorFromC ¶ added in v1.6.0
NewDecoratorFromC creates Decorator from its C pointer. SRC ~= *C.Decorator
func NewEmptyDecorator ¶ added in v1.6.0
func NewEmptyDecorator() *Decorator
NewEmptyDecorator creates Decorator with its 0 value.
func (*Decorator) Handle ¶ added in v1.6.0
Handle returns C version of Decorator and its finalizer func.
func (Decorator) SetGlyphSize ¶ added in v1.6.0
func (Decorator) SetUserData ¶ added in v1.6.0
type DocPos ¶ added in v1.6.0
func NewDocPosFromC ¶ added in v1.6.0
NewDocPosFromC creates DocPos from its C pointer. SRC ~= *C.DocPos
func NewDocPosNil ¶ added in v1.6.0
func NewDocPosNil() *DocPos
func NewDocPossizet ¶ added in v1.6.0
func NewEmptyDocPos ¶ added in v1.6.0
func NewEmptyDocPos() *DocPos
NewEmptyDocPos creates DocPos with its 0 value.
type DocSelection ¶ added in v1.6.0
type DocSelection struct {
CData *C.DocSelection
}
func NewDocSelectionDocPos ¶ added in v1.6.0
func NewDocSelectionDocPos(start, end DocPos) *DocSelection
func NewDocSelectionFromC ¶ added in v1.6.0
func NewDocSelectionFromC[SRC any](cvalue SRC) *DocSelection
NewDocSelectionFromC creates DocSelection from its C pointer. SRC ~= *C.DocSelection
func NewDocSelectionNil ¶ added in v1.6.0
func NewDocSelectionNil() *DocSelection
func NewEmptyDocSelection ¶ added in v1.6.0
func NewEmptyDocSelection() *DocSelection
NewEmptyDocSelection creates DocSelection with its 0 value.
func (DocSelection) C ¶ added in v1.6.0
func (self DocSelection) C() (C.DocSelection, func())
C is like Handle but returns plain type instead of pointer.
func (*DocSelection) Destroy ¶ added in v1.6.0
func (self *DocSelection) Destroy()
func (*DocSelection) End ¶ added in v1.6.0
func (self *DocSelection) End() DocPos
func (*DocSelection) Handle ¶ added in v1.6.0
func (self *DocSelection) Handle() (result *C.DocSelection, fin func())
Handle returns C version of DocSelection and its finalizer func.
func (DocSelection) SetEnd ¶ added in v1.6.0
func (self DocSelection) SetEnd(v DocPos)
func (DocSelection) SetStart ¶ added in v1.6.0
func (self DocSelection) SetStart(v DocPos)
func (*DocSelection) Start ¶ added in v1.6.0
func (self *DocSelection) Start() DocPos
type Glyph ¶ added in v1.6.0
func NewEmptyGlyph ¶ added in v1.6.0
func NewEmptyGlyph() *Glyph
NewEmptyGlyph creates Glyph with its 0 value.
func NewGlyphFromC ¶ added in v1.6.0
NewGlyphFromC creates Glyph from its C pointer. SRC ~= *C.Glyph
func NewGlyphNil ¶ added in v1.6.0
func NewGlyphNil() *Glyph
func NewGlyphWchar ¶ added in v1.6.0
func (*Glyph) BreakOption ¶ added in v1.6.0
func (self *Glyph) BreakOption() BreakOption
func (Glyph) SetBreakOption ¶ added in v1.6.0
func (self Glyph) SetBreakOption(v BreakOption)
func (Glyph) SetCodepoint ¶ added in v1.6.0
func (Glyph) SetSquiggle ¶ added in v1.6.0
type Iterator ¶ added in v1.6.0
func NewIteratorFromC ¶ added in v1.6.0
NewIteratorFromC creates Iterator from its C pointer. SRC ~= *C.Iterator
func NewIteratorGlyphPtr ¶ added in v1.6.0
func NewIteratorNil ¶ added in v1.6.0
func NewIteratorNil() *Iterator
type Language ¶ added in v1.6.0
func LanguageAngelScript ¶ added in v1.6.0
func LanguageAngelScript() *Language
func LanguageCpp ¶ added in v1.6.0
func LanguageCpp() *Language
func LanguageCs ¶ added in v1.6.0
func LanguageCs() *Language
func LanguageGlsl ¶ added in v1.6.0
func LanguageGlsl() *Language
func LanguageHlsl ¶ added in v1.6.0
func LanguageHlsl() *Language
func LanguageJson ¶ added in v1.6.0
func LanguageJson() *Language
func LanguageLua ¶ added in v1.6.0
func LanguageLua() *Language
func LanguageMarkdown ¶ added in v1.6.0
func LanguageMarkdown() *Language
func LanguagePython ¶ added in v1.6.0
func LanguagePython() *Language
func LanguageSql ¶ added in v1.6.0
func LanguageSql() *Language
func NewLanguageFromC ¶ added in v1.6.0
NewLanguageFromC creates Language from its C pointer. SRC ~= *C.Language
type LineBreakConfig ¶ added in v1.6.0
type LineBreakConfig struct {
CData *C.LineBreakConfig
}
func NewLineBreakConfigFromC ¶ added in v1.6.0
func NewLineBreakConfigFromC[SRC any](cvalue SRC) *LineBreakConfig
NewLineBreakConfigFromC creates LineBreakConfig from its C pointer. SRC ~= *C.LineBreakConfig
func (*LineBreakConfig) Handle ¶ added in v1.6.0
func (self *LineBreakConfig) Handle() (result *C.LineBreakConfig, fin func())
Handle returns C version of LineBreakConfig and its finalizer func.
type Notifications ¶ added in v1.6.0
type Notifications struct {
CData *C.Notifications
}
func NewEmptyNotifications ¶ added in v1.6.0
func NewEmptyNotifications() *Notifications
NewEmptyNotifications creates Notifications with its 0 value.
func NewNotifications ¶ added in v1.6.0
func NewNotifications() *Notifications
func NewNotificationsFromC ¶ added in v1.6.0
func NewNotificationsFromC[SRC any](cvalue SRC) *Notifications
NewNotificationsFromC creates Notifications from its C pointer. SRC ~= *C.Notifications
func (*Notifications) Add ¶ added in v1.6.0
func (self *Notifications) Add(typeArg Type, message string)
func (*Notifications) AddV ¶ added in v1.6.0
func (self *Notifications) AddV(typeArg Type, message string, dismissTime int32)
AddV parameter default value hint: dismissTime: 4000
func (Notifications) C ¶ added in v1.6.0
func (self Notifications) C() (C.Notifications, func())
C is like Handle but returns plain type instead of pointer.
func (*Notifications) Destroy ¶ added in v1.6.0
func (self *Notifications) Destroy()
func (*Notifications) Handle ¶ added in v1.6.0
func (self *Notifications) Handle() (result *C.Notifications, fin func())
Handle returns C version of Notifications and its finalizer func.
func (*Notifications) Render ¶ added in v1.6.0
func (self *Notifications) Render(pos imgui.Vec2)
type Palette ¶ added in v1.6.0
func NewPaletteFromC ¶ added in v1.6.0
NewPaletteFromC creates Palette from its C pointer. SRC ~= *C.Palette
func PalettePalette ¶ added in v1.6.0
func PalettePalette() *Palette
func TextEditorGetDarkPalette ¶ added in v1.6.0
func TextEditorGetDarkPalette() *Palette
func TextEditorGetDefaultPalette ¶
func TextEditorGetDefaultPalette() *Palette
func TextEditorGetLightPalette ¶ added in v1.6.0
func TextEditorGetLightPalette() *Palette
type PopupData ¶ added in v1.6.0
func NewEmptyPopupData ¶ added in v1.6.0
func NewEmptyPopupData() *PopupData
NewEmptyPopupData creates PopupData with its 0 value.
func NewPopupDataFromC ¶ added in v1.6.0
NewPopupDataFromC creates PopupData from its C pointer. SRC ~= *C.PopupData
func (*PopupData) Handle ¶ added in v1.6.0
Handle returns C version of PopupData and its finalizer func.
func (PopupData) SetUserData ¶ added in v1.6.0
type TextDiff ¶ added in v1.6.0
func NewEmptyTextDiff ¶ added in v1.6.0
func NewEmptyTextDiff() *TextDiff
NewEmptyTextDiff creates TextDiff with its 0 value.
func NewTextDiff ¶ added in v1.6.0
func NewTextDiff() *TextDiff
func NewTextDiffFromC ¶ added in v1.6.0
NewTextDiffFromC creates TextDiff from its C pointer. SRC ~= *C.TextDiff
func (*TextDiff) Handle ¶ added in v1.6.0
Handle returns C version of TextDiff and its finalizer func.
func (*TextDiff) IsShowScrollbarMiniMapEnabled ¶ added in v1.6.0
func (*TextDiff) IsShowSpacesEnabled ¶ added in v1.6.0
func (*TextDiff) IsShowTabsEnabled ¶ added in v1.6.0
func (*TextDiff) IsShowWhitespacesEnabled ¶ added in v1.6.0
func (*TextDiff) IsWordWrapEnabled ¶ added in v1.6.0
func (*TextDiff) LineSpacing ¶ added in v1.6.0
func (*TextDiff) RenderV ¶ added in v1.6.0
func (self *TextDiff) RenderV(title string, size imgui.Vec2, childFlags imgui.ChildFlags, windowFlags imgui.WindowFlags)
RenderV parameter default value hint: size: ImVec2() childFlags: 0 windowFlags: ImGuiWindowFlags_NoMove
func (*TextDiff) SetLanguage ¶ added in v1.6.0
func (*TextDiff) SetLineSpacing ¶ added in v1.6.0
func (*TextDiff) SetPalette ¶ added in v1.6.0
func (*TextDiff) SetShowScrollbarMiniMapEnabled ¶ added in v1.6.0
func (*TextDiff) SetShowSpacesEnabled ¶ added in v1.6.0
func (*TextDiff) SetShowTabsEnabled ¶ added in v1.6.0
func (*TextDiff) SetShowWhitespacesEnabled ¶ added in v1.6.0
func (*TextDiff) SetSideBySideMode ¶ added in v1.6.0
func (*TextDiff) SetTabSize ¶ added in v1.6.0
func (*TextDiff) SetWordWrapEnabled ¶ added in v1.6.0
func (*TextDiff) SideBySideMode ¶ added in v1.6.0
type TextEditor ¶
type TextEditor struct {
CData *C.TextEditor
}
func NewEmptyTextEditor ¶
func NewEmptyTextEditor() *TextEditor
NewEmptyTextEditor creates TextEditor with its 0 value.
func NewTextEditor ¶
func NewTextEditor() *TextEditor
func NewTextEditorFromC ¶
func NewTextEditorFromC[SRC any](cvalue SRC) *TextEditor
NewTextEditorFromC creates TextEditor from its C pointer. SRC ~= *C.TextEditor
func (*TextEditor) AddMarker ¶ added in v1.6.0
func (self *TextEditor) AddMarker(line uint64, lineNumberColor, textColor uint32, lineNumberTooltip, textTooltip string)
func (*TextEditor) AddNextOccurrence ¶ added in v1.6.0
func (self *TextEditor) AddNextOccurrence()
func (*TextEditor) AddSquiggle ¶ added in v1.6.0
func (self *TextEditor) AddSquiggle(start, end DocPos, typeArg uint64, color uint32)
func (*TextEditor) AddSquiggleV ¶ added in v1.6.0
func (self *TextEditor) AddSquiggleV(start, end DocPos, typeArg uint64, color uint32, tooltip string)
AddSquiggleV parameter default value hint: tooltip: std::string_view()
func (*TextEditor) AllCursorsHaveSelection ¶
func (self *TextEditor) AllCursorsHaveSelection() bool
func (*TextEditor) AnyCursorHasSelection ¶
func (self *TextEditor) AnyCursorHasSelection() bool
func (TextEditor) C ¶
func (self TextEditor) C() (C.TextEditor, func())
C is like Handle but returns plain type instead of pointer.
func (*TextEditor) CanRedo ¶
func (self *TextEditor) CanRedo() bool
func (*TextEditor) CanUndo ¶
func (self *TextEditor) CanUndo() bool
func (*TextEditor) ClearCursors ¶ added in v1.6.0
func (self *TextEditor) ClearCursors()
func (*TextEditor) ClearLineDecorator ¶ added in v1.6.0
func (self *TextEditor) ClearLineDecorator()
func (*TextEditor) ClearLineNumberContextMenuCallback ¶ added in v1.6.0
func (self *TextEditor) ClearLineNumberContextMenuCallback()
func (*TextEditor) ClearMarkers ¶ added in v1.6.0
func (self *TextEditor) ClearMarkers()
func (*TextEditor) ClearSquiggles ¶ added in v1.6.0
func (self *TextEditor) ClearSquiggles()
func (*TextEditor) ClearSquigglesDocPos ¶ added in v1.6.0
func (self *TextEditor) ClearSquigglesDocPos(start, end DocPos)
func (*TextEditor) ClearSquigglessizet ¶ added in v1.6.0
func (self *TextEditor) ClearSquigglessizet(typeArg uint64)
func (*TextEditor) ClearText ¶ added in v1.6.0
func (self *TextEditor) ClearText()
func (*TextEditor) ClearTextContextMenuCallback ¶ added in v1.6.0
func (self *TextEditor) ClearTextContextMenuCallback()
func (*TextEditor) ClearTextHoverCallback ¶ added in v1.6.0
func (self *TextEditor) ClearTextHoverCallback()
func (*TextEditor) CloseFindReplaceWindow ¶ added in v1.6.0
func (self *TextEditor) CloseFindReplaceWindow()
func (*TextEditor) Copy ¶
func (self *TextEditor) Copy()
func (*TextEditor) CurrentCursorHasSelection ¶ added in v1.6.0
func (self *TextEditor) CurrentCursorHasSelection() bool
func (*TextEditor) CurrentCursorPosition ¶ added in v1.6.0
func (self *TextEditor) CurrentCursorPosition() DocPos
func (*TextEditor) CurrentCursorSelection ¶ added in v1.6.0
func (self *TextEditor) CurrentCursorSelection() DocSelection
func (*TextEditor) CursorPosition ¶
func (self *TextEditor) CursorPosition(cursor uint64) DocPos
func (*TextEditor) CursorSelection ¶ added in v1.6.0
func (self *TextEditor) CursorSelection(cursor uint64) DocSelection
func (*TextEditor) CursorText ¶ added in v1.6.0
func (self *TextEditor) CursorText(cursor uint64) string
func (*TextEditor) Cut ¶
func (self *TextEditor) Cut()
func (*TextEditor) DecorationLeftMargin ¶ added in v1.6.0
func (self *TextEditor) DecorationLeftMargin() uint64
func (*TextEditor) DeindentLines ¶ added in v1.6.0
func (self *TextEditor) DeindentLines()
func (*TextEditor) Destroy ¶
func (self *TextEditor) Destroy()
func (*TextEditor) DocPos2VisPos ¶ added in v1.6.0
func (self *TextEditor) DocPos2VisPos(pos DocPos) VisPos
func (*TextEditor) DocPosAtMousePos ¶ added in v1.6.0
func (self *TextEditor) DocPosAtMousePos(mousePos imgui.Vec2) DocPos
func (*TextEditor) FindAll ¶ added in v1.6.0
func (self *TextEditor) FindAll()
func (*TextEditor) FindNext ¶ added in v1.6.0
func (self *TextEditor) FindNext()
func (*TextEditor) FirstVisibleColumn ¶ added in v1.6.0
func (self *TextEditor) FirstVisibleColumn() uint64
func (*TextEditor) FirstVisibleRow ¶ added in v1.6.0
func (self *TextEditor) FirstVisibleRow() uint64
func (*TextEditor) FoldAroundLine ¶ added in v1.6.0
func (self *TextEditor) FoldAroundLine(line uint64)
func (*TextEditor) GlyphWidth ¶ added in v1.6.0
func (self *TextEditor) GlyphWidth() float32
func (*TextEditor) GrowSelections ¶ added in v1.6.0
func (self *TextEditor) GrowSelections()
func (*TextEditor) Handle ¶
func (self *TextEditor) Handle() (result *C.TextEditor, fin func())
Handle returns C version of TextEditor and its finalizer func.
func (*TextEditor) HasFindString ¶ added in v1.6.0
func (self *TextEditor) HasFindString() bool
func (*TextEditor) HasLanguage ¶ added in v1.6.0
func (self *TextEditor) HasLanguage() bool
func (*TextEditor) HasLineDecorator ¶ added in v1.6.0
func (self *TextEditor) HasLineDecorator() bool
func (*TextEditor) HasLineNumberContextMenuCallback ¶ added in v1.6.0
func (self *TextEditor) HasLineNumberContextMenuCallback() bool
func (*TextEditor) HasMarkers ¶ added in v1.6.0
func (self *TextEditor) HasMarkers() bool
func (*TextEditor) HasSquiggles ¶ added in v1.6.0
func (self *TextEditor) HasSquiggles() bool
func (*TextEditor) HasTextContextMenuCallback ¶ added in v1.6.0
func (self *TextEditor) HasTextContextMenuCallback() bool
func (*TextEditor) HasTextHoverCallback ¶ added in v1.6.0
func (self *TextEditor) HasTextHoverCallback() bool
func (*TextEditor) IndentLines ¶ added in v1.6.0
func (self *TextEditor) IndentLines()
func (*TextEditor) IsAutoIndentEnabled ¶
func (self *TextEditor) IsAutoIndentEnabled() bool
func (*TextEditor) IsCaretsVisible ¶ added in v1.6.0
func (self *TextEditor) IsCaretsVisible() bool
func (*TextEditor) IsCompletingPairedGlyphs ¶ added in v1.6.0
func (self *TextEditor) IsCompletingPairedGlyphs() bool
func (*TextEditor) IsDocPosVisible ¶ added in v1.6.0
func (self *TextEditor) IsDocPosVisible(pos DocPos) bool
func (*TextEditor) IsEmpty ¶ added in v1.6.0
func (self *TextEditor) IsEmpty() bool
func (*TextEditor) IsInsertSpacesOnTabs ¶ added in v1.6.0
func (self *TextEditor) IsInsertSpacesOnTabs() bool
func (*TextEditor) IsLineFoldable ¶ added in v1.6.0
func (self *TextEditor) IsLineFoldable(line uint64) bool
func (*TextEditor) IsLineFolded ¶ added in v1.6.0
func (self *TextEditor) IsLineFolded(line uint64) bool
func (*TextEditor) IsLineFoldingEnabled ¶ added in v1.6.0
func (self *TextEditor) IsLineFoldingEnabled() bool
func (*TextEditor) IsLineHidden ¶ added in v1.6.0
func (self *TextEditor) IsLineHidden(line uint64) bool
func (*TextEditor) IsLineVisible ¶ added in v1.6.0
func (self *TextEditor) IsLineVisible(line uint64) bool
func (*TextEditor) IsMiddleMousePanMode ¶ added in v1.6.0
func (self *TextEditor) IsMiddleMousePanMode() bool
func (*TextEditor) IsMousePosOverGlyph ¶ added in v1.6.0
func (self *TextEditor) IsMousePosOverGlyph(mousePos imgui.Vec2) bool
func (*TextEditor) IsOverwriteEnabled ¶
func (self *TextEditor) IsOverwriteEnabled() bool
func (*TextEditor) IsReadOnlyEnabled ¶
func (self *TextEditor) IsReadOnlyEnabled() bool
func (*TextEditor) IsShowLineNumbersEnabled ¶
func (self *TextEditor) IsShowLineNumbersEnabled() bool
func (*TextEditor) IsShowMiniMapEnabled ¶ added in v1.6.0
func (self *TextEditor) IsShowMiniMapEnabled() bool
func (*TextEditor) IsShowPanScrollIndicatorEnabled ¶ added in v1.6.0
func (self *TextEditor) IsShowPanScrollIndicatorEnabled() bool
func (*TextEditor) IsShowScrollbarMiniMapEnabled ¶ added in v1.6.0
func (self *TextEditor) IsShowScrollbarMiniMapEnabled() bool
func (*TextEditor) IsShowSpacesEnabled ¶ added in v1.6.0
func (self *TextEditor) IsShowSpacesEnabled() bool
func (*TextEditor) IsShowTabsEnabled ¶ added in v1.6.0
func (self *TextEditor) IsShowTabsEnabled() bool
func (*TextEditor) IsShowWhitespacesEnabled ¶
func (self *TextEditor) IsShowWhitespacesEnabled() bool
func (*TextEditor) IsShowingMatchingBrackets ¶ added in v1.6.0
func (self *TextEditor) IsShowingMatchingBrackets() bool
func (*TextEditor) IsVisPosOverGlyph ¶ added in v1.6.0
func (self *TextEditor) IsVisPosOverGlyph(pos VisPos) bool
func (*TextEditor) IsWordWrapEnabled ¶ added in v1.6.0
func (self *TextEditor) IsWordWrapEnabled() bool
func (*TextEditor) Language ¶ added in v1.6.0
func (self *TextEditor) Language() *Language
func (*TextEditor) LanguageName ¶ added in v1.6.0
func (self *TextEditor) LanguageName() string
func (*TextEditor) LastVisibleColumn ¶ added in v1.6.0
func (self *TextEditor) LastVisibleColumn() uint64
func (*TextEditor) LastVisibleRow ¶ added in v1.6.0
func (self *TextEditor) LastVisibleRow() uint64
func (*TextEditor) LineCount ¶
func (self *TextEditor) LineCount() uint64
func (*TextEditor) LineHeight ¶ added in v1.6.0
func (self *TextEditor) LineHeight() float32
func (*TextEditor) LineNumberLeftMargin ¶ added in v1.6.0
func (self *TextEditor) LineNumberLeftMargin() uint64
func (*TextEditor) LineSpacing ¶
func (self *TextEditor) LineSpacing() float32
func (*TextEditor) LineText ¶ added in v1.6.0
func (self *TextEditor) LineText(line uint64) string
func (*TextEditor) MainCursorPosition ¶ added in v1.6.0
func (self *TextEditor) MainCursorPosition() DocPos
func (*TextEditor) MainCursorSelection ¶ added in v1.6.0
func (self *TextEditor) MainCursorSelection() DocSelection
func (*TextEditor) MiniMapColumns ¶ added in v1.6.0
func (self *TextEditor) MiniMapColumns() uint64
func (*TextEditor) MoveDownLines ¶ added in v1.6.0
func (self *TextEditor) MoveDownLines()
func (*TextEditor) MoveUpLines ¶ added in v1.6.0
func (self *TextEditor) MoveUpLines()
func (*TextEditor) NumberOfCursors ¶ added in v1.6.0
func (self *TextEditor) NumberOfCursors() uint64
func (*TextEditor) OpenFindReplaceWindow ¶ added in v1.6.0
func (self *TextEditor) OpenFindReplaceWindow()
func (*TextEditor) Palette ¶
func (self *TextEditor) Palette() *Palette
func (*TextEditor) Paste ¶
func (self *TextEditor) Paste()
func (*TextEditor) Redo ¶
func (self *TextEditor) Redo()
func (*TextEditor) Render ¶
func (self *TextEditor) Render(title string) bool
func (*TextEditor) RenderV ¶
func (self *TextEditor) RenderV(title string, size imgui.Vec2, childFlags imgui.ChildFlags, windowFlags imgui.WindowFlags) bool
RenderV parameter default value hint: size: ImVec2() childFlags: 0 windowFlags: ImGuiWindowFlags_NoMove | ImGuiWindowFlags_HorizontalScrollbar
func (*TextEditor) ReplaceSectionTextDocPos ¶ added in v1.6.0
func (self *TextEditor) ReplaceSectionTextDocPos(start, end DocPos, text string)
func (*TextEditor) ReplaceSectionTextDocSelection ¶ added in v1.6.0
func (self *TextEditor) ReplaceSectionTextDocSelection(selection DocSelection, text string)
func (*TextEditor) ReplaceTextInAllCursors ¶ added in v1.6.0
func (self *TextEditor) ReplaceTextInAllCursors(text string)
func (*TextEditor) ReplaceTextInCurrentCursor ¶ added in v1.6.0
func (self *TextEditor) ReplaceTextInCurrentCursor(text string)
func (*TextEditor) ScrollToLine ¶ added in v1.6.0
func (self *TextEditor) ScrollToLine(line uint64, alignment Scroll)
func (*TextEditor) SectionTextDocPos ¶ added in v1.6.0
func (self *TextEditor) SectionTextDocPos(start, end DocPos) string
func (*TextEditor) SectionTextDocSelection ¶ added in v1.6.0
func (self *TextEditor) SectionTextDocSelection(selection DocSelection) string
func (*TextEditor) SelectAll ¶
func (self *TextEditor) SelectAll()
func (*TextEditor) SelectAllOccurrences ¶ added in v1.6.0
func (self *TextEditor) SelectAllOccurrences()
func (*TextEditor) SelectAllOccurrencesOf ¶
func (self *TextEditor) SelectAllOccurrencesOf(text string)
func (*TextEditor) SelectAllOccurrencesOfV ¶
func (self *TextEditor) SelectAllOccurrencesOfV(text string, caseSensitive, wholeWord bool)
SelectAllOccurrencesOfV parameter default value hint: caseSensitive: true wholeWord: false
func (*TextEditor) SelectFirstOccurrenceOf ¶ added in v1.6.0
func (self *TextEditor) SelectFirstOccurrenceOf(text string)
func (*TextEditor) SelectFirstOccurrenceOfV ¶ added in v1.6.0
func (self *TextEditor) SelectFirstOccurrenceOfV(text string, caseSensitive, wholeWord bool)
SelectFirstOccurrenceOfV parameter default value hint: caseSensitive: true wholeWord: false
func (*TextEditor) SelectLine ¶
func (self *TextEditor) SelectLine(line uint64)
func (*TextEditor) SelectLines ¶ added in v1.6.0
func (self *TextEditor) SelectLines(start, end uint64)
func (*TextEditor) SelectNextOccurrenceOf ¶
func (self *TextEditor) SelectNextOccurrenceOf(text string)
func (*TextEditor) SelectNextOccurrenceOfV ¶
func (self *TextEditor) SelectNextOccurrenceOfV(text string, caseSensitive, wholeWord bool)
SelectNextOccurrenceOfV parameter default value hint: caseSensitive: true wholeWord: false
func (*TextEditor) SelectRegion ¶
func (self *TextEditor) SelectRegion(start, end DocPos)
func (*TextEditor) SelectToBrackets ¶ added in v1.6.0
func (self *TextEditor) SelectToBrackets()
func (*TextEditor) SelectToBracketsV ¶ added in v1.6.0
func (self *TextEditor) SelectToBracketsV(includeBrackets bool)
SelectToBracketsV parameter default value hint: includeBrackets: true
func (*TextEditor) SelectionToLowerCase ¶ added in v1.6.0
func (self *TextEditor) SelectionToLowerCase()
func (*TextEditor) SelectionToUpperCase ¶ added in v1.6.0
func (self *TextEditor) SelectionToUpperCase()
func (*TextEditor) SetAutoCompleteConfig ¶ added in v1.6.0
func (self *TextEditor) SetAutoCompleteConfig(autoCompleteConfig *AutoCompleteConfig)
func (*TextEditor) SetAutoIndentEnabled ¶
func (self *TextEditor) SetAutoIndentEnabled(value bool)
func (*TextEditor) SetCaretsVisible ¶ added in v1.6.0
func (self *TextEditor) SetCaretsVisible(value bool)
func (*TextEditor) SetCompletePairedGlyphs ¶ added in v1.6.0
func (self *TextEditor) SetCompletePairedGlyphs(value bool)
func (*TextEditor) SetCursor ¶ added in v1.6.0
func (self *TextEditor) SetCursor(pos DocPos)
func (*TextEditor) SetDecorationLeftMargin ¶ added in v1.6.0
func (self *TextEditor) SetDecorationLeftMargin(value uint64)
func (*TextEditor) SetFindAllButtonLabel ¶ added in v1.6.0
func (self *TextEditor) SetFindAllButtonLabel(label string)
func (*TextEditor) SetFindButtonLabel ¶ added in v1.6.0
func (self *TextEditor) SetFindButtonLabel(label string)
func (*TextEditor) SetFocus ¶ added in v1.6.0
func (self *TextEditor) SetFocus()
func (*TextEditor) SetInsertSpacesOnTabs ¶ added in v1.6.0
func (self *TextEditor) SetInsertSpacesOnTabs(value bool)
func (*TextEditor) SetLanguage ¶ added in v1.6.0
func (self *TextEditor) SetLanguage(language *Language)
func (*TextEditor) SetLineBreakConfig ¶ added in v1.6.0
func (self *TextEditor) SetLineBreakConfig(newConfig *LineBreakConfig)
func (*TextEditor) SetLineFoldingEnabled ¶ added in v1.6.0
func (self *TextEditor) SetLineFoldingEnabled(value bool)
func (*TextEditor) SetLineNumberLeftMargin ¶ added in v1.6.0
func (self *TextEditor) SetLineNumberLeftMargin(value uint64)
func (*TextEditor) SetLineSpacing ¶
func (self *TextEditor) SetLineSpacing(value float32)
func (*TextEditor) SetMiddleMousePanMode ¶ added in v1.6.0
func (self *TextEditor) SetMiddleMousePanMode()
func (*TextEditor) SetMiddleMouseScrollMode ¶ added in v1.6.0
func (self *TextEditor) SetMiddleMouseScrollMode()
func (*TextEditor) SetMiniMapColumns ¶ added in v1.6.0
func (self *TextEditor) SetMiniMapColumns(value uint64)
func (*TextEditor) SetOverwriteEnabled ¶ added in v1.6.0
func (self *TextEditor) SetOverwriteEnabled(value bool)
func (*TextEditor) SetPalette ¶
func (self *TextEditor) SetPalette(newPalette *Palette)
func (*TextEditor) SetReadOnlyEnabled ¶
func (self *TextEditor) SetReadOnlyEnabled(value bool)
func (*TextEditor) SetReplaceAllButtonLabel ¶ added in v1.6.0
func (self *TextEditor) SetReplaceAllButtonLabel(label string)
func (*TextEditor) SetReplaceButtonLabel ¶ added in v1.6.0
func (self *TextEditor) SetReplaceButtonLabel(label string)
func (*TextEditor) SetShowLineNumbersEnabled ¶
func (self *TextEditor) SetShowLineNumbersEnabled(value bool)
func (*TextEditor) SetShowMatchingBrackets ¶ added in v1.6.0
func (self *TextEditor) SetShowMatchingBrackets(value bool)
func (*TextEditor) SetShowMiniMapEnabled ¶ added in v1.6.0
func (self *TextEditor) SetShowMiniMapEnabled(value bool)
func (*TextEditor) SetShowPanScrollIndicatorEnabled ¶ added in v1.6.0
func (self *TextEditor) SetShowPanScrollIndicatorEnabled(value bool)
func (*TextEditor) SetShowScrollbarMiniMapEnabled ¶ added in v1.6.0
func (self *TextEditor) SetShowScrollbarMiniMapEnabled(value bool)
func (*TextEditor) SetShowSpacesEnabled ¶ added in v1.6.0
func (self *TextEditor) SetShowSpacesEnabled(value bool)
func (*TextEditor) SetShowTabsEnabled ¶ added in v1.6.0
func (self *TextEditor) SetShowTabsEnabled(value bool)
func (*TextEditor) SetShowWhitespacesEnabled ¶
func (self *TextEditor) SetShowWhitespacesEnabled(value bool)
func (*TextEditor) SetTabSize ¶
func (self *TextEditor) SetTabSize(value uint64)
func (*TextEditor) SetText ¶
func (self *TextEditor) SetText(text string)
func (*TextEditor) SetTextLeftMargin ¶ added in v1.6.0
func (self *TextEditor) SetTextLeftMargin(value uint64)
func (*TextEditor) SetUserData ¶ added in v1.6.0
func (self *TextEditor) SetUserData(line uint64, data uintptr)
func (*TextEditor) SetWordWrapEnabled ¶ added in v1.6.0
func (self *TextEditor) SetWordWrapEnabled(value bool)
func (*TextEditor) ShrinkSelections ¶ added in v1.6.0
func (self *TextEditor) ShrinkSelections()
func (*TextEditor) SpacesToTabs ¶ added in v1.6.0
func (self *TextEditor) SpacesToTabs()
func (*TextEditor) StripTrailingWhitespaces ¶ added in v1.6.0
func (self *TextEditor) StripTrailingWhitespaces()
func (*TextEditor) TabSize ¶
func (self *TextEditor) TabSize() uint64
func (*TextEditor) TabsToSpaces ¶ added in v1.6.0
func (self *TextEditor) TabsToSpaces()
func (*TextEditor) Text ¶
func (self *TextEditor) Text() string
func (*TextEditor) TextLeftMargin ¶ added in v1.6.0
func (self *TextEditor) TextLeftMargin() uint64
func (*TextEditor) Textalloc ¶ added in v1.6.0
func (self *TextEditor) Textalloc() string
func (*TextEditor) Textstatic ¶ added in v1.6.0
func (self *TextEditor) Textstatic() string
func (*TextEditor) ToggleAtLine ¶ added in v1.6.0
func (self *TextEditor) ToggleAtLine(line uint64)
func (*TextEditor) ToggleComments ¶ added in v1.6.0
func (self *TextEditor) ToggleComments()
func (*TextEditor) Undo ¶
func (self *TextEditor) Undo()
func (*TextEditor) UndoIndex ¶
func (self *TextEditor) UndoIndex() uint64
func (*TextEditor) UnfoldAll ¶ added in v1.6.0
func (self *TextEditor) UnfoldAll()
func (*TextEditor) UnfoldAroundLine ¶ added in v1.6.0
func (self *TextEditor) UnfoldAroundLine(line uint64)
func (*TextEditor) UserData ¶ added in v1.6.0
func (self *TextEditor) UserData(line uint64) uintptr
func (*TextEditor) VisPos2DocPos ¶ added in v1.6.0
func (self *TextEditor) VisPos2DocPos(pos VisPos) DocPos
func (*TextEditor) WordAtMousePos ¶ added in v1.6.0
func (self *TextEditor) WordAtMousePos(mousePos imgui.Vec2) string
type TrieAutoComplete ¶ added in v1.6.0
type TrieAutoComplete struct {
CData *C.TrieAutoComplete
}
func NewEmptyTrieAutoComplete ¶ added in v1.6.0
func NewEmptyTrieAutoComplete() *TrieAutoComplete
NewEmptyTrieAutoComplete creates TrieAutoComplete with its 0 value.
func NewTrieAutoComplete ¶ added in v1.6.0
func NewTrieAutoComplete() *TrieAutoComplete
func NewTrieAutoCompleteFromC ¶ added in v1.6.0
func NewTrieAutoCompleteFromC[SRC any](cvalue SRC) *TrieAutoComplete
NewTrieAutoCompleteFromC creates TrieAutoComplete from its C pointer. SRC ~= *C.TrieAutoComplete
func (TrieAutoComplete) C ¶ added in v1.6.0
func (self TrieAutoComplete) C() (C.TrieAutoComplete, func())
C is like Handle but returns plain type instead of pointer.
func (*TrieAutoComplete) Connect ¶ added in v1.6.0
func (self *TrieAutoComplete) Connect(editor *TextEditor)
func (*TrieAutoComplete) Destroy ¶ added in v1.6.0
func (self *TrieAutoComplete) Destroy()
func (*TrieAutoComplete) Disconnect ¶ added in v1.6.0
func (self *TrieAutoComplete) Disconnect()
func (*TrieAutoComplete) Handle ¶ added in v1.6.0
func (self *TrieAutoComplete) Handle() (result *C.TrieAutoComplete, fin func())
Handle returns C version of TrieAutoComplete and its finalizer func.
func (*TrieAutoComplete) IsConnected ¶ added in v1.6.0
func (self *TrieAutoComplete) IsConnected() bool
type VisPos ¶ added in v1.6.0
func NewEmptyVisPos ¶ added in v1.6.0
func NewEmptyVisPos() *VisPos
NewEmptyVisPos creates VisPos with its 0 value.
func NewVisPosFromC ¶ added in v1.6.0
NewVisPosFromC creates VisPos from its C pointer. SRC ~= *C.VisPos
func NewVisPosNil ¶ added in v1.6.0
func NewVisPosNil() *VisPos