[webkit-dev] Widget / Drawing API thoughts

Justin Haygood justin at xiondigital.net
Fri Jun 10 15:15:37 PDT 2005

Even though I'm nowhere near there yet (got to get JSCore working first 
;) ), here is an idea:

Have KWQ use cross-platform C/C++ implementations, keeping everything as 
high level as possible, and use C++ inheritence to inherit from platform 
specific implementations.

for instance, QRegion can be implemented sans Cocoa for the stuff that 
is already cross platform, but inherit from a KWQRegion which has 
different implementations for Cocoa, Win32, GTK+, Qt (hey, why not?), 
wxWidgets, etc...

possible directory layout:

             C++ / Objective C sources for Cocoa
             C++ / C sources for GTK+
             C++ sources for wxWidgets
             C++ / C sources for Win32
    \C++ sources which are fairly cross platform (there's plenty)

And possibly do this for other places as well... to separate Cocoa calls 
from the rest.

More information about the webkit-dev mailing list