→ index of namespace ui
 
→ index of project ui
 
→ index of module MTextView

Class MTextView.ui::TextView


Synopsis: 

  Base classes:
  Derived classes:
  Functions:
  Methods:

Function AppendLines
Signature
AppendLines(StringArraylines,
  Stringret 
  )  
Arguments
StringArraylines–
Stringret–

 
→ top of page
Method allocRows
Signature
allocRows()

 
→ top of page
Method appendLine
Signature
appendLine(Stringtext)
Arguments
Stringtext–

 
→ top of page
Method appendLogLine
Signature
appendLogLine(Stringtext)
Arguments
Stringtext–

 
→ top of page
Method beginXFMTag
Signature
beginXFMTag(ui::AbstractXMLFormform,
  HashTableattributes 
  )  
 :int
Arguments
ui::AbstractXMLFormform–
HashTableattributes–
Returns
int–

 
→ top of page
Method calcMinimumSizeX
Signature
calcMinimumSizeX()

 
→ top of page
Method calcMinimumSizeY
Signature
calcMinimumSizeY()

 
→ top of page
Method calcPreferredSizeX
Signature
calcPreferredSizeX()

 
→ top of page
Method calcPreferredSizeY
Signature
calcPreferredSizeY()

 
→ top of page
Method centerY
Signature
centerY()

 
→ top of page
Method colorizeLine
Signature
colorizeLine(intlineIdx,
  intc32 
  )  
Arguments
intlineIdx–
intc32–

 
→ top of page
Method consumeAction
Signature
consumeAction(ui::Actionaction)
 :int
Arguments
ui::Actionaction–
Returns
int–

 
→ top of page
Method endMouseSelection
Signature
endMouseSelection(ui::MouseEventev)
 :int
Arguments
Returns
int–

 
→ top of page
Method expandSelectionToCursor
Signature
expandSelectionToCursor(intox,
  intoy 
  )  
Arguments
intox–
intoy–

 
→ top of page
Method findTextAndSetCursor
Signature
findTextAndSetCursor(Stringtext)
Arguments
Stringtext–

 
→ top of page
Method getCurrentRow
Signature
getCurrentRow():String
Returns
String–

 
→ top of page
Method getCurrentRowLength
Signature
getCurrentRowLength():int
Returns
int–

 
→ top of page
Method getCursorPx
Signature
getCursorPx():int
Returns
int–

 
→ top of page
Method getCursorPy
Signature
getCursorPy():int
Returns
int–

 
→ top of page
Method getCursorX
Signature
getCursorX():int
Returns
int–

 
→ top of page
Method getCursorY
Signature
getCursorY():int
Returns
int–

 
→ top of page
Method getCursorYForLine
Returns void (if not visible) or cursor y coordinate for the given line number.
Signature
getCursorYForLine(intlinenr)
 :int
Arguments
intlinenr–
Returns
int–

 
→ top of page
Method getCursorYRel
Signature
getCursorYRel():float
Returns
float–

 
→ top of page
Method getFixedNumCols
Signature
getFixedNumCols():int
Returns
int–

 
→ top of page
Method getFixedNumRows
Return fixed number of rows.
Signature
getFixedNumRows():int
Returns
int–

 
→ top of page
Method getMaxNumCols
Get maximum number of columns.
Signature
getMaxNumCols():int
Returns
int–

 
→ top of page
Method getMaxNumRows
Get maximum number of rows.
Signature
getMaxNumRows():int
Returns
int–

 
→ top of page
Method getMinNumCols
Return minimum number of columns.
Signature
getMinNumCols():int
Returns
int–

 
→ top of page
Method getMinNumRows
Return minimum number of rows.
Signature
getMinNumRows():int
Returns
int–

 
→ top of page
Method getNumCols
Return current number of visible columns.
Signature
getNumCols():int
Returns
int–

 
→ top of page
Method getNumRows
Return current number of visible rows.
Signature
getNumRows():int
Returns
int–

 
→ top of page
Method getPercentageVisible
Signature
getPercentageVisible():float
Returns
float–

 
→ top of page
Method getSelectedText
Return selected text (concatenates selected region).
Signature
getSelectedText():String
Returns
String–

 
→ top of page
Method getSelectedTextTrimToFirstLine
Signature
getSelectedTextTrimToFirstLine():String
Returns
String–

 
→ top of page
Method getText
Return edited text (concatenates all lines).
Signature
getText():String
Returns
String–

 
→ top of page
Method getTextLines
Signature
getTextLines():StringArray
Returns

 
→ top of page
Method getViewX
Signature
getViewX():int
Returns
int–

 
→ top of page
Method getViewY
Signature
getViewY():int
Returns
int–

 
→ top of page
Method getVisibleRowAttributesByIndex
Signature
getVisibleRowAttributesByIndex(intvisY)
 :IntArray
Arguments
intvisY–
Returns

 
→ top of page
Method getVisibleRowColorsByIndex
Signature
getVisibleRowColorsByIndex(intvisY)
 :IntArray
Arguments
intvisY–
Returns

 
→ top of page
Method getVisibleRowStringByIndex
Signature
getVisibleRowStringByIndex(intvisY)
Arguments
intvisY–

 
→ top of page
Method gotoEnd
Signature
gotoEnd()

 
→ top of page
Method gotoPixelXY
Signature
gotoPixelXY(floatx,
  floaty 
  )  
Arguments
floatx–
floaty–

 
→ top of page
Method gotoPreferredCursorX
Signature
gotoPreferredCursorX()

 
→ top of page
Method gotoTop
Signature
gotoTop()

 
→ top of page
Method gotoX
Goto line offset
Signature
gotoX(intlineOffset)
Arguments
intlineOffset–

 
→ top of page
Method gotoXY
Signature
gotoXY(intx,
  inty 
  )  
Arguments
intx–
inty–

 
→ top of page
Method gotoY
Goto line
Signature
gotoY(intline)
Arguments
intline–

 
→ top of page
Method gotoYRel
Signature
gotoYRel(floatrel)
Arguments
floatrel–

 
→ top of page
Method handleCursorMoveHighlightReset
Signature
handleCursorMoveHighlightReset()

 
→ top of page
Method haveSelection
Check if a selection is available.
Signature
haveSelection():int
Returns
int–

 
→ top of page
Method initTextView
Signature
initTextView()

 
→ top of page
Method isCursorXBeforeFirstLineWord
Signature
isCursorXBeforeFirstLineWord():int
Returns
int–

 
→ top of page
Method isMouseFocusLocked
Signature
isMouseFocusLocked():int
Returns
int–

 
→ top of page
Method layoutHierarchy
Signature
layoutHierarchy(intbInvalidateSizeCaches,
  intbLayoutFinal 
  )  
Arguments
intbInvalidateSizeCaches–
intbLayoutFinal–

 
→ top of page
Method makeLineVisible
Signature
makeLineVisible(intlineIdx)
Arguments
intlineIdx–

 
→ top of page
Method moveCursorDown
Signature
moveCursorDown():int
Returns
int–

 
→ top of page
Method moveCursorLeft
Signature
moveCursorLeft():int
Returns
int–

 
→ top of page
Method moveCursorRight
Signature
moveCursorRight():int
Returns
int–

 
→ top of page
Method moveCursorRightWithinLine
Signature
moveCursorRightWithinLine():int
Returns
int–

 
→ top of page
Method moveCursorToRow
Signature
moveCursorToRow(introw)
Arguments
introw–

 
→ top of page
Method moveCursorUp
Signature
moveCursorUp():int
Returns
int–

 
→ top of page
Method onDraw
Signature
onDraw()

 
→ top of page
Method onKey
Signature
onKey(Keyk)
 :int
Arguments
Keyk–
Returns
int–

 
→ top of page
Method onKeyboardFocusLost
Signature
onKeyboardFocusLost(intbQuiet)
Arguments
intbQuiet–

 
→ top of page
Method onLookAndFeelChanged
Signature
onLookAndFeelChanged()

 
→ top of page
Method onMouse
Signature
onMouse(ui::MouseEventev)
 :int
Arguments
Returns
int–

 
→ top of page
Method onMouseClick
Signature
onMouseClick(ui::MouseEventev)
 :int
Arguments
Returns
int–

 
→ top of page
Method onMouseDoubleClick
Signature
onMouseDoubleClick(ui::MouseEventev)
 :int
Arguments
Returns
int–

 
→ top of page
Method onMouseFocus
Signature
onMouseFocus()

 
→ top of page
Method onOpen
Signature
onOpen()

 
→ top of page
Method onResize
Signature
onResize()

 
→ top of page
Method pageDown
Signature
pageDown()

 
→ top of page
Method pageUp
Signature
pageUp()

 
→ top of page
Method queueUpdateHighlightLine
Signature
queueUpdateHighlightLine()

 
→ top of page
Method redrawAllRows
Signature
redrawAllRows()

 
→ top of page
Method redrawCurrentRow
Signature
redrawCurrentRow()

 
→ top of page
Method render
Render texture stripes. Assumes that the bg has already been filled.
Signature
render()

 
→ top of page
Method resetAllAttributes
Resets attributes+colors of all visible lines.
Signature
resetAllAttributes()

 
→ top of page
Method resetLineAttributes
Signature
resetLineAttributes(intlineNr)
Arguments
intlineNr–

 
→ top of page
Method scrollDown
Signature
scrollDown()

 
→ top of page
Method scrollLeft
Signature
scrollLeft()

 
→ top of page
Method scrollRight
Signature
scrollRight()

 
→ top of page
Method scrollUp
Signature
scrollUp()

 
→ top of page
Method selectAll
Select all text lines
Signature
selectAll()

 
→ top of page
Method selectNone
Select nothing
Signature
selectNone()

 
→ top of page
Method selectWord
Select word under cursor
Signature
selectWord()

 
→ top of page
Method setFixedNumCols
Set fixed number of columns and disable dynamic resizing.
Signature
setFixedNumCols(intnumCols)
Arguments
intnumCols–

 
→ top of page
Method setFixedNumRows
Set fixed number of rows and disable dynamic y resizing.
Signature
setFixedNumRows(intnumRows)
Arguments
intnumRows–

 
→ top of page
Method setHighlightLineIdx
Signature
setHighlightLineIdx(intlineIdx,
  intc32 
  )  
Arguments
intlineIdx–
intc32–

 
→ top of page
Method setLogMaxLines
Set number of lines in logview mode.
Signature
setLogMaxLines(intmaxLines)
Arguments
intmaxLines–

 
→ top of page
Method setMaxNumCols
Set maximum number of columns and enable dynamic x resizing.
Signature
setMaxNumCols(intnumCols)
Arguments
intnumCols–

 
→ top of page
Method setMaxNumRows
Set maximum number of rows and enable dynamic y resizing.
Signature
setMaxNumRows(intnumRows)
Arguments
intnumRows–

 
→ top of page
Method setMinNumCols
Set minimum number of columns and enable dynamic x resizing.
Signature
setMinNumCols(intnumCols)
Arguments
intnumCols–

 
→ top of page
Method setMinNumRows
Set minimum number of rows and enable dynamic y resizing.
Signature
setMinNumRows(intnumRows)
Arguments
intnumRows–

 
→ top of page
Method setSelectionEndByPixel
Signature
setSelectionEndByPixel(floatx,
  floaty 
  )  
Arguments
floatx–
floaty–

 
→ top of page
Method setSelectionStartByPixel
Signature
setSelectionStartByPixel(floatx,
  floaty 
  )  
Arguments
floatx–
floaty–

 
→ top of page
Method setSyntaxHighlighter
Signature
setSyntaxHighlighter(Objecthl)
Arguments
Objecthl–

 
→ top of page
Method setText
Set text lines by string. Each line must be terminated with the n character.
Signature
setText(Stringtext)
Arguments
Stringtext–

 
→ top of page
Method showFindDialog
Signature
showFindDialog()

 
→ top of page
Method showFindDialogSelectedTextOrLastFindString
Signature
showFindDialogSelectedTextOrLastFindString()

 
→ top of page
Method startCaretTimer
Signature
startCaretTimer()

 
→ top of page
Method startSelectionIfEmpty
Signature
startSelectionIfEmpty()

 
→ top of page
Method updateDynamicSize
Signature
updateDynamicSize()

 
→ top of page
Method updateHighlightLine
Signature
updateHighlightLine()

 
→ top of page
Method updateLineSelection
Signature
updateLineSelection(intlineNr,
  intbResetAttributes 
  )  
Arguments
intlineNr–
intbResetAttributes–

 
→ top of page
Method updatePreferredCursorX
Signature
updatePreferredCursorX()

 
→ top of page
Method updateRequiredSize
Signature
updateRequiredSize()

 
→ top of page
Method updateSelection
Prepare selection rendering for all visible lines. Called if the selection has changed.
Signature
updateSelection(intbResetAttributes)
Arguments
intbResetAttributes–

 
→ top of page
Method validateCursorPosition
Signature
validateCursorPosition()

 
→ top of page
Method validateCursorX
Signature
validateCursorX()

 
→ top of page
Method validateCursorY
Signature
validateCursorY()

 
→ top of page
Method wantOnMouseClickAfterOnMouseWasHandled
Signature
wantOnMouseClickAfterOnMouseWasHandled():int
Returns
int–

 
→ top of page
 

Project Modules:MAbstractXMLForm , MAcceleratorKey , MAcceleratorList , MAction , MActionConsumer , MActionProvider , MBezier01Edit , MBezierEdit , MButton , MCharFilter , MCharFilterBinary255Expr , MCharFilterFloat , MCharFilterFloatExpr , MCharFilterHex , MCharFilterHexExpr , MCharFilterHexShort , MCharFilterHexShortExpr , MCharFilterUFix16 , MCheckBox , MChoiceDialog , MCmdProvider , MColorBox , MColorButton , MComboBox , MComboBoxPopup , MComboBoxTM , MComboField , MComposite , MControl , MCursorShapes , MDial , MDialog , MDragHandleLabel , MDynamicPopupMenuAction , MFBO , MFloatAction , MFloatField , MFloatingLayer , MFloatParam , MFloatParamDialog , MFloatParamEditor , MFlowLayout , MFont , MFontCache , MFontResource , MForm , MFT2Face , MFT2FontResource , MFT2Glyph , MGeometry4f , MGraph , MGraphForm , MGridLayout , MHiddenPanel , MHSVColorPicker , MIcon , MIconCache , MInfoDialog , MIntAction , MKeyAction , MKeyboardMonitor , MKeyHelpDialog , MLabel , MLayer , MLayerSwitch , MLayout , MLogger , MLookAndFeel , MLookAndFeel_Dark , MLookAndFeel_Light , MLookAndFeel_Mono , MMouseEvent , MObjectAction , MOpaquePanel , MPanel , MPNGIcon , MPopupMenu , MPopupMenuBar , MPopupMenuBarButton , MPopupMenuButton , MPopupMenuCheckButton , MPopupMenuFolderButton , MPopupMenuSeparator , MPopupMenuWindowDock , MRadioButton , MRadioButtonGroup , MRectangle2f , MRepeatButton , MScroller , MScrollPane , MShader , MShader_ColorGrading , MShader_GradientH , MShader_GradientR , MShader_GradientV , MShader_InvertColor , MShader_PatternFill , MShader_PatternGradientH , MShader_PatternGradientR , MShader_PatternGradientV , MShader_SharpenFilter , MShader_SharpenFilterAndColorGrading , MShape , MShapePolyline , MSizeGroup , MSizeGroupX , MSizeGroupXY , MSizeGroupY , MSlider , MSpacer , MSplitPane , MStatusBar , MStringAction , MStringDialog , MSuperBorderLayout , MTableCellEditor , MTableCellEditorCheckBox , MTableCellEditorComboBox , MTableCellEditorFloatParam , MTableCellEditorString , MTableModel , MTableView , MTableViewData , MTableViewHeader , MTabSwitch , MTextEdit , MTextEditDialog , MTextField , MTextFieldIncDec , MTextInputDialog , MTextView , MTimerAction , MTitledPanel , MToolTip , MTransparentPanel , MTreeTableModel , MTreeTableNode , MUI , MUIConstants , MUIPluginLoader , MUIRenderer , MUserDataContainer , MValueAction , MView , MViewPane , MWindow , MWindowDock , MWindowTitleBar , MXFMObject , MXMLForm , MXYPad 
Project Classes:CmdProvider , ColorBox , graph::AttribsBase , graph::BBox , graph::Canvas , graph::Cell , graph::Edge , graph::GR , graph::Graph , graph::GRGradient , graph::GRPalette , graph::GRParseContext , graph::GRStyle , graph::GRUtils , graph::Node , graph::Port , graph::PortsBase , HSVColorPicker , ui::AbstractXMLForm , ui::AcceleratorKey , ui::AcceleratorList , ui::Action , ui::ActionConsumer , ui::ActionProvider , ui::Bezier01Edit , ui::BezierEdit , ui::BezierEditState , ui::BezierHistory , ui::BezierLUT01 , ui::BorderLayout , ui::Button , ui::CharFilter , ui::CharFilterBinary255Expr , ui::CharFilterFloat , ui::CharFilterFloatExpr , ui::CharFilterHex , ui::CharFilterHexExpr , ui::CharFilterHexShort , ui::CharFilterHexShortExpr , ui::CharFilterUFix16 , ui::CheckBox , ui::ChoiceDialog , ui::ColorButton , ui::ComboBox , ui::ComboBoxPopup , ui::ComboBoxTM , ui::ComboField , ui::Composite , ui::Control , ui::CursorShapes , ui::Dial , ui::Dialog , ui::DragHandleLabel , ui::DynamicPopupMenuAction , ui::FBO , ui::FloatAction , ui::FloatField , ui::FloatingLayer , ui::FloatParam , ui::FloatParamDialog , ui::FloatParamEditor , ui::FlowLayout , ui::Font , ui::FontCache , ui::FontResource , ui::Form , ui::FT2Face , ui::FT2FontResource , ui::FT2Glyph , ui::FT2LocalFileFontResource , ui::FT2PakFileFontResource , ui::Geometry4f , ui::GraphEdge , ui::GraphEdgeArrow , ui::GraphForm , ui::GraphPortButton , ui::GridLayout , ui::HiddenPanel , ui::Icon , ui::IconCache , ui::InfoDialog , ui::IntAction , ui::KeyAction , ui::KeyboardFocusListener , ui::KeyboardMonitor , ui::KeyboardMonitorEntry , ui::KeyHelpButton , ui::KeyHelpDialog , ui::KeyHelpToolTip , ui::KeyRepeatAction , ui::KeyRepeatConsumer , ui::Label , ui::Layer , ui::LayerSwitch , ui::Layout , ui::Logger , ui::LookAndFeel , ui::LookAndFeelDefs , ui::LookAndFeel_Dark , ui::LookAndFeel_Light , ui::LookAndFeel_Mono , ui::MouseEvent , ui::MouseHoldAction , ui::MouseHoldConsumer , ui::ObjectAction , ui::OpaquePanel , ui::Panel , ui::PNGIcon , ui::PopupMenu , ui::PopupMenuBar , ui::PopupMenuBarButton , ui::PopupMenuButton , ui::PopupMenuCheckButton , ui::PopupMenuFolderButton , ui::PopupMenuRadioButton , ui::PopupMenuSeparator , ui::PopupMenuWindowDock , ui::RadioButton , ui::RadioButtonGroup , ui::Rectangle2f , ui::RepeatButton , ui::Scroller , ui::ScrollPane , ui::Shader , ui::Shader_ColorGrading , ui::Shader_GradientH , ui::Shader_GradientR , ui::Shader_GradientV , ui::Shader_InvertColor , ui::Shader_PatternFill , ui::Shader_PatternGradientH , ui::Shader_PatternGradientR , ui::Shader_PatternGradientV , ui::Shader_SharpenFilter , ui::Shader_SharpenFilterAndColorGrading , ui::Shape , ui::ShapePolyline , ui::SizeGroup , ui::SizeGroupX , ui::SizeGroupXY , ui::SizeGroupY , ui::Slider , ui::Spacer , ui::SplitPane , ui::StatusBar , ui::StatusBarListener , ui::StatusBarMessage , ui::StringAction , ui::StringDialog , ui::StringDialogTextField , ui::SuperBorderLayout , ui::TableCellEditor , ui::TableCellEditorCheckBox , ui::TableCellEditorComboBox , ui::TableCellEditorFloatParam , ui::TableCellEditorString , ui::TableGraphPanel , ui::TableModel , ui::TableView , ui::TableViewData , ui::TableViewHeader , ui::TabSwitch , ui::TabSwitchLabelPanel , ui::TextEdit , ui::TextEditDialog , ui::TextEditPlugin , ui::TextEditUndoEntry , ui::TextField , ui::TextFieldIncDec , ui::TextInputDialog , ui::TextView , ui::TextViewSyntaxHighlighter , ui::TimerAction , ui::TitledPanel , ui::ToolTip , ui::TransparentPanel , ui::TreeTableModel , ui::TreeTableNode , ui::TriadKeyConsumer , ui::UI , ui::UIConstants , ui::UIRenderer , ui::UserDataContainer , ui::ValueAction , ui::View , ui::ViewPane , ui::Window , ui::WindowDock , ui::WindowTitleBar , ui::XFMObject , ui::XMLForm , ui::XYPad 
Project Functions:getTableViewStepCoarse , Screen_onApplicationActive , Screen_onClose , Screen_onDrainEventQueue , Screen_onDraw , Screen_onDropFiles , Screen_onExpose , Screen_onInputFocusActive , Screen_onKeyboard , Screen_onMouse , Screen_onMouseFocusActive , Screen_onMoveWindow , Screen_onOpen , Screen_onResize , Screen_onTimer , SetDebugLevel , SetDebugLevel , SetEnableProfiling 
All Namespaces:default , graph , ui 
All Projects:core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest 


auto-generated by "DOG", the TkScript document generator. Tue, 3/Mar/2026 18:10:18