We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9d541f5 commit724a2aaCopy full SHA for 724a2aa
bindings/interface/TextView.cpp
@@ -38,7 +38,7 @@ py::class_<text_run_array>(m, "text_run_array")
38
.def_readonly("runs", &text_run_array::runs,"")
39
;
40
41
-py::class_<BTextView, BView>(m,"BTextView")
+py::class_<BTextView, BView, std::unique_ptr<BTextView,py::nodelete>>(m,"BTextView")
42
.def(py::init<BRect,constchar *, BRect,unsignedint,unsignedint>(),"",py::arg("frame"),py::arg("name"),py::arg("textRect"),py::arg("resizeMask"),py::arg("flags")=B_WILL_DRAW | B_PULSE_NEEDED)
43
.def(py::init<BRect,constchar *, BRect,const BFont *,const rgb_color *,unsignedint,unsignedint>(),"",py::arg("frame"),py::arg("name"),py::arg("textRect"),py::arg("initialFont"),py::arg("initialColor"),py::arg("resizeMask"),py::arg("flags"))
44
.def(py::init<constchar *,unsignedint>(),"",py::arg("name"),py::arg("flags")=B_WILL_DRAW | B_PULSE_NEEDED)