layout/xul/base/public/nsIBoxObject.idlScriptable
Please add a summary to this article.
Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3)

To get an instance, use the boxObject property.

Where possible, element.getClientRects and element.getBoundingClientRect should be used instead.

Method overview

wstring getLookAndFeelMetric(in wstring propertyName); Obsolete since Gecko 1.9
wstring getProperty(in wstring propertyName);
nsISupports getPropertyAsSupports(in wstring propertyName);
void removeProperty(in wstring propertyName);
void setProperty(in wstring propertyName, in wstring propertyValue);
void setPropertyAsSupports(in wstring propertyName, in nsISupports value);

Attributes

Attribute Type Description
element nsIDOMElement Read only.
firstChild nsIDOMElement The first child of the box, in box-ordinal-group order. Read only.
height long The height of the box, in CSS pixels. Read only.
lastChild nsIDOMElement The last child of the box, in box-ordinal-group order. Read only.
layoutManager nsIBoxLayoutManager Obsolete since Gecko 1.9
nextSibling nsIDOMElement The next sibling of the box, in box-ordinal-group order. Read only.
paintManager nsIBoxPaintManager Obsolete since Gecko 1.9
parentBox nsIDOMElement The parent of the box, in box-ordinal-group order. Read only.
previousSibling nsIDOMElement The previous sibling of the box, in box-ordinal-group order. Read only.
screenX long The x coordinate of the box relative to the screen origin, in device pixels. Read only.
screenY long The y coordinate of the box relative to the screen origin, in device pixels. Read only.
width long The width of the box, in CSS pixels. Read only.
x long The x coordinate of the box, in CSS pixels. Read only.
y long The y coordinate of the box, in CSS pixels. Read only.

Methods

getLookAndFeelMetric()

Obsolete since Gecko 1.9 (Firefox 3)

wstring getLookAndFeelMetric(
  in wstring propertyName
);
Parameters
propertyName
Return value

 

getProperty()

wstring getProperty(
  in wstring propertyName
);
Parameters
propertyName
Return value

 

getPropertyAsSupports()

nsISupports getPropertyAsSupports(
  in wstring propertyName
);
Parameters
propertyName
Return value

 

removeProperty()

void removeProperty(
  in wstring propertyName
);
Parameters
propertyName

setProperty()

void setProperty(
  in wstring propertyName,
  in wstring propertyValue
);
Parameters
propertyName
propertyValue

setPropertyAsSupports()

void setPropertyAsSupports(
  in wstring propertyName,
  in nsISupports value
);
Parameters
propertyName
value

See also