| 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 |
interface nsIBaseWindow : nsISupports { |
|---|
| 16 |
|
|---|
| 17 |
static const char[] IID_STR = NS_IBASEWINDOW_IID_STR; |
|---|
| 18 |
static const nsIID IID = NS_IBASEWINDOW_IID; |
|---|
| 19 |
|
|---|
| 20 |
extern(System): |
|---|
| 21 |
nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget * parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy); |
|---|
| 22 |
nsresult Create(); |
|---|
| 23 |
nsresult Destroy(); |
|---|
| 24 |
nsresult SetPosition(PRInt32 x, PRInt32 y); |
|---|
| 25 |
nsresult GetPosition(PRInt32 *x, PRInt32 *y); |
|---|
| 26 |
nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint); |
|---|
| 27 |
nsresult GetSize(PRInt32 *cx, PRInt32 *cy); |
|---|
| 28 |
nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint); |
|---|
| 29 |
nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy); |
|---|
| 30 |
nsresult Repaint(PRBool force); |
|---|
| 31 |
nsresult GetParentWidget(nsIWidget * *aParentWidget); |
|---|
| 32 |
nsresult SetParentWidget(nsIWidget * aParentWidget); |
|---|
| 33 |
nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow); |
|---|
| 34 |
nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow); |
|---|
| 35 |
nsresult GetVisibility(PRBool *aVisibility); |
|---|
| 36 |
nsresult SetVisibility(PRBool aVisibility); |
|---|
| 37 |
nsresult GetEnabled(PRBool *aEnabled); |
|---|
| 38 |
nsresult SetEnabled(PRBool aEnabled); |
|---|
| 39 |
nsresult GetBlurSuppression(PRBool *aBlurSuppression); |
|---|
| 40 |
nsresult SetBlurSuppression(PRBool aBlurSuppression); |
|---|
| 41 |
nsresult GetMainWidget(nsIWidget * *aMainWidget); |
|---|
| 42 |
nsresult SetFocus(); |
|---|
| 43 |
nsresult GetTitle(PRUnichar * *aTitle); |
|---|
| 44 |
nsresult SetTitle(PRUnichar * aTitle); |
|---|
| 45 |
|
|---|
| 46 |
} |
|---|