comparison dwt/internal/mozilla/nsIBaseWindow.d @ 272:dd63eb078d7a

xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author John Reimer<terminal.node@gmail.com>
date Fri, 18 Jul 2008 05:32:53 -0700
parents
children 942da4b6558a
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
1 module dwt.internal.mozilla.nsIBaseWindow;
2
3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsISupports;
6
7 alias void * nativeWindow;
8
9 const char[] NS_IBASEWINDOW_IID_STR = "046bc8a0-8015-11d3-af70-00a024ffc08c";
10
11 const nsIID NS_IBASEWINDOW_IID=
12 {0x046bc8a0, 0x8015, 0x11d3,
13 [ 0xaf, 0x70, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ]};
14
15 extern(System)
16
17 interface nsIBaseWindow : nsISupports {
18
19 static const char[] IID_STR = NS_IBASEWINDOW_IID_STR;
20 static const nsIID IID = NS_IBASEWINDOW_IID;
21
22 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget * parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
23 nsresult Create();
24 nsresult Destroy();
25 nsresult SetPosition(PRInt32 x, PRInt32 y);
26 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
27 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
28 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
29 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
30 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
31 nsresult Repaint(PRBool force);
32 nsresult GetParentWidget(nsIWidget * *aParentWidget);
33 nsresult SetParentWidget(nsIWidget * aParentWidget);
34 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
35 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
36 nsresult GetVisibility(PRBool *aVisibility);
37 nsresult SetVisibility(PRBool aVisibility);
38 nsresult GetEnabled(PRBool *aEnabled);
39 nsresult SetEnabled(PRBool aEnabled);
40 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
41 nsresult SetBlurSuppression(PRBool aBlurSuppression);
42 nsresult GetMainWidget(nsIWidget * *aMainWidget);
43 nsresult SetFocus();
44 nsresult GetTitle(PRUnichar * *aTitle);
45 nsresult SetTitle(PRUnichar * aTitle);
46
47 }
48