Gui::SelectionObserverPython Class Reference
The SelectionObserverPython class implements a mechanism to register a Python class instance implementing the required interface in order to be notified on selection changes. More...
#include <Selection.h>
Public Member Functions | |
SelectionObserverPython (const Py::Object &obj, int resolve=1) | |
Constructor. More... | |
virtual ~SelectionObserverPython () | |
![]() | |
void attachSelection () | |
Attaches to the selection. More... | |
bool blockConnection (bool block) | |
void detachSelection () | |
Detaches from the selection. More... | |
bool isConnectionAttached () const | |
bool isConnectionBlocked () const | |
SelectionObserver (bool attach=true, int resolve=1) | |
Constructor. More... | |
SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, int resolve=1) | |
Constructor. More... | |
virtual ~SelectionObserver () | |
Static Public Member Functions | |
static void addObserver (const Py::Object &obj, int resolve=1) | |
static void removeObserver (const Py::Object &obj) | |
Detailed Description
The SelectionObserverPython class implements a mechanism to register a Python class instance implementing the required interface in order to be notified on selection changes.
Constructor & Destructor Documentation
◆ SelectionObserverPython()
SelectionObserverPython::SelectionObserverPython | ( | const Py::Object & | obj, |
int | resolve = 1 |
||
) |
Constructor.
Referenced by addObserver().
◆ ~SelectionObserverPython()
|
virtual |
Member Function Documentation
◆ addObserver()
|
static |
References SelectionObserverPython().
Referenced by Gui::SelectionSingleton::sAddSelObserver().
◆ removeObserver()
|
static |
Referenced by Gui::SelectionSingleton::sRemSelObserver().
The documentation for this class was generated from the following files:
- src/Gui/Selection.h
- src/Gui/Selection.cpp