[kde-doc-english] [kate/frameworks] doc/kate: more JS API documentation

Dominik Haumann dhaumann at kde.org
Wed Feb 19 22:20:52 UTC 2014


Git commit e5f60c4fa412ae8fd8b67ff03a5df046f2a202da by Dominik Haumann.
Committed on 19/02/2014 at 22:18.
Pushed by dhaumann into branch 'frameworks'.

more JS API documentation

M  +34   -0    doc/kate/development.docbook

http://commits.kde.org/kate/e5f60c4fa412ae8fd8b67ff03a5df046f2a202da

diff --git a/doc/kate/development.docbook b/doc/kate/development.docbook
index a4efd97..0f23b0d 100644
--- a/doc/kate/development.docbook
+++ b/doc/kate/development.docbook
@@ -1546,6 +1546,40 @@ String document.commentEnd(<parameter>int <replaceable>attribute</replaceable></
 </varlistentry>
 
 
+<varlistentry>
+<term><synopsis>
+Range document.documentRange();
+</synopsis></term>
+<listitem><para>
+    Returns a range that encompasses the whole document.
+</para></listitem>
+</varlistentry>
+
+
+<varlistentry>
+<term><synopsis>
+Cursor documentEnd();
+</synopsis></term>
+<listitem><para>
+    Returns a cursor positioned at the last column of the last line in the document.
+</para></listitem>
+</varlistentry>
+
+
+<varlistentry>
+<term><synopsis>
+bool isValidTextPosition(<parameter>int <replaceable>line</replaceable></parameter>, <parameter>int <replaceable>column</replaceable></parameter>);
+bool isValidTextPosition(<parameter>Cursor <replaceable>cursor</replaceable></parameter>);
+</synopsis></term>
+<listitem><para>
+    Returns <literal>true</literal>, if the given cursor position is positioned at a valid text position.
+    A text position is valid only if it locate at the start, in the middle, or the end of a valid line.
+    Further, a text position is invalid if it is located in a Unicode surrogate.
+</para><para>
+    Since: &kde; 5.0
+</para></listitem>
+</varlistentry>
+
 
 <varlistentry>
 <term><synopsis>


More information about the kde-doc-english mailing list