2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2013-03-26 19:53:13 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_dom_SVGIRect_h
|
|
|
|
#define mozilla_dom_SVGIRect_h
|
|
|
|
|
|
|
|
#include "nsCycleCollectionParticipant.h"
|
|
|
|
#include "mozilla/dom/SVGRectBinding.h"
|
|
|
|
#include "mozilla/Attributes.h"
|
|
|
|
#include "mozilla/ErrorResult.h"
|
2013-05-09 21:42:12 +04:00
|
|
|
#include "nsWrapperCache.h"
|
|
|
|
|
2014-08-18 18:44:50 +04:00
|
|
|
class nsIContent;
|
2013-03-26 19:53:13 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2013-05-09 21:42:12 +04:00
|
|
|
class SVGIRect : public nsISupports, public nsWrapperCache {
|
2013-03-26 19:53:13 +04:00
|
|
|
public:
|
2019-04-10 07:34:35 +03:00
|
|
|
virtual ~SVGIRect() = default;
|
2013-05-09 21:42:12 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
JSObject* WrapObject(JSContext* aCx,
|
|
|
|
JS::Handle<JSObject*> aGivenProto) override {
|
2018-06-26 00:20:54 +03:00
|
|
|
return SVGRect_Binding::Wrap(aCx, this, aGivenProto);
|
2013-03-26 19:53:13 +04:00
|
|
|
}
|
|
|
|
|
2013-05-16 22:06:21 +04:00
|
|
|
virtual nsIContent* GetParentObject() const = 0;
|
2013-05-09 21:42:12 +04:00
|
|
|
|
2013-03-26 19:53:13 +04:00
|
|
|
virtual float X() const = 0;
|
|
|
|
|
|
|
|
virtual void SetX(float aX, ErrorResult& aRv) = 0;
|
|
|
|
|
|
|
|
virtual float Y() const = 0;
|
|
|
|
|
|
|
|
virtual void SetY(float aY, ErrorResult& aRv) = 0;
|
|
|
|
|
|
|
|
virtual float Width() const = 0;
|
|
|
|
|
|
|
|
virtual void SetWidth(float aWidth, ErrorResult& aRv) = 0;
|
|
|
|
|
|
|
|
virtual float Height() const = 0;
|
|
|
|
|
|
|
|
virtual void SetHeight(float aHeight, ErrorResult& aRv) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_SVGIRect_h
|