Пример #1
0
 void draw(const Rect& clip)
 {
     for (size_t i = 0; i < this->size; ++i) {
         Widget2 *w = this->child_list[i];
         w->refresh(clip.intersect(w->rect));
     }
 }
Пример #2
0
    virtual void draw_children(const Rect & clip) {
        CompositeContainer::iterator iter_w_current = this->impl->get_first();
        while (iter_w_current != reinterpret_cast<CompositeContainer::iterator>(CompositeContainer::invalid_iterator)) {
            Widget2 * w = this->impl->get(iter_w_current);
            REDASSERT(w);

            w->refresh(clip.intersect(w->rect));

            iter_w_current = this->impl->get_next(iter_w_current);
        }
    }
Пример #3
0
 virtual void draw(const Rect& clip) {
     for (size_t i = 0; i < this->nb_items; ++i) {
         Widget2 *w = this->items[i];
         w->refresh(clip.intersect(this->rect));
     }
 }