LibreOffice Module drawinglayer (master) 1
sdrglowattribute.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#ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWATTRIBUTE_HXX
11#define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWATTRIBUTE_HXX
12
14#include <tools/color.hxx>
15
17{
19{
20private:
21 sal_Int32 m_nRadius = 0;
22 Color m_color; // Includes alpha!
23
24public:
25 SdrGlowAttribute(sal_Int32 nRadius, const Color& rColor);
29
30 bool operator==(const SdrGlowAttribute& rCandidate) const;
31
34
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; }
39};
40
41} // end of namespace drawinglayer::attribute
42
43#endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRGLOWATTRIBUTE_HXX
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SdrGlowAttribute(const SdrGlowAttribute &)
SdrGlowAttribute & operator=(SdrGlowAttribute &&)
SdrGlowAttribute & operator=(const SdrGlowAttribute &)
#define DRAWINGLAYER_DLLPUBLIC
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)