nsIBoxObject.idl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/. */
  5. #include "nsISupports.idl"
  6. interface nsIDOMElement;
  7. [scriptable, uuid(ce572460-b0f2-4650-a9e7-c53a99d3b6ad)]
  8. interface nsIBoxObject : nsISupports
  9. {
  10. readonly attribute nsIDOMElement element;
  11. readonly attribute long x;
  12. readonly attribute long y;
  13. readonly attribute long screenX;
  14. readonly attribute long screenY;
  15. readonly attribute long width;
  16. readonly attribute long height;
  17. nsISupports getPropertyAsSupports(in wstring propertyName);
  18. void setPropertyAsSupports(in wstring propertyName, in nsISupports value);
  19. wstring getProperty(in wstring propertyName);
  20. void setProperty(in wstring propertyName, in wstring propertyValue);
  21. void removeProperty(in wstring propertyName);
  22. // for stepping through content in the expanded dom with box-ordinal-group order
  23. readonly attribute nsIDOMElement parentBox;
  24. readonly attribute nsIDOMElement firstChild;
  25. readonly attribute nsIDOMElement lastChild;
  26. readonly attribute nsIDOMElement nextSibling;
  27. readonly attribute nsIDOMElement previousSibling;
  28. };
  29. %{C++
  30. nsresult
  31. NS_NewBoxObject(nsIBoxObject** aResult);
  32. %}