forked from Fedomer/matplotlibcpp17
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiver.h
More file actions
34 lines (26 loc) · 812 Bytes
/
Copy pathquiver.h
File metadata and controls
34 lines (26 loc) · 812 Bytes
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
/**
* @file quiver.h
* @brief corresponding header for matplotlib.quiver
**/
#ifndef MATPLOTLIBCPP17_QUIVER_H
#define MATPLOTLIBCPP17_QUIVER_H
#include <matplotlibcpp17/common.h>
#include <pybind11/pybind11.h>
namespace matplotlibcpp17::quiver {
/**
* @brief A wrapper class for matplotlib.quiver.Quiver
**/
struct DECL_STRUCT_ATTR Quiver : public BaseWrapper {
public:
Quiver(const pybind11::object &q) { self = q; }
Quiver(pybind11::object &&q) { self = std::move(q); }
};
/**
* @brief A wrapper class for matplotlib.quiver.QuiverKey
**/
struct DECL_STRUCT_ATTR QuiverKey : public BaseWrapper {
QuiverKey(const pybind11::object &qk) { self = qk; }
QuiverKey(pybind11::object &&qk) { self = std::move(qk); }
};
} // namespace matplotlibcpp17::quiver
#endif /* MATPLOTLIBCPP17_QUIVER_H */