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 #pragma once
12 
13 #include <vcl/dllapi.h>
14 #include <vcl/checksum.hxx>
15 #include <tools/gen.hxx>
16 
17 namespace vcl::pdf
18 {
19 struct BitmapID
20 {
22  sal_Int32 m_nSize;
25 
27  : m_nSize(0)
28  , m_nChecksum(0)
29  , m_nMaskChecksum(0)
30  {
31  }
32 
33  bool operator==(const BitmapID& rComp) const
34  {
35  return (m_aPixelSize == rComp.m_aPixelSize && m_nSize == rComp.m_nSize
36  && m_nChecksum == rComp.m_nChecksum && m_nMaskChecksum == rComp.m_nMaskChecksum);
37  }
38 };
39 }
40 
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt64 BitmapChecksum
Definition: checksum.hxx:30
BitmapChecksum m_nMaskChecksum
Definition: BitmapID.hxx:24
BitmapChecksum m_nChecksum
Definition: BitmapID.hxx:23
bool operator==(const BitmapID &rComp) const
Definition: BitmapID.hxx:33
sal_Int32 m_nSize
Definition: BitmapID.hxx:22