001: /* ***** BEGIN LICENSE BLOCK *****
002: * Version: MPL 1.1
003: *
004: * The contents of this file are subject to the Mozilla Public License Version
005: * 1.1 (the "License"); you may not use this file except in compliance with
006: * the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS" basis,
010: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011: * for the specific language governing rights and limitations under the
012: * License.
013: *
014: * The Original Code is Mozilla Communicator client code, released March 31, 1998.
015: *
016: * The Initial Developer of the Original Code is
017: * Netscape Communications Corporation.
018: * Portions created by Netscape are Copyright (C) 1998-1999
019: * Netscape Communications Corporation. All Rights Reserved.
020: *
021: * Contributor(s):
022: *
023: * IBM
024: * - Binding to permit interfacing between Mozilla and SWT
025: * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIBaseWindow extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 24;
033:
034: public static final String NS_IBASEWINDOW_IID_STR = "046bc8a0-8015-11d3-af70-00a024ffc08c";
035:
036: public static final nsID NS_IBASEWINDOW_IID = new nsID(
037: NS_IBASEWINDOW_IID_STR);
038:
039: public nsIBaseWindow(int /*long*/address) {
040: super (address);
041: }
042:
043: public int InitWindow(int /*long*/parentNativeWindow,
044: int /*long*/parentWidget, int x, int y, int cx, int cy) {
045: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
046: getAddress(), parentNativeWindow, parentWidget, x, y,
047: cx, cy);
048: }
049:
050: public int Create() {
051: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
052: getAddress());
053: }
054:
055: public int Destroy() {
056: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
057: getAddress());
058: }
059:
060: public int SetPosition(int x, int y) {
061: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
062: getAddress(), x, y);
063: }
064:
065: public int GetPosition(int[] x, int[] y) {
066: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
067: getAddress(), x, y);
068: }
069:
070: public int SetSize(int cx, int cy, boolean fRepaint) {
071: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
072: getAddress(), cx, cy, fRepaint);
073: }
074:
075: public int GetSize(int[] cx, int[] cy) {
076: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
077: getAddress(), cx, cy);
078: }
079:
080: public int SetPositionAndSize(int x, int y, int cx, int cy,
081: boolean fRepaint) {
082: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
083: getAddress(), x, y, cx, cy, fRepaint);
084: }
085:
086: public int GetPositionAndSize(int[] x, int[] y, int[] cx, int[] cy) {
087: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
088: getAddress(), x, y, cx, cy);
089: }
090:
091: public int Repaint(boolean force) {
092: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
093: getAddress(), force);
094: }
095:
096: public int GetParentWidget(int /*long*/[] aParentWidget) {
097: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
098: getAddress(), aParentWidget);
099: }
100:
101: public int SetParentWidget(int /*long*/aParentWidget) {
102: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12,
103: getAddress(), aParentWidget);
104: }
105:
106: public int GetParentNativeWindow(int /*long*/[] aParentNativeWindow) {
107: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13,
108: getAddress(), aParentNativeWindow);
109: }
110:
111: public int SetParentNativeWindow(int /*long*/aParentNativeWindow) {
112: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14,
113: getAddress(), aParentNativeWindow);
114: }
115:
116: public int GetVisibility(boolean[] aVisibility) {
117: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15,
118: getAddress(), aVisibility);
119: }
120:
121: public int SetVisibility(boolean aVisibility) {
122: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16,
123: getAddress(), aVisibility);
124: }
125:
126: public int GetEnabled(boolean[] aEnabled) {
127: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17,
128: getAddress(), aEnabled);
129: }
130:
131: public int SetEnabled(boolean aEnabled) {
132: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18,
133: getAddress(), aEnabled);
134: }
135:
136: public int GetBlurSuppression(boolean[] aBlurSuppression) {
137: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19,
138: getAddress(), aBlurSuppression);
139: }
140:
141: public int SetBlurSuppression(boolean aBlurSuppression) {
142: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20,
143: getAddress(), aBlurSuppression);
144: }
145:
146: public int GetMainWidget(int /*long*/[] aMainWidget) {
147: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21,
148: getAddress(), aMainWidget);
149: }
150:
151: public int SetFocus() {
152: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22,
153: getAddress());
154: }
155:
156: public int GetTitle(int /*long*/[] aTitle) {
157: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23,
158: getAddress(), aTitle);
159: }
160:
161: public int SetTitle(char[] aTitle) {
162: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24,
163: getAddress(), aTitle);
164: }
165: }
|