matplotlibcpp17
text.h
1
5
#pragma once
6
7
#include <matplotlibcpp17/common.h>
8
9
#include <pybind11/pybind11.h>
10
14
namespace
matplotlibcpp17::text
{
15
16
struct
DECL_STRUCT_ATTR
Text
:
public
BaseWrapper
{
17
public
:
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
30
private
:
31
void
load_attrs() { LOAD_FUNC_ATTR(set_rotation,
self
); }
32
pybind11::object set_rotation_attr;
33
};
34
35
inline
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
matplotlibcpp17::text
A wrapper class for matplotlib.text.Text.
Definition:
text.h:14
matplotlibcpp17::BaseWrapper
A base class for python wrapper classes.
Definition:
common.h:39
matplotlibcpp17::ObjectWrapper
A proxy class for pybind object.
Definition:
common.h:50
matplotlibcpp17::text::Text
Definition:
text.h:16
include
matplotlibcpp17
text.h
Generated by
1.9.2