diff options
-rw-r--r-- | py/pykmsbase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/pykmsbase.cpp b/py/pykmsbase.cpp index f1e0c5c..b279de3 100644 --- a/py/pykmsbase.cpp +++ b/py/pykmsbase.cpp @@ -42,6 +42,8 @@ void init_pykmsbase(py::module &m) .def("get_current_crtc", &Connector::get_current_crtc) .def("get_possible_crtcs", &Connector::get_possible_crtcs) .def("get_modes", &Connector::get_modes) + .def("get_mode", (Videomode (Connector::*)(const string& mode) const)&Connector::get_mode) + .def("get_mode", (Videomode (Connector::*)(unsigned xres, unsigned yres, unsigned refresh, bool ilace) const)&Connector::get_mode) .def("__repr__", [](const Connector& o) { return "<pykms.Connector " + to_string(o.id()) + ">"; }) ; |