[Kde-games-devel] Proposing KGameRenderer

Stefan Majewsky kdemailinglists at bethselamin.de
Sat Jun 12 17:31:56 CEST 2010


On Saturday 12 June 2010 15:59:49 Mauricio Piacentini wrote:
> For this I think you need to expose the
> underlying KGameTheme, no?

Indeed. I need this in KDiamond, too, because the theme has some metrics 
defined in the desktop file. The current version has API

const KGameTheme* KGameRenderer::gameTheme() const;
const KSvgRenderer* KGameRenderer::svgRenderer() const;

So KBlocks would use the KSvgRenderer instance to read its metrics. The only 
problem is that usage of KGameRenderer::svgRenderer defeats some of the 
purpose of KGameRenderer because the SVG file has to be loaded in any case.

Greetings
Stefan


More information about the kde-games-devel mailing list