15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/*
25c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
35c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2006 Apple Inc. All rights reserved.
65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is free software; you can redistribute it and/or
85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * modify it under the terms of the GNU Library General Public
95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * License as published by the Free Software Foundation; either
105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * version 2 of the License, or (at your option) any later version.
115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is distributed in the hope that it will be useful,
135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * but WITHOUT ANY WARRANTY; without even the implied warranty of
145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Library General Public License for more details.
165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * You should have received a copy of the GNU Library General Public License
185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * along with this library; see the file COPYING.LIB.  If not, write to
195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Boston, MA 02110-1301, USA.
215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */
225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
2351b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)[
2451b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)    SetReference(SVGTransform parent)
2551b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)] interface SVGMatrix {
265c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    // FIXME: these attributes should all be floats but since we implement
275c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    // AffineTransform with doubles setting these as doubles makes more sense.
285c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    [StrictTypeChecking] attribute double a;
295c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    [StrictTypeChecking] attribute double b;
305c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    [StrictTypeChecking] attribute double c;
315c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    [StrictTypeChecking] attribute double d;
325c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    [StrictTypeChecking] attribute double e;
335c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    [StrictTypeChecking] attribute double f;
345c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
3553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [StrictTypeChecking] SVGMatrix multiply(SVGMatrix secondMatrix);
3653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] SVGMatrix inverse();
3753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [Immutable, StrictTypeChecking] SVGMatrix translate(float x, float y);
3853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [Immutable, StrictTypeChecking] SVGMatrix scale(float scaleFactor);
3953e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [Immutable, StrictTypeChecking] SVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY);
4053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [Immutable, StrictTypeChecking] SVGMatrix rotate(float angle);
4153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [StrictTypeChecking, RaisesException] SVGMatrix rotateFromVector(float x, float y);
425c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    [Immutable] SVGMatrix flipX();
435c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    [Immutable] SVGMatrix flipY();
4453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [Immutable, StrictTypeChecking] SVGMatrix skewX(float angle);
4553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [Immutable, StrictTypeChecking] SVGMatrix skewY(float angle);
465c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)};
475c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
48