matplotlibcpp17
animation.h
1
5#pragma once
6
7#include <pybind11/pybind11.h>
8
9#include <matplotlibcpp17/common.h>
10
11namespace matplotlibcpp17::animation {
12
16struct DECL_STRUCT_ATTR ArtistAnimation : public BaseWrapper {
17public:
18 ArtistAnimation(const pybind11::tuple &args, const pybind11::dict &kwargs) {
19 pybind11::object attr = pybind11::module::import("matplotlib.animation")
20 .attr("ArtistAnimation");
21 self = attr(*args, **kwargs);
22 load_attrs();
23 }
24 // save
25 ObjectWrapper save(const pybind11::tuple &args = pybind11::tuple(),
26 const pybind11::dict &kwargs = pybind11::dict());
27
28private:
29 void load_attrs() { LOAD_FUNC_ATTR(save, self); }
30 pybind11::object save_attr;
31};
32
33// save
34ObjectWrapper ArtistAnimation::save(const pybind11::tuple &args,
35 const pybind11::dict &kwargs) {
36 pybind11::object ret = save_attr(*args, **kwargs);
37 return ObjectWrapper(std::move(ret));
38}
39
40} // namespace matplotlibcpp17::animation
A base class for python wrapper classes.
Definition: common.h:39
A proxy class for pybind object.
Definition: common.h:50
A wrapper class for matplotlib.animation.ArtistAnimation.
Definition: animation.h:16