void move_xy(int16_t x, int16_t y) { CompositeContainer::iterator iter_w_first = this->impl->get_first(); if (iter_w_first != reinterpret_cast<CompositeContainer::iterator>(CompositeContainer::invalid_iterator)) { CompositeContainer::iterator iter_w_current = iter_w_first; do { Widget2 * w = this->impl->get(iter_w_current); REDASSERT(w); w->set_xy(x + w->dx(), y + w->dy()); iter_w_current = this->impl->get_next(iter_w_current); } while ((iter_w_current != iter_w_first) && (iter_w_current != reinterpret_cast<CompositeContainer::iterator>(CompositeContainer::invalid_iterator))); } }
void move_xy(int16_t x, int16_t y) { for (size_t i = 0, max = this->size; i < max; ++i) { Widget2 * w = this->child_list[i]; w->set_xy(x + w->dx(), y + w->dy()); } }