aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/doc/index.rst
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2018-11-14 15:04:00 +0100
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2018-11-30 11:57:03 +0000
commit0a40640a1882dceb34f601dc818cd64c29612672 (patch)
treef69947c309a52113d7a1ed1b7829967774f073d7 /sources/shiboken2/doc/index.rst
parent81e7fd946f172df3e567a6caef463b559505b106 (diff)
Doc: Add an index page for Shiboken
Also document the samplebinding example. Change-Id: I2ee1fa6049ae672f5ab46df4d1eba411e69dc3c7 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken2/doc/index.rst')
-rw-r--r--sources/shiboken2/doc/index.rst28
1 files changed, 28 insertions, 0 deletions
diff --git a/sources/shiboken2/doc/index.rst b/sources/shiboken2/doc/index.rst
new file mode 100644
index 000000000..4cc5b204e
--- /dev/null
+++ b/sources/shiboken2/doc/index.rst
@@ -0,0 +1,28 @@
+Shiboken the Binding Generator
+*******************************
+
+Shiboken is the CPython-based binding code generator for C or C++ libraries.
+It uses an ApiExtractor library to parse the C or C++ headers and get the
+type information, using Clang. The library can also be used to parse non-Qt
+projects. The following diagram summarizes Shiboken's role in the PySide
+project.
+
+.. image:: images/qtforpython-underthehood.png
+
+A typesystem file (XML) is used to specify the types to be exposed to Python
+and to apply modifications to properly represent and manipulate the types in
+the Python World. For example, you can remove and add methods to certain types,
+and also modify the arguments of each method. Such actions are inevitable to
+properly handle the data structures or types.
+
+The final outcome of this process is a set of wrappers written in CPython,
+which can be used as a module in your python code.
+
+Refer to the following topics for more information and examples:
+
+.. toctree::
+ :maxdepth: 1
+
+ overview
+ samplebinding
+ contents