ImGuiColorTextEdit

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodePointIsBracketCloser added in v1.6.0

func CodePointIsBracketCloser(ch imgui.Wchar) bool

func CodePointIsBracketOpener added in v1.6.0

func CodePointIsBracketOpener(ch imgui.Wchar) bool

func CodePointIsEastAsian added in v1.6.0

func CodePointIsEastAsian(codepoint imgui.Wchar) bool

func CodePointIsLetter added in v1.6.0

func CodePointIsLetter(codepoint imgui.Wchar) bool

func CodePointIsLower added in v1.6.0

func CodePointIsLower(codepoint imgui.Wchar) bool

func CodePointIsMatchingBrackets added in v1.6.0

func CodePointIsMatchingBrackets(open, close imgui.Wchar) bool

func CodePointIsMatchingPair added in v1.6.0

func CodePointIsMatchingPair(open, close imgui.Wchar) bool

func CodePointIsNumber added in v1.6.0

func CodePointIsNumber(codepoint imgui.Wchar) bool

func CodePointIsPairCloser added in v1.6.0

func CodePointIsPairCloser(ch imgui.Wchar) bool

func CodePointIsPairOpener added in v1.6.0

func CodePointIsPairOpener(ch imgui.Wchar) bool

func CodePointIsUpper added in v1.6.0

func CodePointIsUpper(codepoint imgui.Wchar) bool

func CodePointIsWhiteSpace added in v1.6.0

func CodePointIsWhiteSpace(codepoint imgui.Wchar) bool

func CodePointIsWord added in v1.6.0

func CodePointIsWord(codepoint imgui.Wchar) bool

func CodePointIsXidContinue added in v1.6.0

func CodePointIsXidContinue(codepoint imgui.Wchar) bool

func CodePointIsXidStart added in v1.6.0

func CodePointIsXidStart(codepoint imgui.Wchar) bool

func CodePointToLower added in v1.6.0

func CodePointToLower(codepoint imgui.Wchar) imgui.Wchar

func CodePointToPairCloser added in v1.6.0

func CodePointToPairCloser(ch imgui.Wchar) imgui.Wchar

func CodePointToPairOpener added in v1.6.0

func CodePointToPairOpener(ch imgui.Wchar) imgui.Wchar

func CodePointToUpper added in v1.6.0

func CodePointToUpper(codepoint imgui.Wchar) imgui.Wchar

func CodePointWrite added in v1.6.0

func CodePointWrite(i string, codepoint imgui.Wchar) uint64

func PaletteDestroy added in v1.6.0

func PaletteDestroy(noname1 *Palette)

func PaletteSet added in v1.6.0

func PaletteSet(noname1 *Palette, noname2 uint32, noname3 int32)

func Paletteconstget added in v1.6.0

func Paletteconstget(noname1 *Palette, noname2 Color) uint32

func SetDejavu added in v1.6.0

func SetDejavu()

func TextEditorGetTextfree added in v1.6.0

func TextEditorGetTextfree(ptr string)

func TextEditorSetDefaultPalette

func TextEditorSetDefaultPalette(aValue *Palette)

func TextEditorSetImGuiContext added in v1.6.0

func TextEditorSetImGuiContext(ctx *imgui.Context)

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

type Change struct {
	CData *C.Change
}

func NewChangeFromC added in v1.6.0

func NewChangeFromC[SRC any](cvalue SRC) *Change

NewChangeFromC creates Change from its C pointer. SRC ~= *C.Change

func (*Change) Handle added in v1.6.0

func (self *Change) Handle() (result *C.Change, fin func())

Handle returns C version of Change and its finalizer func.

type CodePoint added in v1.6.0

type CodePoint struct {
	CData *C.CodePoint
}

func NewCodePointFromC added in v1.6.0

func NewCodePointFromC[SRC any](cvalue SRC) *CodePoint

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.

func (CodePoint) C added in v1.6.0

func (self CodePoint) C() (C.CodePoint, func())

C is like Handle but returns plain type instead of pointer.

func (*CodePoint) Handle added in v1.6.0

func (self *CodePoint) Handle() (result *C.CodePoint, fin func())

Handle returns C version of CodePoint and its finalizer func.

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

type Decorator struct {
	CData *C.Decorator
}

func NewDecoratorFromC added in v1.6.0

func NewDecoratorFromC[SRC any](cvalue SRC) *Decorator

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) C added in v1.6.0

func (self Decorator) C() (C.Decorator, func())

C is like Handle but returns plain type instead of pointer.

func (*Decorator) GlyphSize added in v1.6.0

func (self *Decorator) GlyphSize() imgui.Vec2

func (*Decorator) Handle added in v1.6.0

func (self *Decorator) Handle() (result *C.Decorator, fin func())

Handle returns C version of Decorator and its finalizer func.

func (*Decorator) Height added in v1.6.0

func (self *Decorator) Height() float32

func (*Decorator) Line added in v1.6.0

func (self *Decorator) Line() uint64

func (Decorator) SetGlyphSize added in v1.6.0

func (self Decorator) SetGlyphSize(v imgui.Vec2)

func (Decorator) SetHeight added in v1.6.0

func (self Decorator) SetHeight(v float32)

func (Decorator) SetLine added in v1.6.0

func (self Decorator) SetLine(v uint64)

func (Decorator) SetUserData added in v1.6.0

func (self Decorator) SetUserData(v uintptr)

func (Decorator) SetWidth added in v1.6.0

func (self Decorator) SetWidth(v float32)

func (*Decorator) UserData added in v1.6.0

func (self *Decorator) UserData() uintptr

func (*Decorator) Width added in v1.6.0

func (self *Decorator) Width() float32

type DocPos added in v1.6.0

type DocPos struct {
	CData *C.DocPos
}

func NewDocPosFromC added in v1.6.0

func NewDocPosFromC[SRC any](cvalue SRC) *DocPos

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 NewDocPossizet(line, index uint64) *DocPos

func NewEmptyDocPos added in v1.6.0

func NewEmptyDocPos() *DocPos

NewEmptyDocPos creates DocPos with its 0 value.

func (DocPos) C added in v1.6.0

func (self DocPos) C() (C.DocPos, func())

C is like Handle but returns plain type instead of pointer.

func (*DocPos) Destroy added in v1.6.0

func (self *DocPos) Destroy()

func (*DocPos) Handle added in v1.6.0

func (self *DocPos) Handle() (result *C.DocPos, fin func())

Handle returns C version of DocPos and its finalizer func.

func (*DocPos) Index added in v1.6.0

func (self *DocPos) Index() uint64

func (*DocPos) Line added in v1.6.0

func (self *DocPos) Line() uint64

func (DocPos) SetIndex added in v1.6.0

func (self DocPos) SetIndex(v uint64)

func (DocPos) SetLine added in v1.6.0

func (self DocPos) SetLine(v uint64)

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

type Glyph struct {
	CData *C.Glyph
}

func NewEmptyGlyph added in v1.6.0

func NewEmptyGlyph() *Glyph

NewEmptyGlyph creates Glyph with its 0 value.

func NewGlyphFromC added in v1.6.0

func NewGlyphFromC[SRC any](cvalue SRC) *Glyph

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 NewGlyphWchar(cp imgui.Wchar) *Glyph

func NewGlyphWcharColor added in v1.6.0

func NewGlyphWcharColor(cp imgui.Wchar, col Color) *Glyph

func (*Glyph) BreakOption added in v1.6.0

func (self *Glyph) BreakOption() BreakOption

func (Glyph) C added in v1.6.0

func (self Glyph) C() (C.Glyph, func())

C is like Handle but returns plain type instead of pointer.

func (*Glyph) Codepoint added in v1.6.0

func (self *Glyph) Codepoint() imgui.Wchar

func (*Glyph) Color added in v1.6.0

func (self *Glyph) Color() Color

func (*Glyph) Destroy added in v1.6.0

func (self *Glyph) Destroy()

func (*Glyph) Handle added in v1.6.0

func (self *Glyph) Handle() (result *C.Glyph, fin func())

Handle returns C version of Glyph and its finalizer func.

func (Glyph) SetBreakOption added in v1.6.0

func (self Glyph) SetBreakOption(v BreakOption)

func (Glyph) SetCodepoint added in v1.6.0

func (self Glyph) SetCodepoint(v imgui.Wchar)

func (Glyph) SetColor added in v1.6.0

func (self Glyph) SetColor(v Color)

func (Glyph) SetSquiggle added in v1.6.0

func (self Glyph) SetSquiggle(v uint64)

func (*Glyph) Squiggle added in v1.6.0

func (self *Glyph) Squiggle() uint64

type Iterator added in v1.6.0

type Iterator struct {
	CData *C.Iterator
}

func NewIteratorFromC added in v1.6.0

func NewIteratorFromC[SRC any](cvalue SRC) *Iterator

NewIteratorFromC creates Iterator from its C pointer. SRC ~= *C.Iterator

func NewIteratorGlyphPtr added in v1.6.0

func NewIteratorGlyphPtr(g *Glyph) *Iterator

func NewIteratorNil added in v1.6.0

func NewIteratorNil() *Iterator

func (*Iterator) Destroy added in v1.6.0

func (self *Iterator) Destroy()

func (*Iterator) Handle added in v1.6.0

func (self *Iterator) Handle() (result *C.Iterator, fin func())

Handle returns C version of Iterator and its finalizer func.

type Language added in v1.6.0

type Language struct {
	CData *C.Language
}

func LanguageAngelScript added in v1.6.0

func LanguageAngelScript() *Language

func LanguageC added in v1.6.0

func LanguageC() *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

func NewLanguageFromC[SRC any](cvalue SRC) *Language

NewLanguageFromC creates Language from its C pointer. SRC ~= *C.Language

func (*Language) Handle added in v1.6.0

func (self *Language) Handle() (result *C.Language, fin func())

Handle returns C version of Language and its finalizer func.

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

type Palette struct {
	CData *C.Palette
}

func NewPaletteFromC added in v1.6.0

func NewPaletteFromC[SRC any](cvalue SRC) *Palette

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

func (*Palette) Handle added in v1.6.0

func (self *Palette) Handle() (result *C.Palette, fin func())

Handle returns C version of Palette and its finalizer func.

type PopupData added in v1.6.0

type PopupData struct {
	CData *C.PopupData
}

func NewEmptyPopupData added in v1.6.0

func NewEmptyPopupData() *PopupData

NewEmptyPopupData creates PopupData with its 0 value.

func NewPopupDataFromC added in v1.6.0

func NewPopupDataFromC[SRC any](cvalue SRC) *PopupData

NewPopupDataFromC creates PopupData from its C pointer. SRC ~= *C.PopupData

func (PopupData) C added in v1.6.0

func (self PopupData) C() (C.PopupData, func())

C is like Handle but returns plain type instead of pointer.

func (*PopupData) Handle added in v1.6.0

func (self *PopupData) Handle() (result *C.PopupData, fin func())

Handle returns C version of PopupData and its finalizer func.

func (*PopupData) Pos added in v1.6.0

func (self *PopupData) Pos() DocPos

func (PopupData) SetPos added in v1.6.0

func (self PopupData) SetPos(v DocPos)

func (PopupData) SetUserData added in v1.6.0

func (self PopupData) SetUserData(v uintptr)

func (*PopupData) UserData added in v1.6.0

func (self *PopupData) UserData() uintptr

type Scroll added in v1.6.0

type Scroll int32

original name: Scroll

const (
	AlignTop    Scroll = 0
	AlignMiddle Scroll = 1
	AlignBottom Scroll = 2
)

type TextDiff added in v1.6.0

type TextDiff struct {
	CData *C.TextDiff
}

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

func NewTextDiffFromC[SRC any](cvalue SRC) *TextDiff

NewTextDiffFromC creates TextDiff from its C pointer. SRC ~= *C.TextDiff

func (TextDiff) C added in v1.6.0

func (self TextDiff) C() (C.TextDiff, func())

C is like Handle but returns plain type instead of pointer.

func (*TextDiff) Destroy added in v1.6.0

func (self *TextDiff) Destroy()

func (*TextDiff) Handle added in v1.6.0

func (self *TextDiff) Handle() (result *C.TextDiff, fin func())

Handle returns C version of TextDiff and its finalizer func.

func (*TextDiff) IsShowScrollbarMiniMapEnabled added in v1.6.0

func (self *TextDiff) IsShowScrollbarMiniMapEnabled() bool

func (*TextDiff) IsShowSpacesEnabled added in v1.6.0

func (self *TextDiff) IsShowSpacesEnabled() bool

func (*TextDiff) IsShowTabsEnabled added in v1.6.0

func (self *TextDiff) IsShowTabsEnabled() bool

func (*TextDiff) IsShowWhitespacesEnabled added in v1.6.0

func (self *TextDiff) IsShowWhitespacesEnabled() bool

func (*TextDiff) IsWordWrapEnabled added in v1.6.0

func (self *TextDiff) IsWordWrapEnabled() bool

func (*TextDiff) Language added in v1.6.0

func (self *TextDiff) Language() *Language

func (*TextDiff) LineSpacing added in v1.6.0

func (self *TextDiff) LineSpacing() float32

func (*TextDiff) Palette added in v1.6.0

func (self *TextDiff) Palette() *Palette

func (*TextDiff) Render added in v1.6.0

func (self *TextDiff) Render(title string)

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) SetColors added in v1.6.0

func (self *TextDiff) SetColors(ac, dc uint32)

func (*TextDiff) SetFocus added in v1.6.0

func (self *TextDiff) SetFocus()

func (*TextDiff) SetLanguage added in v1.6.0

func (self *TextDiff) SetLanguage(language *Language)

func (*TextDiff) SetLineSpacing added in v1.6.0

func (self *TextDiff) SetLineSpacing(value float32)

func (*TextDiff) SetPalette added in v1.6.0

func (self *TextDiff) SetPalette(newPalette *Palette)

func (*TextDiff) SetShowScrollbarMiniMapEnabled added in v1.6.0

func (self *TextDiff) SetShowScrollbarMiniMapEnabled(value bool)

func (*TextDiff) SetShowSpacesEnabled added in v1.6.0

func (self *TextDiff) SetShowSpacesEnabled(value bool)

func (*TextDiff) SetShowTabsEnabled added in v1.6.0

func (self *TextDiff) SetShowTabsEnabled(value bool)

func (*TextDiff) SetShowWhitespacesEnabled added in v1.6.0

func (self *TextDiff) SetShowWhitespacesEnabled(value bool)

func (*TextDiff) SetSideBySideMode added in v1.6.0

func (self *TextDiff) SetSideBySideMode(flag bool)

func (*TextDiff) SetTabSize added in v1.6.0

func (self *TextDiff) SetTabSize(value uint64)

func (*TextDiff) SetText added in v1.6.0

func (self *TextDiff) SetText(left, right string)

func (*TextDiff) SetWordWrapEnabled added in v1.6.0

func (self *TextDiff) SetWordWrapEnabled(value bool)

func (*TextDiff) SideBySideMode added in v1.6.0

func (self *TextDiff) SideBySideMode() bool

func (*TextDiff) TabSize added in v1.6.0

func (self *TextDiff) TabSize() uint64

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 Type added in v1.6.0

type Type int32

original name: Type

const (
	Success Type = 0
	Warning Type = 1
	Error   Type = 2
	Info    Type = 3
)

type VisPos added in v1.6.0

type VisPos struct {
	CData *C.VisPos
}

func NewEmptyVisPos added in v1.6.0

func NewEmptyVisPos() *VisPos

NewEmptyVisPos creates VisPos with its 0 value.

func NewVisPosFromC added in v1.6.0

func NewVisPosFromC[SRC any](cvalue SRC) *VisPos

NewVisPosFromC creates VisPos from its C pointer. SRC ~= *C.VisPos

func NewVisPosNil added in v1.6.0

func NewVisPosNil() *VisPos

func NewVisPossizet added in v1.6.0

func NewVisPossizet(row, column uint64) *VisPos

func (VisPos) C added in v1.6.0

func (self VisPos) C() (C.VisPos, func())

C is like Handle but returns plain type instead of pointer.

func (*VisPos) Column added in v1.6.0

func (self *VisPos) Column() uint64

func (*VisPos) Destroy added in v1.6.0

func (self *VisPos) Destroy()

func (*VisPos) Handle added in v1.6.0

func (self *VisPos) Handle() (result *C.VisPos, fin func())

Handle returns C version of VisPos and its finalizer func.

func (*VisPos) Row added in v1.6.0

func (self *VisPos) Row() uint64

func (VisPos) SetColumn added in v1.6.0

func (self VisPos) SetColumn(v uint64)

func (VisPos) SetRow added in v1.6.0

func (self VisPos) SetRow(v uint64)

Jump to

Keyboard shortcuts

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