LibreOffice Module drawinglayer (master)
1
include
drawinglayer
attribute
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
13
#include <
drawinglayer/drawinglayerdllapi.h
>
14
#include <
tools/color.hxx
>
15
16
namespace
drawinglayer::attribute
17
{
18
class
DRAWINGLAYER_DLLPUBLIC
SdrGlowAttribute
19
{
20
private
:
21
sal_Int32 m_nRadius = 0;
22
Color
m_color
;
// Includes alpha!
23
24
public
:
25
SdrGlowAttribute
(sal_Int32 nRadius,
const
Color
& rColor);
26
SdrGlowAttribute
();
27
SdrGlowAttribute
(
const
SdrGlowAttribute
&);
28
SdrGlowAttribute
(
SdrGlowAttribute
&&);
29
30
bool
operator==
(
const
SdrGlowAttribute
& rCandidate)
const
;
31
32
SdrGlowAttribute
&
operator=
(
const
SdrGlowAttribute
&);
33
SdrGlowAttribute
&
operator=
(
SdrGlowAttribute
&&);
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: */
Color
drawinglayer::attribute::SdrGlowAttribute
Definition:
sdrglowattribute.hxx:19
drawinglayer::attribute::SdrGlowAttribute::SdrGlowAttribute
SdrGlowAttribute(SdrGlowAttribute &&)
drawinglayer::attribute::SdrGlowAttribute::isDefault
bool isDefault() const
Definition:
sdrglowattribute.hxx:38
drawinglayer::attribute::SdrGlowAttribute::getColor
const Color & getColor() const
Definition:
sdrglowattribute.hxx:36
drawinglayer::attribute::SdrGlowAttribute::SdrGlowAttribute
SdrGlowAttribute()
drawinglayer::attribute::SdrGlowAttribute::SdrGlowAttribute
SdrGlowAttribute(const SdrGlowAttribute &)
drawinglayer::attribute::SdrGlowAttribute::getRadius
sal_Int32 getRadius() const
Definition:
sdrglowattribute.hxx:37
drawinglayer::attribute::SdrGlowAttribute::operator=
SdrGlowAttribute & operator=(SdrGlowAttribute &&)
drawinglayer::attribute::SdrGlowAttribute::operator=
SdrGlowAttribute & operator=(const SdrGlowAttribute &)
drawinglayer::attribute::SdrGlowAttribute::m_color
Color m_color
Definition:
sdrglowattribute.hxx:22
color.hxx
drawinglayerdllapi.h
DRAWINGLAYER_DLLPUBLIC
#define DRAWINGLAYER_DLLPUBLIC
Definition:
drawinglayerdllapi.h:18
drawinglayer::attribute
operator==
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)
Generated on Sun Jul 30 2023 04:42:56 for LibreOffice Module drawinglayer (master) by
1.9.3