22 ImageMask(
const uint16_t width=0,
const uint16_t height=0);
23 virtual ~ImageMask(){};
30 virtual void setImageGeometry(
const uint16_t width,
const uint16_t height);
37 virtual bool isVisible(uint16_t posX, uint16_t posY);
49 virtual bool active() = 0;
51 uint16_t width()
const;
53 uint16_t height()
const;
56 uint16_t m_width, m_height;
58 virtual void refresh() = 0;
61class ImageRingMask :
public ImageMask
71 ImageRingMask(
const float innerRadius=0,
const float outerRadius=1,
const uint16_t width=0,
const uint16_t height=0);
73 virtual ~ImageRingMask() {};
79 bool isVisible(uint16_t posX, uint16_t posY)
override;
84 bool active()
override {
return m_width > 0 && m_height > 0 && (m_innerRadius > 0 || m_outerRadius < 1.0); };
86 float innerRadius()
const;
87 void setInnerRadius(
float newInnerRadius);
89 float outerRadius()
const;
90 void setOuterRadius(
float newOuterRadius);
94 float m_innerRadius {0};
95 float m_outerRadius {1.0};
97 long m_InnerRadiusSquare, m_OuterRadiusSquare;
99 virtual void refresh()
override;
102class ImageMosaicMask :
public ImageMask
112 ImageMosaicMask (
const uint16_t tileWidth,
const uint16_t space,
const uint16_t width=0,
const uint16_t height=0);
118 virtual bool isVisible(uint16_t posX, uint16_t posY)
override;
130 bool active()
override {
return m_width > 0 && m_height > 0 && m_tiles.length() > 0; };
134 float tileWidth()
const;
135 void setTileWidth(
float newTileWidth);
137 uint16_t space()
const;
138 void setSpace(uint16_t newSpace);
149 virtual void refresh()
override;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.