本文整理了Java中org.eclipse.swt.browser.Browser.getSize()
方法的一些代码示例,展示了Browser.getSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Browser.getSize()
方法的具体详情如下:
包路径:org.eclipse.swt.browser.Browser
类名称:Browser
方法名:getSize
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
int GetDimensions (int flags, long /*int*/ x, long /*int*/ y, long /*int*/ cx, long /*int*/ cy) {
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_POSITION) != 0) {
Point location = browser.getShell ().getLocation ();
if (x != 0) C.memmove (x, new int[] {location.x}, 4); /* PRInt32 */
if (y != 0) C.memmove (y, new int[] {location.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_INNER) != 0) {
Point size = browser.getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_OUTER) != 0) {
Point size = browser.getShell().getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
return XPCOM.NS_OK;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
int GetDimensions (int flags, int /*long*/ x, int /*long*/ y, int /*long*/ cx, int /*long*/ cy) {
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_POSITION) != 0) {
Point location = browser.getShell ().getLocation ();
if (x != 0) C.memmove (x, new int[] {location.x}, 4); /* PRInt32 */
if (y != 0) C.memmove (y, new int[] {location.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_INNER) != 0) {
Point size = browser.getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_OUTER) != 0) {
Point size = browser.getShell().getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
return XPCOM.NS_OK;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
int GetDimensions (int flags, int /*long*/ x, int /*long*/ y, int /*long*/ cx, int /*long*/ cy) {
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_POSITION) != 0) {
Point location = browser.getShell ().getLocation ();
if (x != 0) C.memmove (x, new int[] {location.x}, 4); /* PRInt32 */
if (y != 0) C.memmove (y, new int[] {location.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_INNER) != 0) {
Point size = browser.getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_OUTER) != 0) {
Point size = browser.getShell().getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
return XPCOM.NS_OK;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
int GetDimensions (int flags, int /*long*/ x, int /*long*/ y, int /*long*/ cx, int /*long*/ cy) {
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_POSITION) != 0) {
Point location = browser.getShell ().getLocation ();
if (x != 0) C.memmove (x, new int[] {location.x}, 4); /* PRInt32 */
if (y != 0) C.memmove (y, new int[] {location.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_INNER) != 0) {
Point size = browser.getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_OUTER) != 0) {
Point size = browser.getShell().getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
return XPCOM.NS_OK;
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
int GetDimensions (int flags, long /*int*/ x, long /*int*/ y, long /*int*/ cx, long /*int*/ cy) {
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_POSITION) != 0) {
Point location = browser.getShell ().getLocation ();
if (x != 0) C.memmove (x, new int[] {location.x}, 4); /* PRInt32 */
if (y != 0) C.memmove (y, new int[] {location.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_INNER) != 0) {
Point size = browser.getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
if ((flags & nsIEmbeddingSiteWindow.DIM_FLAGS_SIZE_OUTER) != 0) {
Point size = browser.getShell().getSize ();
if (cx != 0) C.memmove (cx, new int[] {size.x}, 4); /* PRInt32 */
if (cy != 0) C.memmove (cy, new int[] {size.y}, 4); /* PRInt32 */
}
return XPCOM.NS_OK;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
Point size = browser.getSize ();
size.x += minSize.width; size.y += minSize.height;
browser.setSize (size);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
Point size = browser.getSize ();
size.x += minSize.width; size.y += minSize.height;
browser.setSize (size);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
Point size = browser.getSize ();
size.x += minSize.width; size.y += minSize.height;
browser.setSize (size);
内容来源于网络,如有侵权,请联系作者删除!