Difference between revisions of "CudaText API"
From Free Pascal wiki
Jump to navigationJump to searchLine 11: | Line 11: | ||
==Caret-related== | ==Caret-related== | ||
===get_caret=== | ===get_caret=== | ||
+ | |||
+ | get_caret() | ||
+ | |||
+ | Returns 4-tuple: info about top visible caret: (PosX, PosY, EndX, EndY). PosY is line index (0-base), PosX is column (0-base), EndY/EndX are position of selection end for this caret or both -1 if no selection. | ||
==Text read/write== | ==Text read/write== | ||
==Properties get/set== | ==Properties get/set== | ||
==Misc== | ==Misc== |
Revision as of 17:51, 23 September 2015
Intro
This is API for CudaText in Python.
- Main Py module is cudatext. Main module has constants, funcs, class Editor, objects of class Editor.
- Additional module: cudatext_cmd has constants for command runner func.
Global funcs
msg_box
Editor class
get_caret
get_caret()
Returns 4-tuple: info about top visible caret: (PosX, PosY, EndX, EndY). PosY is line index (0-base), PosX is column (0-base), EndY/EndX are position of selection end for this caret or both -1 if no selection.