@@ -268,7 +268,13 @@ py::class_<BTextView, PyBTextView, BView, std::unique_ptr<BTextView,py::nodelete
268
268
}," " ,py::arg (" offset" ))
269
269
.def (" OffsetAt" , py::overload_cast<BPoint>(&BTextView::OffsetAt,py::const_), " " , py::arg (" point" ))
270
270
.def (" OffsetAt" , py::overload_cast<int32>(&BTextView::OffsetAt,py::const_), " " , py::arg (" line" ))
271
- .def (" FindWord" , &BTextView::FindWord, " " , py::arg (" offset" ), py::arg (" _fromOffset" ), py::arg (" _toOffset" ))
271
+ // .def("FindWord", &BTextView::FindWord, "", py::arg("offset"), py::arg("_fromOffset"), py::arg("_toOffset"))
272
+ .def (" FindWord" , [](BTextView& self, int32 offset) -> std::tuple<int32,int32>{
273
+ int32 _fromOffset;
274
+ int32 _toOffset;
275
+ self.FindWord (offset,&_fromOffset,&_toOffset);
276
+ return std::make_tuple (_fromOffset,_toOffset);
277
+ }," " , py::arg (" offset" ))
272
278
.def (" CanEndLine" , &BTextView::CanEndLine, " " , py::arg (" offset" ))
273
279
.def (" LineWidth" , &BTextView::LineWidth, " " , py::arg (" lineNumber" )=0 )
274
280
.def (" LineHeight" , &BTextView::LineHeight, " " , py::arg (" lineNumber" )=0 )
0 commit comments