gecko/dom/interfaces/xul/nsIDOMXULElement.idl
2012-05-21 12:12:37 +01:00

87 lines
2.7 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
#include "nsIDOMElement.idl"
interface nsIRDFCompositeDataSource;
interface nsIXULTemplateBuilder;
interface nsIRDFResource;
interface nsIControllers;
interface nsIBoxObject;
[scriptable, uuid(3a07dead-39e5-4dad-bc68-6ef369994126)]
interface nsIDOMXULElement : nsIDOMElement
{
attribute DOMString id;
attribute DOMString className;
// Layout properties
attribute DOMString align;
attribute DOMString dir;
attribute DOMString flex;
attribute DOMString flexGroup;
attribute DOMString ordinal;
attribute DOMString orient;
attribute DOMString pack;
// Properties for hiding elements.
attribute boolean hidden;
attribute boolean collapsed;
// Property for hooking up to broadcasters
attribute DOMString observes;
// Properties for hooking up to popups
attribute DOMString menu;
attribute DOMString contextMenu;
attribute DOMString tooltip;
// Width/height properties
attribute DOMString width;
attribute DOMString height;
attribute DOMString minWidth;
attribute DOMString minHeight;
attribute DOMString maxWidth;
attribute DOMString maxHeight;
// Persistence
attribute DOMString persist;
// Position properties for
// * popups - these are screen coordinates
// * other elements - these are client coordinates relative to parent stack.
attribute DOMString left;
attribute DOMString top;
// XUL Template Builder
attribute DOMString datasources;
attribute DOMString ref;
// Tooltip and status info
attribute DOMString tooltipText;
attribute DOMString statusText;
attribute boolean allowEvents;
readonly attribute nsIRDFCompositeDataSource database;
readonly attribute nsIXULTemplateBuilder builder;
readonly attribute nsIRDFResource resource;
readonly attribute nsIControllers controllers;
readonly attribute nsIBoxObject boxObject;
void focus();
void blur();
void click();
void doCommand();
nsIDOMNodeList getElementsByAttribute(in DOMString name,
in DOMString value);
nsIDOMNodeList getElementsByAttributeNS(in DOMString namespaceURI,
in DOMString name,
in DOMString value);
};