add cursor visibility mode

This commit is contained in:
2019-11-21 10:22:48 +01:00
parent 7b63e5d2ce
commit b26a814208
8 changed files with 61 additions and 11 deletions

View File

@@ -175,6 +175,10 @@ public:
if (I->on_mode_changed)
I->on_mode_changed(prev, mode);
}
template <class T> static T* get_mode(int index = 0)
{
return dynamic_cast<T*>(modes[(int)I->m_current_mode][index]);
}
std::vector<LayerFrame::Snapshot> m_layers_snapshot;