1 module org.eclipse.swt.internal.mozilla.nsIBaseWindow; 2 3 import java.lang.all; 4 5 import org.eclipse.swt.internal.mozilla.Common; 6 import org.eclipse.swt.internal.mozilla.nsID; 7 import org.eclipse.swt.internal.mozilla.nsISupports; 8 9 alias void * nativeWindow; 10 11 const char[] NS_IBASEWINDOW_IID_STR = "046bc8a0-8015-11d3-af70-00a024ffc08c"; 12 13 const nsIID NS_IBASEWINDOW_IID= 14 {0x046bc8a0, 0x8015, 0x11d3, 15 [ 0xaf, 0x70, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ]}; 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 extern(System): 23 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget * parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy); 24 nsresult Create(); 25 nsresult Destroy(); 26 nsresult SetPosition(PRInt32 x, PRInt32 y); 27 nsresult GetPosition(PRInt32 *x, PRInt32 *y); 28 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint); 29 nsresult GetSize(PRInt32 *cx, PRInt32 *cy); 30 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint); 31 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy); 32 nsresult Repaint(PRBool force); 33 nsresult GetParentWidget(nsIWidget * *aParentWidget); 34 nsresult SetParentWidget(nsIWidget * aParentWidget); 35 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow); 36 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow); 37 nsresult GetVisibility(PRBool *aVisibility); 38 nsresult SetVisibility(PRBool aVisibility); 39 nsresult GetEnabled(PRBool *aEnabled); 40 nsresult SetEnabled(PRBool aEnabled); 41 nsresult GetBlurSuppression(PRBool *aBlurSuppression); 42 nsresult SetBlurSuppression(PRBool aBlurSuppression); 43 nsresult GetMainWidget(nsIWidget * *aMainWidget); 44 nsresult SetFocus(); 45 nsresult GetTitle(PRUnichar * *aTitle); 46 nsresult SetTitle(PRUnichar * aTitle); 47 48 } 49