Logo Search packages:      
Sourcecode: widelands version File versions  Download package

void UI::Panel::set_cache ( bool  enable  )  [inherited]

Enable/Disable the drawing cache. When the drawing cache is enabled, draw() is only called after an update() has been called explicitly. Otherwise, the contents of the panel are copied from a cached Pic.

Definition at line 400 of file ui_panel.cc.

Referenced by Window().

/* Deactivated for now
      if (enable)
            if (_cache)
            _cache = new Pic;
            _cache->set_size(_w, _h);
            _needdraw = true;
                  delete _cache;
                  _cache = 0;

Generated by  Doxygen 1.6.0   Back to index