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