Re: SalGraphics::mirror() question

2014-11-23 Thread Chris Sherlock
On Mon, Nov 24, 2014 at 9:40 AM, Thorsten Behrens <
t...@documentfoundation.org> wrote:

> Chris Sherlock wrote:
> > 1. Why is this necessary?
> >
> Dunno - that question should go to the committer, if the context is
> not clear. ;)


I checked the git logs, it predates git history!


> > 2. What is the difference between SalGraphics::GetGraphicsWidth() and
> > OutputDevice::GetOutWidthPixel()?
> >
> The SalGraphics is the underlying operating system graphics primitive,
> so its size might be much bigger than the Window and/or VDev you have
> at hand. For the OutputDevice, if mnOutOffX/mnOutOffY is non-zero,
> then GetOutputWidthPixel/GetOutputHeightPixel (I presume you meant
> those?) will likely be smaller than the size returned by SalGraphics.
> VCL Windows are 'lightweight', in that they reuse operating system
> windows, by e.g. adjusting output offsets and clips.
>
> For VirtualDevices, you are most probably right, those values will be
> equivalent.
>
> HTH,
>
>
It does, thanks Thorsten!


> -- Thorsten
>
Chris
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: SalGraphics::mirror() question

2014-11-23 Thread Thorsten Behrens
Chris Sherlock wrote:
> 1. Why is this necessary?
>
Dunno - that question should go to the committer, if the context is
not clear. ;)

> 2. What is the difference between SalGraphics::GetGraphicsWidth() and
> OutputDevice::GetOutWidthPixel()?
> 
The SalGraphics is the underlying operating system graphics primitive,
so its size might be much bigger than the Window and/or VDev you have
at hand. For the OutputDevice, if mnOutOffX/mnOutOffY is non-zero,
then GetOutputWidthPixel/GetOutputHeightPixel (I presume you meant
those?) will likely be smaller than the size returned by SalGraphics.
VCL Windows are 'lightweight', in that they reuse operating system
windows, by e.g. adjusting output offsets and clips.

For VirtualDevices, you are most probably right, those values will be
equivalent.

HTH,

-- Thorsten


signature.asc
Description: Digital signature
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice