1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
21 sal_Int32 m_nRadius
= 0;
22 Color m_color
; // Includes alpha!
25 SdrGlowAttribute(sal_Int32 nRadius
, const Color
& rColor
);
27 SdrGlowAttribute(const SdrGlowAttribute
&);
28 SdrGlowAttribute(SdrGlowAttribute
&&);
30 bool operator==(const SdrGlowAttribute
& rCandidate
) const;
32 SdrGlowAttribute
& operator=(const SdrGlowAttribute
&);
33 SdrGlowAttribute
& operator=(SdrGlowAttribute
&&);
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: */