本文整理了Java中org.eclipse.swt.widgets.Canvas.getClientWidth()
方法的一些代码示例,展示了Canvas.getClientWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.getClientWidth()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称:Canvas
方法名:getClientWidth
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
Cairo.cairo_translate(cairo, nX, y);
Cairo.cairo_set_source_surface(cairo, image.surface, 0, 0);
if (nWidth <= 0) nWidth = DEFAULT_WIDTH;
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
Cairo.cairo_rectangle(cairo, nX, y, nWidth, nHeight);
gdk_pixmap_get_size (image.pixmap, width, height);
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - width[0] - nX;
OS.gdk_draw_drawable(window, gc, image.pixmap, 0, 0, nX, y, width[0], height[0]);
} else {
if (nWidth <= 0) nWidth = DEFAULT_WIDTH;
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
OS.gdk_draw_rectangle (window, gc, 1, nX, y, nWidth, nHeight);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
Cairo.cairo_translate(cairo, nX, y);
Cairo.cairo_set_source_surface(cairo, image.surface, 0, 0);
if (nWidth <= 0) nWidth = DEFAULT_WIDTH;
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
Cairo.cairo_rectangle(cairo, nX, y, nWidth, nHeight);
gdk_pixmap_get_size (image.pixmap, width, height);
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - width[0] - nX;
OS.gdk_draw_drawable(window, gc, image.pixmap, 0, 0, nX, y, width[0], height[0]);
} else {
if (nWidth <= 0) nWidth = DEFAULT_WIDTH;
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
OS.gdk_draw_rectangle (window, gc, 1, nX, y, nWidth, nHeight);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
Cairo.cairo_translate(cairo, nX, y);
Cairo.cairo_set_source_surface(cairo, image.surface, 0, 0);
if (nWidth <= 0) nWidth = DEFAULT_WIDTH;
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
Cairo.cairo_rectangle(cairo, nX, y, nWidth, nHeight);
gdk_pixmap_get_size (image.pixmap, width, height);
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - width[0] - nX;
OS.gdk_draw_drawable(window, gc, image.pixmap, 0, 0, nX, y, width[0], height[0]);
} else {
if (nWidth <= 0) nWidth = DEFAULT_WIDTH;
int nX = x;
if ((parent.style & SWT.MIRRORED) != 0) nX = parent.getClientWidth () - nWidth - nX;
OS.gdk_draw_rectangle (window, gc, 1, nX, y, nWidth, nHeight);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void scrollInPixels (int destX, int destY, int x, int y, int width, int height, boolean all) {
if ((style & SWT.MIRRORED) != 0) {
int clientWidth = getClientWidth ();
x = clientWidth - width - x;
destX = clientWidth - width - destX;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void scrollInPixels (int destX, int destY, int x, int y, int width, int height, boolean all) {
if ((style & SWT.MIRRORED) != 0) {
int clientWidth = getClientWidth ();
x = clientWidth - width - x;
destX = clientWidth - width - destX;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void scrollInPixels (int destX, int destY, int x, int y, int width, int height, boolean all) {
if ((style & SWT.MIRRORED) != 0) {
int clientWidth = getClientWidth ();
x = clientWidth - width - x;
destX = clientWidth - width - destX;
内容来源于网络,如有侵权,请联系作者删除!