include BLF in automated doc generation
http://www.blender.org/documentation/250PythonDoc/BLF.html
This commit is contained in:
@@ -270,6 +270,7 @@ def rna2sphinx(BASEPATH):
|
||||
fw(" bpy.props.rst\n\n")
|
||||
|
||||
fw(" Mathutils.rst\n\n")
|
||||
fw(" BLF.rst\n\n")
|
||||
|
||||
file.close()
|
||||
|
||||
@@ -313,7 +314,9 @@ def rna2sphinx(BASEPATH):
|
||||
pymodule2sphinx(BASEPATH, "Mathutils", module, "Math Types & Utilities (Mathutils)")
|
||||
del module
|
||||
|
||||
|
||||
import BLF as module
|
||||
pymodule2sphinx(BASEPATH, "BLF", module, "Blender Font Drawing (BLF)")
|
||||
del module
|
||||
|
||||
if 0:
|
||||
filepath = os.path.join(BASEPATH, "bpy.rst")
|
||||
|
||||
@@ -48,7 +48,7 @@ static PyObject *py_blf_position(PyObject *self, PyObject *args)
|
||||
static char py_blf_size_doc[] =
|
||||
".. function:: size(size, dpi)\n"
|
||||
"\n"
|
||||
" Set the position for drawing text.\n"
|
||||
" Set the size and dpi for drawing text.\n"
|
||||
"\n"
|
||||
" :arg size: Point size of the font.\n"
|
||||
" :type size: int\n"
|
||||
@@ -90,12 +90,12 @@ static PyObject *py_blf_aspect(PyObject *self, PyObject *args)
|
||||
|
||||
|
||||
static char py_blf_blur_doc[] =
|
||||
".. function:: blur(aspect)\n"
|
||||
".. function:: blur(radius)\n"
|
||||
"\n"
|
||||
" Set the blur radius for drawing text.\n"
|
||||
"\n"
|
||||
" :arg blur: The radius for bluring text.\n"
|
||||
" :type aspect: float\n";
|
||||
" :arg radius: The radius for blurring text (in pixels).\n"
|
||||
" :type radius: int\n";
|
||||
|
||||
static PyObject *py_blf_blur(PyObject *self, PyObject *args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user