On 2010-03-23 14:45-0700 Alan W. Irwin wrote:

> The other issue I want to bring up now is that there is obviously a tonne of
> infrastructure for X events in xwin.c.  It's not perfect for our current
> -dev xwin needs, and I understand no details of the code, but just from the
> lines of code involved, I believe it is doing much more than what you are
> now doing with xcairo. Once you understand that event infrastructure for
> -dev xwin and have fixed it up for our current -dev xwin needs I assume you
> will want to move the part of it that would be commonly useful for all our
> X-related devices to the PLplot core library, and then adapt xcairo to use
> that common infrastructure.  This would help support the ultimate goal which
> is that X events are handled exactly the same way for all our X-related
> devices.

Hi Hazen:

The last part of the above paragraph is obviously a bad idea since we don't
want our core library to depend on X for the dynamic drivers case.  So to
reframe the paragraph above, our ultimate goal should be common X event
handling for all device drivers that depend on X.  Thus, I expect there will
be the same code used to handle X events in say xwin.c (for PLD_xwin=ON) and
cairo.c (for PLD_xcairo=ON).  Instead of maintaining separate copies of that
code I suggest it be placed in its own separate file, and that common source
file be compiled as part of the xwin and cairo device drivers (or any other
device driver that can use it to help with X event handling).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to