本文整理了Java中org.eclipse.swt.graphics.Device.checkCairo()
方法的一些代码示例,展示了Device.checkCairo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Device.checkCairo()
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.Device
类名称:Device
方法名:checkCairo
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void initCairo() {
data.device.checkCairo();
long /*int*/ cairo = data.cairo;
if (cairo != 0) return;
data.cairo = cairo = OS.gdk_cairo_create(data.drawable);
if (cairo == 0) SWT.error(SWT.ERROR_NO_HANDLES);
data.disposeCairo = true;
Cairo.cairo_set_fill_rule(cairo, Cairo.CAIRO_FILL_RULE_EVEN_ODD);
data.state &= ~(BACKGROUND | FOREGROUND | FONT | LINE_WIDTH | LINE_CAP | LINE_JOIN | LINE_STYLE | DRAW_OFFSET);
setCairoClip(data.damageRgn, data.clipRgn);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void initCairo() {
data.device.checkCairo();
int /*long*/ cairo = data.cairo;
if (cairo != 0) return;
data.cairo = cairo = OS.gdk_cairo_create(data.drawable);
if (cairo == 0) SWT.error(SWT.ERROR_NO_HANDLES);
data.disposeCairo = true;
Cairo.cairo_set_fill_rule(cairo, Cairo.CAIRO_FILL_RULE_EVEN_ODD);
data.state &= ~(BACKGROUND | FOREGROUND | FONT | LINE_WIDTH | LINE_CAP | LINE_JOIN | LINE_STYLE | DRAW_OFFSET);
setCairoClip(data.damageRgn, data.clipRgn);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void initCairo() {
data.device.checkCairo();
int /*long*/ cairo = data.cairo;
if (cairo != 0) return;
data.cairo = cairo = OS.gdk_cairo_create(data.drawable);
if (cairo == 0) SWT.error(SWT.ERROR_NO_HANDLES);
data.disposeCairo = true;
Cairo.cairo_set_fill_rule(cairo, Cairo.CAIRO_FILL_RULE_EVEN_ODD);
data.state &= ~(BACKGROUND | FOREGROUND | FONT | LINE_WIDTH | LINE_CAP | LINE_JOIN | LINE_STYLE | DRAW_OFFSET);
setCairoClip(data.damageRgn, data.clipRgn);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
this.device.checkCairo();
handle = new double[6];
if (handle == null) SWT.error(SWT.ERROR_NO_HANDLES);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
this.device.checkCairo();
handle = new double[6];
if (handle == null) SWT.error(SWT.ERROR_NO_HANDLES);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
this.device.checkCairo();
handle = new double[6];
if (handle == null) SWT.error(SWT.ERROR_NO_HANDLES);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
this.device.checkCairo();
long /*int*/ surface = Cairo.cairo_image_surface_create(Cairo.CAIRO_FORMAT_ARGB32, 1, 1);
if (surface == 0) SWT.error(SWT.ERROR_NO_HANDLES);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
this.device.checkCairo();
int /*long*/ surface = Cairo.cairo_image_surface_create(Cairo.CAIRO_FORMAT_ARGB32, 1, 1);
if (surface == 0) SWT.error(SWT.ERROR_NO_HANDLES);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
this.device.checkCairo();
int /*long*/ surface = Cairo.cairo_image_surface_create(Cairo.CAIRO_FORMAT_ARGB32, 1, 1);
if (surface == 0) SWT.error(SWT.ERROR_NO_HANDLES);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
if (image == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (image.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
this.device.checkCairo();
image.createSurface();
handle = Cairo.cairo_pattern_create_for_surface(image.surface);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
if (image == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (image.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
this.device.checkCairo();
image.createSurface();
handle = Cairo.cairo_pattern_create_for_surface(image.surface);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
if (image == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (image.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
this.device.checkCairo();
image.createSurface();
handle = Cairo.cairo_pattern_create_for_surface(image.surface);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
if (color2 == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (color2.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
this.device.checkCairo();
handle = Cairo.cairo_pattern_create_linear(x1, y1, x2, y2);
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
if (color2 == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (color2.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
this.device.checkCairo();
handle = Cairo.cairo_pattern_create_linear(x1, y1, x2, y2);
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
if (color2 == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
if (color2.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
this.device.checkCairo();
handle = Cairo.cairo_pattern_create_linear(x1, y1, x2, y2);
if (handle == 0) SWT.error(SWT.ERROR_NO_HANDLES);
内容来源于网络,如有侵权,请联系作者删除!