void UI_GADGET::drag_with_children( int dx, int dy ) { UI_GADGET *tmp; x = dx + base_start_x; y = dy + base_start_y; tmp = children; if (tmp) { do { tmp->drag_with_children(dx, dy); tmp = tmp->next; } while (tmp != children); } }