1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_dom_SVGIRect_h
7 #define mozilla_dom_SVGIRect_h
9 #include "nsCycleCollectionParticipant.h"
10 #include "mozilla/dom/SVGRectBinding.h"
11 #include "mozilla/Attributes.h"
12 #include "mozilla/ErrorResult.h"
13 #include "nsWrapperCache.h"
21 class SVGIRect
: public nsISupports
,
29 JSObject
* WrapObject(JSContext
* aCx
) MOZ_OVERRIDE
31 return SVGRectBinding::Wrap(aCx
, this);
34 virtual nsIContent
* GetParentObject() const = 0;
36 virtual float X() const = 0;
38 virtual void SetX(float aX
, ErrorResult
& aRv
) = 0;
40 virtual float Y() const = 0;
42 virtual void SetY(float aY
, ErrorResult
& aRv
) = 0;
44 virtual float Width() const = 0;
46 virtual void SetWidth(float aWidth
, ErrorResult
& aRv
) = 0;
48 virtual float Height() const = 0;
50 virtual void SetHeight(float aHeight
, ErrorResult
& aRv
) = 0;
54 } // namespace mozilla
56 #endif //mozilla_dom_SVGIRect_h