On Wed, 2019-09-04 at 07:41 -0700, cekkr wrote:
Hello,
I'm studying the working of windows rendering, in particular on OS X.
Which parts of codes are strictly related to "primitive" functions
for rendering on the different OSs?
For be a little more clear, "ad absurdum" where I have to code for
implement LibreOffice on a my theoretical graphic server?
As a sample, for bottom level drawing, you typically inherit from
SalGraphics in vcl/inc/salgdi.hxx and provide implementations of the
pure virtual methods of that, e.g.
virtual void drawPixel( long nX, long nY ) = 0;
vcl/headless/svpgdi.cxx is one such implementation that draws to a
cairo canvas and is reused by the gtk3 implementation.
FWIW the OSX one is in vcl/quartz/salgdi.cxx and
vcl/quartz/salgdicommon.cxx
That's the bottom level drawing stuff. See vcl/inc/salinst.hxx for the
entry point for creating toplevel frames, printers, off-screen virtual
drawing devices, and so on
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.