LibreOffice Module vcl (master)  1
BitmapID.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  */
10 
11 #ifndef INCLUDED_VCL_INC_PDF_BITMAPID_HXX
12 #define INCLUDED_VCL_INC_PDF_BITMAPID_HXX
13 
14 #include <vcl/dllapi.h>
15 #include <vcl/checksum.hxx>
16 #include <tools/gen.hxx>
17 
18 namespace vcl::pdf
19 {
20 struct BitmapID
21 {
23  sal_Int32 m_nSize;
26 
28  : m_nSize(0)
29  , m_nChecksum(0)
30  , m_nMaskChecksum(0)
31  {
32  }
33 
34  bool operator==(const BitmapID& rComp) const
35  {
36  return (m_aPixelSize == rComp.m_aPixelSize && m_nSize == rComp.m_nSize
37  && m_nChecksum == rComp.m_nChecksum && m_nMaskChecksum == rComp.m_nMaskChecksum);
38  }
39 };
40 }
41 
42 #endif
43 
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt64 BitmapChecksum
Definition: checksum.hxx:30
BitmapChecksum m_nMaskChecksum
Definition: BitmapID.hxx:25
BitmapChecksum m_nChecksum
Definition: BitmapID.hxx:24
bool operator==(const BitmapID &rComp) const
Definition: BitmapID.hxx:34
sal_Int32 m_nSize
Definition: BitmapID.hxx:23