| 948 | } |
| 949 | |
| 950 | PyObject* ApplicationPy::sHideObject(PyObject* /*self*/, PyObject* args) |
| 951 | { |
| 952 | PyObject* object = nullptr; |
| 953 | if (!PyArg_ParseTuple(args, "O!", &(App::DocumentObjectPy::Type), &object)) { |
| 954 | return nullptr; |
| 955 | } |
| 956 | |
| 957 | requirePythonMainThread("FreeCADGui.hideObject"); |
| 958 | |
| 959 | // NOLINTNEXTLINE(cppcoreguidelines-pro-type-static-cast-downcast) |
| 960 | App::DocumentObject* obj = static_cast<App::DocumentObjectPy*>(object)->getDocumentObjectPtr(); |
| 961 | Application::Instance->hideViewProvider(obj); |
| 962 | |
| 963 | Py_Return; |
| 964 | } |
| 965 | |
| 966 | PyObject* ApplicationPy::sShowObject(PyObject* /*self*/, PyObject* args) |
| 967 | { |
nothing calls this directly
no test coverage detected