FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
matplotlib/src/py_converters.h at master · dashed/matplotlib · GitHub
dashed
matplotlib
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
matplotlib
/
src
/
py_converters.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
49 lines (41 loc) · 1.78 KB
Breadcrumbs
matplotlib
/
src
/
py_converters.h
Copy path
File metadata and controls
49 lines (41 loc) · 1.78 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
-*- mode: c++; c-basic-offset: 4 -*-
*/
#
ifndef
__PY_CONVERTERS_H__
#
define
__PY_CONVERTERS_H__
/*
**************************************************************************
* This module contains a number of conversion functions from Python types
* to C++ types. Most of them meet the Python "converter" signature:
*
* typedef int (*converter)(PyObject *, void *);
*
* and thus can be passed as conversion functions to PyArg_ParseTuple
* and friends.
*/
#
include
<
Python.h
>
#
include
"
numpy_cpp.h
"
#
include
"
_backend_agg_basic_types.h
"
extern
"
C
"
{
typedef
int
(*converter)(PyObject *,
void
*);
int
convert_from_attr
(PyObject *obj,
const
char
*name, converter func,
void
*p);
int
convert_from_method
(PyObject *obj,
const
char
*name, converter func,
void
*p);
int
convert_double
(PyObject *obj,
void
*p);
int
convert_bool
(PyObject *obj,
void
*p);
int
convert_cap
(PyObject *capobj,
void
*capp);
int
convert_join
(PyObject *joinobj,
void
*joinp);
int
convert_rect
(PyObject *rectobj,
void
*rectp);
int
convert_rgba
(PyObject *rgbaocj,
void
*rgbap);
int
convert_dashes
(PyObject *dashobj,
void
*gcp);
int
convert_dashes_vector
(PyObject *obj,
void
*dashesp);
int
convert_trans_affine
(PyObject *obj,
void
*transp);
int
convert_path
(PyObject *obj,
void
*pathp);
int
convert_clippath
(PyObject *clippath_tuple,
void
*clippathp);
int
convert_snap
(PyObject *obj,
void
*snapp);
int
convert_offset_position
(PyObject *obj,
void
*offsetp);
int
convert_sketch_params
(PyObject *obj,
void
*sketchp);
int
convert_gcagg
(PyObject *pygc,
void
*gcp);
int
convert_points
(PyObject *pygc,
void
*pointsp);
int
convert_transforms
(PyObject *pygc,
void
*transp);
int
convert_bboxes
(PyObject *pygc,
void
*bboxp);
int
convert_colors
(PyObject *pygc,
void
*colorsp);
int
convert_face
(PyObject *color, GCAgg &gc, agg::rgba *rgba);
}
#
endif
Back
|
FazBrowse Home
|
New Git URL