Package imgui.extension.texteditor
Class TextEditor
java.lang.Object
imgui.binding.ImGuiStruct
imgui.binding.ImGuiStructDestroyable
imgui.extension.texteditor.TextEditor
-
Field Summary
Fields inherited from class imgui.binding.ImGuiStruct
ptr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMarker(int line, int lineNumberColor, int textColor) voidvoidaddMarker(int line, int lineNumberColor, int textColor, String lineNumberTooltip, String textTooltip) voidbooleanbooleanbooleancanRedo()booleancanUndo()voidvoidvoidvoidvoidcopy()protected longcreate()booleanvoidcut()voidvoidfindAll()voidfindNext()voidgetCursorPosition(long cursor) voidgetCursorPosition(TextEditorCursorPosition dst, long cursor) getCursorSelection(long cursor) voidgetCursorSelection(TextEditorCursorSelection dst, long cursor) getCursorText(long cursor) static int[]static int[]intintfloatintintstatic int[]intfloatfloatgetLineText(int line) voidvoidlongint[]intgetPaletteColor(int colorIndex) intgetPaletteColor(TextEditorColor color) getSectionText(int startLine, int startColumn, int endLine, int endColumn) intgetText()longlonggetUserData(int line) getWordAtScreenPos(float screenPosX, float screenPosY) getWordAtScreenPos(ImVec2 screenPos) voidbooleanbooleanbooleanvoidbooleanbooleanbooleanisEmpty()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidvoidvoidpaste()voidredo()voidvoidvoidvoidvoidvoidvoidreplaceSectionText(int startLine, int startColumn, int endLine, int endColumn, String text) voidvoidvoidscrollToLine(int line, int alignment) voidscrollToLine(int line, TextEditorScroll alignment) voidvoidvoidselectAllOccurrencesOf(String text) voidselectAllOccurrencesOf(String text, boolean caseSensitive) voidselectAllOccurrencesOf(String text, boolean caseSensitive, boolean wholeWord) voidvoidselectFirstOccurrenceOf(String text, boolean caseSensitive) voidselectFirstOccurrenceOf(String text, boolean caseSensitive, boolean wholeWord) voidvoidvoidselectLine(int line) voidselectLines(int start, int end) voidselectNextOccurrenceOf(String text) voidselectNextOccurrenceOf(String text, boolean caseSensitive) voidselectNextOccurrenceOf(String text, boolean caseSensitive, boolean wholeWord) voidselectRegion(int startLine, int startColumn, int endLine, int endColumn) voidvoidselectToBrackets(boolean includeBrackets) voidsetAutoIndentEnabled(boolean value) voidsetCompletePairedGlyphs(boolean value) voidsetCursor(int line, int column) voidstatic voidsetDefaultPalette(int[] palette) voidsetFindAllButtonLabel(String label) voidsetFindButtonLabel(String label) voidsetFocus()static voidvoidsetInsertSpacesOnTabs(boolean value) voidsetLanguage(TextEditorLanguage language) voidvoidsetLineSpacing(float value) voidvoidvoidsetOverwriteEnabled(boolean value) voidsetPalette(int[] palette) voidsetPaletteColor(int colorIndex, int value) voidsetPaletteColor(TextEditorColor color, int value) voidsetReadOnlyEnabled(boolean value) voidsetReplaceAllButtonLabel(String label) voidsetReplaceButtonLabel(String label) voidsetShowLineNumbersEnabled(boolean value) voidsetShowMatchingBrackets(boolean value) voidsetShowPanScrollIndicatorEnabled(boolean value) voidsetShowScrollbarMiniMapEnabled(boolean value) voidsetShowSpacesEnabled(boolean value) voidsetShowTabsEnabled(boolean value) voidsetShowWhitespacesEnabled(boolean value) voidsetTabSize(int value) voidvoidsetUserData(int line, long data) voidvoidvoidvoidvoidvoidundo()Methods inherited from class imgui.binding.ImGuiStructDestroyable
destroyMethods inherited from class imgui.binding.ImGuiStruct
isNotValidPtr, isValidPtr
-
Constructor Details
-
TextEditor
public TextEditor() -
TextEditor
public TextEditor(long ptr)
-
-
Method Details
-
create
protected long create()- Specified by:
createin classImGuiStructDestroyable
-
setTabSize
public void setTabSize(int value) -
setLanguage
-
getTabSize
public int getTabSize() -
setInsertSpacesOnTabs
public void setInsertSpacesOnTabs(boolean value) -
isInsertSpacesOnTabs
public boolean isInsertSpacesOnTabs() -
setLineSpacing
public void setLineSpacing(float value) -
getLineSpacing
public float getLineSpacing() -
setReadOnlyEnabled
public void setReadOnlyEnabled(boolean value) -
isReadOnlyEnabled
public boolean isReadOnlyEnabled() -
setAutoIndentEnabled
public void setAutoIndentEnabled(boolean value) -
isAutoIndentEnabled
public boolean isAutoIndentEnabled() -
setShowWhitespacesEnabled
public void setShowWhitespacesEnabled(boolean value) -
isShowWhitespacesEnabled
public boolean isShowWhitespacesEnabled() -
setShowSpacesEnabled
public void setShowSpacesEnabled(boolean value) -
isShowSpacesEnabled
public boolean isShowSpacesEnabled() -
setShowTabsEnabled
public void setShowTabsEnabled(boolean value) -
isShowTabsEnabled
public boolean isShowTabsEnabled() -
setShowLineNumbersEnabled
public void setShowLineNumbersEnabled(boolean value) -
isShowLineNumbersEnabled
public boolean isShowLineNumbersEnabled() -
setShowScrollbarMiniMapEnabled
public void setShowScrollbarMiniMapEnabled(boolean value) -
isShowScrollbarMiniMapEnabled
public boolean isShowScrollbarMiniMapEnabled() -
setShowPanScrollIndicatorEnabled
public void setShowPanScrollIndicatorEnabled(boolean value) -
isShowPanScrollIndicatorEnabled
public boolean isShowPanScrollIndicatorEnabled() -
setShowMatchingBrackets
public void setShowMatchingBrackets(boolean value) -
isShowingMatchingBrackets
public boolean isShowingMatchingBrackets() -
setCompletePairedGlyphs
public void setCompletePairedGlyphs(boolean value) -
isCompletingPairedGlyphs
public boolean isCompletingPairedGlyphs() -
setOverwriteEnabled
public void setOverwriteEnabled(boolean value) -
isOverwriteEnabled
public boolean isOverwriteEnabled() -
setMiddleMousePanMode
public void setMiddleMousePanMode() -
setMiddleMouseScrollMode
public void setMiddleMouseScrollMode() -
isMiddleMousePanMode
public boolean isMiddleMousePanMode() -
setText
-
getText
-
getCursorText
-
getLineText
-
getSectionText
-
replaceSectionText
public void replaceSectionText(int startLine, int startColumn, int endLine, int endColumn, String text) -
clearText
public void clearText() -
isEmpty
public boolean isEmpty() -
getLineCount
public int getLineCount() -
render
-
render
-
render
-
render
-
render
-
render
-
setFocus
public void setFocus() -
cut
public void cut() -
copy
public void copy() -
paste
public void paste() -
undo
public void undo() -
redo
public void redo() -
canUndo
public boolean canUndo() -
canRedo
public boolean canRedo() -
getUndoIndex
public long getUndoIndex() -
setCursor
public void setCursor(int line, int column) -
selectAll
public void selectAll() -
selectLine
public void selectLine(int line) -
selectLines
public void selectLines(int start, int end) -
selectRegion
public void selectRegion(int startLine, int startColumn, int endLine, int endColumn) -
selectToBrackets
public void selectToBrackets() -
selectToBrackets
public void selectToBrackets(boolean includeBrackets) -
growSelectionsToCurlyBrackets
public void growSelectionsToCurlyBrackets() -
shrinkSelectionsToCurlyBrackets
public void shrinkSelectionsToCurlyBrackets() -
addNextOccurrence
public void addNextOccurrence() -
selectAllOccurrences
public void selectAllOccurrences() -
anyCursorHasSelection
public boolean anyCursorHasSelection() -
allCursorsHaveSelection
public boolean allCursorsHaveSelection() -
currentCursorHasSelection
public boolean currentCursorHasSelection() -
clearCursors
public void clearCursors() -
getNumberOfCursors
public long getNumberOfCursors() -
getMainCursorPosition
-
getMainCursorPosition
-
getCurrentCursorPosition
-
getCurrentCursorPosition
-
getCursorPosition
-
getCursorPosition
-
getCursorSelection
-
getCursorSelection
-
getMainCursorSelection
-
getMainCursorSelection
-
getWordAtScreenPos
-
getWordAtScreenPos
-
scrollToLine
public void scrollToLine(int line, int alignment) -
scrollToLine
-
getFirstVisibleLine
public int getFirstVisibleLine() -
getLastVisibleLine
public int getLastVisibleLine() -
getFirstVisibleColumn
public int getFirstVisibleColumn() -
getLastVisibleColumn
public int getLastVisibleColumn() -
getLineHeight
public float getLineHeight() -
getGlyphWidth
public float getGlyphWidth() -
selectFirstOccurrenceOf
-
selectFirstOccurrenceOf
-
selectFirstOccurrenceOf
-
selectNextOccurrenceOf
-
selectNextOccurrenceOf
-
selectNextOccurrenceOf
-
selectAllOccurrencesOf
-
selectAllOccurrencesOf
-
selectAllOccurrencesOf
-
replaceTextInCurrentCursor
-
replaceTextInAllCursors
-
openFindReplaceWindow
public void openFindReplaceWindow() -
closeFindReplaceWindow
public void closeFindReplaceWindow() -
setFindButtonLabel
-
setFindAllButtonLabel
-
setReplaceButtonLabel
-
setReplaceAllButtonLabel
-
hasFindString
public boolean hasFindString() -
findNext
public void findNext() -
findAll
public void findAll() -
addMarker
-
addMarker
public void addMarker(int line, int lineNumberColor, int textColor) -
addMarker
-
clearMarkers
public void clearMarkers() -
hasMarkers
public boolean hasMarkers() -
indentLines
public void indentLines() -
deindentLines
public void deindentLines() -
moveUpLines
public void moveUpLines() -
moveDownLines
public void moveDownLines() -
toggleComments
public void toggleComments() -
selectionToLowerCase
public void selectionToLowerCase() -
selectionToUpperCase
public void selectionToUpperCase() -
stripTrailingWhitespaces
public void stripTrailingWhitespaces() -
tabsToSpaces
public void tabsToSpaces() -
spacesToTabs
public void spacesToTabs() -
getPalette
public int[] getPalette() -
setPalette
public void setPalette(int[] palette) -
getDefaultPalette
public static int[] getDefaultPalette() -
setDefaultPalette
public static void setDefaultPalette(int[] palette) -
getDarkPalette
public static int[] getDarkPalette() -
getLightPalette
public static int[] getLightPalette() -
setDarkPalette
public void setDarkPalette() -
setLightPalette
public void setLightPalette() -
getPaletteColor
public int getPaletteColor(int colorIndex) -
getPaletteColor
-
setPaletteColor
public void setPaletteColor(int colorIndex, int value) -
setPaletteColor
-
getLanguage
-
hasLanguage
public boolean hasLanguage() -
getLanguageName
-
setImGuiContext
-
setUserData
public void setUserData(int line, long data) -
getUserData
public long getUserData(int line)
-