summaryrefslogtreecommitdiffstats
path: root/ksvg/impl/SVGMaskElementImpl.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commite7366c97c998679efa80cf61c88e64a11a3d3c33 (patch)
treea161d2940165f6cc47c05f0271ad8e5f64ffe6e8 /ksvg/impl/SVGMaskElementImpl.h
parentda4be7880ff1de6415ab6256afd2514e64f5fa2e (diff)
downloadtdegraphics-e7366c97c998679efa80cf61c88e64a11a3d3c33.tar.gz
tdegraphics-e7366c97c998679efa80cf61c88e64a11a3d3c33.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksvg/impl/SVGMaskElementImpl.h')
-rw-r--r--ksvg/impl/SVGMaskElementImpl.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ksvg/impl/SVGMaskElementImpl.h b/ksvg/impl/SVGMaskElementImpl.h
index 0e4f0f89..5b61d713 100644
--- a/ksvg/impl/SVGMaskElementImpl.h
+++ b/ksvg/impl/SVGMaskElementImpl.h
@@ -56,7 +56,7 @@ public:
{
public:
Mask() : m_width(0), m_height(0) {}
- Mask(const TQByteArray& tqmask, const TQWMatrix& screenToMask, int width, int height);
+ Mask(const TQByteArray& mask, const TQWMatrix& screenToMask, int width, int height);
~Mask() {}
bool isEmpty() const { return m_width == 0; }
@@ -68,7 +68,7 @@ public:
private:
int m_width;
int m_height;
- TQByteArray m_tqmask;
+ TQByteArray m_mask;
TQWMatrix m_screenToMask;
};
@@ -89,9 +89,9 @@ public:
Mask createMask(SVGShapeImpl *referencingElement);
- // Compute the tqmask on a given tqshape, taking into account all masks defined
+ // Compute the mask on a given tqshape, taking into account all masks defined
// on the tqshape's ancestors. This is a workaround for us not having a buffer
- // for container elements, so we can't tqmask containers directly.
+ // for container elements, so we can't mask containers directly.
static TQByteArray maskRectangle(SVGShapeImpl *tqshape, const TQRect& screenRectangle);
private:
@@ -137,7 +137,7 @@ public:
void putValueProperty(KJS::ExecState *exec, int token, const KJS::Value &value, int attr);
};
-KSVG_REGISTER_ELEMENT(SVGMaskElementImpl, "tqmask")
+KSVG_REGISTER_ELEMENT(SVGMaskElementImpl, "mask")
inline unsigned char SVGMaskElementImpl::Mask::value(int screenX, int screenY) const
{
@@ -146,7 +146,7 @@ inline unsigned char SVGMaskElementImpl::Mask::value(int screenX, int screenY) c
m_screenToMask.map(screenX, screenY, &x, &y);
if(x >= 0 && x < m_width && y >= 0 && y < m_height)
- return m_tqmask[x + y * m_width];
+ return m_mask[x + y * m_width];
else
return 0;
}