Documentation ¶
Index ¶
- func TextEditorSetDefaultPalette(aValue PaletteId)
- type LanguageDefinitionId
- type PaletteId
- type SetViewAtLineMode
- type TextEditor
- 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) ClearExtraCursors()
- func (self *TextEditor) ClearSelections()
- func (self *TextEditor) Copy()
- func (self *TextEditor) CursorPosition(outLine, outColumn *int32)
- func (self *TextEditor) Cut()
- func (self *TextEditor) DebugPanel(panelName string)
- func (self *TextEditor) Destroy()
- func (self *TextEditor) FirstVisibleLine() int32
- func (self *TextEditor) Handle() (result *C.TextEditor, fin func())
- func (self *TextEditor) IsAutoIndentEnabled() bool
- func (self *TextEditor) IsOverwriteEnabled() bool
- func (self *TextEditor) IsReadOnlyEnabled() bool
- func (self *TextEditor) IsShortTabsEnabled() bool
- func (self *TextEditor) IsShowLineNumbersEnabled() bool
- func (self *TextEditor) IsShowWhitespacesEnabled() bool
- func (self *TextEditor) LanguageDefinition() LanguageDefinitionId
- func (self *TextEditor) LanguageDefinitionName() string
- func (self *TextEditor) LastVisibleLine() int32
- func (self *TextEditor) LineCount() int32
- func (self *TextEditor) LineSpacing() float32
- func (self *TextEditor) Palette() PaletteId
- func (self *TextEditor) Paste()
- func (self *TextEditor) Redo()
- func (self *TextEditor) RedoV(aSteps int32)
- func (self *TextEditor) Render(aTitle string) bool
- func (self *TextEditor) RenderV(aTitle string, aParentIsFocused bool, aSize imgui.Vec2, aBorder bool) bool
- func (self *TextEditor) SelectAll()
- func (self *TextEditor) SelectAllOccurrencesOf(aText string, aTextSize int32)
- func (self *TextEditor) SelectAllOccurrencesOfV(aText string, aTextSize int32, aCaseSensitive bool)
- func (self *TextEditor) SelectLine(aLine int32)
- func (self *TextEditor) SelectNextOccurrenceOf(aText string, aTextSize int32)
- func (self *TextEditor) SelectNextOccurrenceOfV(aText string, aTextSize int32, aCaseSensitive bool)
- func (self *TextEditor) SelectRegion(aStartLine, aStartChar, aEndLine, aEndChar int32)
- func (self *TextEditor) SetAutoIndentEnabled(aValue bool)
- func (self *TextEditor) SetCursorPosition(aLine, aCharIndex int32)
- func (self *TextEditor) SetLanguageDefinition(aValue LanguageDefinitionId)
- func (self *TextEditor) SetLineSpacing(aValue float32)
- func (self *TextEditor) SetPalette(aValue PaletteId)
- func (self *TextEditor) SetReadOnlyEnabled(aValue bool)
- func (self *TextEditor) SetShortTabsEnabled(aValue bool)
- func (self *TextEditor) SetShowLineNumbersEnabled(aValue bool)
- func (self *TextEditor) SetShowWhitespacesEnabled(aValue bool)
- func (self *TextEditor) SetTabSize(aValue int32)
- func (self *TextEditor) SetText(aText string)
- func (self *TextEditor) SetViewAtLine(aLine int32, aMode SetViewAtLineMode)
- func (self *TextEditor) TabSize() int32
- func (self *TextEditor) Text() string
- func (self *TextEditor) Undo()
- func (self *TextEditor) UndoIndex() int32
- func (self *TextEditor) UndoV(aSteps int32)
- func (self *TextEditor) UnitTests()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TextEditorSetDefaultPalette ¶
func TextEditorSetDefaultPalette(aValue PaletteId)
Types ¶
type LanguageDefinitionId ¶
type LanguageDefinitionId int32
original name: LanguageDefinitionId
const ( None LanguageDefinitionId = 0 Cpp LanguageDefinitionId = 1 C LanguageDefinitionId = 2 Cs LanguageDefinitionId = 3 Python LanguageDefinitionId = 4 Lua LanguageDefinitionId = 5 Json LanguageDefinitionId = 6 Sql LanguageDefinitionId = 7 AngelScript LanguageDefinitionId = 8 Glsl LanguageDefinitionId = 9 Hlsl LanguageDefinitionId = 10 )
type PaletteId ¶
type PaletteId int32
original name: PaletteId
func TextEditorGetDefaultPalette ¶
func TextEditorGetDefaultPalette() PaletteId
type SetViewAtLineMode ¶
type SetViewAtLineMode int32
original name: SetViewAtLineMode
const ( FirstVisibleLine SetViewAtLineMode = 0 Centered SetViewAtLineMode = 1 LastVisibleLine SetViewAtLineMode = 2 )
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) 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) ClearExtraCursors ¶
func (self *TextEditor) ClearExtraCursors()
func (*TextEditor) ClearSelections ¶
func (self *TextEditor) ClearSelections()
func (*TextEditor) Copy ¶
func (self *TextEditor) Copy()
func (*TextEditor) CursorPosition ¶
func (self *TextEditor) CursorPosition(outLine, outColumn *int32)
func (*TextEditor) Cut ¶
func (self *TextEditor) Cut()
func (*TextEditor) DebugPanel ¶
func (self *TextEditor) DebugPanel(panelName string)
func (*TextEditor) Destroy ¶
func (self *TextEditor) Destroy()
func (*TextEditor) FirstVisibleLine ¶
func (self *TextEditor) FirstVisibleLine() int32
func (*TextEditor) Handle ¶
func (self *TextEditor) Handle() (result *C.TextEditor, fin func())
Handle returns C version of TextEditor and its finalizer func.
func (*TextEditor) IsAutoIndentEnabled ¶
func (self *TextEditor) IsAutoIndentEnabled() bool
func (*TextEditor) IsOverwriteEnabled ¶
func (self *TextEditor) IsOverwriteEnabled() bool
func (*TextEditor) IsReadOnlyEnabled ¶
func (self *TextEditor) IsReadOnlyEnabled() bool
func (*TextEditor) IsShortTabsEnabled ¶
func (self *TextEditor) IsShortTabsEnabled() bool
func (*TextEditor) IsShowLineNumbersEnabled ¶
func (self *TextEditor) IsShowLineNumbersEnabled() bool
func (*TextEditor) IsShowWhitespacesEnabled ¶
func (self *TextEditor) IsShowWhitespacesEnabled() bool
func (*TextEditor) LanguageDefinition ¶
func (self *TextEditor) LanguageDefinition() LanguageDefinitionId
func (*TextEditor) LanguageDefinitionName ¶
func (self *TextEditor) LanguageDefinitionName() string
func (*TextEditor) LastVisibleLine ¶
func (self *TextEditor) LastVisibleLine() int32
func (*TextEditor) LineCount ¶
func (self *TextEditor) LineCount() int32
func (*TextEditor) LineSpacing ¶
func (self *TextEditor) LineSpacing() float32
func (*TextEditor) Palette ¶
func (self *TextEditor) Palette() PaletteId
func (*TextEditor) Paste ¶
func (self *TextEditor) Paste()
func (*TextEditor) Redo ¶
func (self *TextEditor) Redo()
func (*TextEditor) RedoV ¶
func (self *TextEditor) RedoV(aSteps int32)
RedoV parameter default value hint: aSteps: 1
func (*TextEditor) Render ¶
func (self *TextEditor) Render(aTitle string) bool
func (*TextEditor) RenderV ¶
func (self *TextEditor) RenderV(aTitle string, aParentIsFocused bool, aSize imgui.Vec2, aBorder bool) bool
RenderV parameter default value hint: aParentIsFocused: false aSize: ImVec2() aBorder: false
func (*TextEditor) SelectAll ¶
func (self *TextEditor) SelectAll()
func (*TextEditor) SelectAllOccurrencesOf ¶
func (self *TextEditor) SelectAllOccurrencesOf(aText string, aTextSize int32)
func (*TextEditor) SelectAllOccurrencesOfV ¶
func (self *TextEditor) SelectAllOccurrencesOfV(aText string, aTextSize int32, aCaseSensitive bool)
SelectAllOccurrencesOfV parameter default value hint: aCaseSensitive: true
func (*TextEditor) SelectLine ¶
func (self *TextEditor) SelectLine(aLine int32)
func (*TextEditor) SelectNextOccurrenceOf ¶
func (self *TextEditor) SelectNextOccurrenceOf(aText string, aTextSize int32)
func (*TextEditor) SelectNextOccurrenceOfV ¶
func (self *TextEditor) SelectNextOccurrenceOfV(aText string, aTextSize int32, aCaseSensitive bool)
SelectNextOccurrenceOfV parameter default value hint: aCaseSensitive: true
func (*TextEditor) SelectRegion ¶
func (self *TextEditor) SelectRegion(aStartLine, aStartChar, aEndLine, aEndChar int32)
func (*TextEditor) SetAutoIndentEnabled ¶
func (self *TextEditor) SetAutoIndentEnabled(aValue bool)
func (*TextEditor) SetCursorPosition ¶
func (self *TextEditor) SetCursorPosition(aLine, aCharIndex int32)
func (*TextEditor) SetLanguageDefinition ¶
func (self *TextEditor) SetLanguageDefinition(aValue LanguageDefinitionId)
func (*TextEditor) SetLineSpacing ¶
func (self *TextEditor) SetLineSpacing(aValue float32)
func (*TextEditor) SetPalette ¶
func (self *TextEditor) SetPalette(aValue PaletteId)
func (*TextEditor) SetReadOnlyEnabled ¶
func (self *TextEditor) SetReadOnlyEnabled(aValue bool)
func (*TextEditor) SetShortTabsEnabled ¶
func (self *TextEditor) SetShortTabsEnabled(aValue bool)
func (*TextEditor) SetShowLineNumbersEnabled ¶
func (self *TextEditor) SetShowLineNumbersEnabled(aValue bool)
func (*TextEditor) SetShowWhitespacesEnabled ¶
func (self *TextEditor) SetShowWhitespacesEnabled(aValue bool)
func (*TextEditor) SetTabSize ¶
func (self *TextEditor) SetTabSize(aValue int32)
func (*TextEditor) SetText ¶
func (self *TextEditor) SetText(aText string)
func (*TextEditor) SetViewAtLine ¶
func (self *TextEditor) SetViewAtLine(aLine int32, aMode SetViewAtLineMode)
func (*TextEditor) TabSize ¶
func (self *TextEditor) TabSize() int32
func (*TextEditor) Text ¶
func (self *TextEditor) Text() string
func (*TextEditor) Undo ¶
func (self *TextEditor) Undo()
func (*TextEditor) UndoIndex ¶
func (self *TextEditor) UndoIndex() int32
func (*TextEditor) UndoV ¶
func (self *TextEditor) UndoV(aSteps int32)
UndoV parameter default value hint: aSteps: 1
func (*TextEditor) UnitTests ¶
func (self *TextEditor) UnitTests()