nss: upgrade to release 3.73
[LibreOffice.git] / include / drawinglayer / attribute / sdrglowattribute.hxx
blob156beccc39e7ab5bd90043744199f6163a0f1fde
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWATTRIBUTE_HXX
11 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWATTRIBUTE_HXX
13 #include <drawinglayer/drawinglayerdllapi.h>
14 #include <tools/color.hxx>
16 namespace drawinglayer::attribute
18 class DRAWINGLAYER_DLLPUBLIC SdrGlowAttribute
20 private:
21 sal_Int32 m_nRadius = 0;
22 Color m_color; // Includes alpha!
24 public:
25 SdrGlowAttribute(sal_Int32 nRadius, const Color& rColor);
26 SdrGlowAttribute();
27 SdrGlowAttribute(const SdrGlowAttribute&);
28 SdrGlowAttribute(SdrGlowAttribute&&);
29 ~SdrGlowAttribute();
30 bool operator==(const SdrGlowAttribute& rCandidate) const;
32 SdrGlowAttribute& operator=(const SdrGlowAttribute&);
33 SdrGlowAttribute& operator=(SdrGlowAttribute&&);
35 // data access
36 const Color& getColor() const { return m_color; }
37 sal_Int32 getRadius() const { return m_nRadius; }
38 bool isDefault() const { return m_nRadius == 0; }
41 } // end of namespace drawinglayer::attribute
43 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWATTRIBUTE_HXX
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */