MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get() [2/2]

const Element * MayaFlux::Portal::Forma::Layer::get ( uint32_t  id) const

Definition at line 272 of file Layer.cpp.

273{
274 if (m_index_stale)
275 reindex();
276 const auto it = m_index.find(id);
277 return it != m_index.end() ? &m_elements[it->second] : nullptr;
278}
std::vector< Element > m_elements
Definition Layer.hpp:313
std::unordered_map< uint32_t, size_t > m_index
Definition Layer.hpp:314

References m_elements, m_index, m_index_stale, and reindex().

Referenced by bring_to_front(), MayaFlux::Portal::Forma::Scrollable::indicator(), MayaFlux::Portal::Forma::Plot::place_label(), relate(), remove(), MayaFlux::Portal::Forma::Scrollable::scroll_by(), send_to_back(), set_bounds(), set_clip(), set_contains(), set_interactive(), and set_visible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: