void base_window::rise() { if (getDisableRise()) return; if(m_parent) { m_parent->rise(); } }
void Tooltip::rise() { if (getDisableRise() || !m_parent) return; children_t& children = m_parent->getChildren(); if (children.size() < 2) return; for (child_iter it = children.begin(), end = children.end(); it != end; ++it) { if (it->get() != this) continue; std::swap(*(--children.end()), *it); return; } }