ImGuiColorTextEdit

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

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

type PaletteId

type PaletteId int32

original name: PaletteId

const (
	Dark      PaletteId = 0
	Light     PaletteId = 1
	Mariana   PaletteId = 2
	RetroBlue PaletteId = 3
)

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()

Jump to

Keyboard shortcuts

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