本文整理了Java中org.eclipse.swt.graphics.GC.setCairoClip()
方法的一些代码示例,展示了GC.setCairoClip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GC.setCairoClip()
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.GC
类名称:GC
方法名:setCairoClip
暂无
代码示例来源: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
setCairoClip(data.damageRgn, 0);
} else {
long /*int*/ clipping = data.damageRgn != 0 ? data.damageRgn : 0;
if (data.clippingTransform == null) data.clippingTransform = new double[6];
Cairo.cairo_get_matrix(cairo, data.clippingTransform);
setCairoClip(data.damageRgn, clipRgn);
} else {
long /*int*/ clipping = clipRgn;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
setCairoClip(data.damageRgn, 0);
} else {
int /*long*/ clipping = data.damageRgn != 0 ? data.damageRgn : 0;
if (data.clippingTransform == null) data.clippingTransform = new double[6];
Cairo.cairo_get_matrix(cairo, data.clippingTransform);
setCairoClip(data.damageRgn, clipRgn);
} else {
int /*long*/ clipping = clipRgn;
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
setCairoClip(data.damageRgn, 0);
} else {
int /*long*/ clipping = data.damageRgn != 0 ? data.damageRgn : 0;
if (data.clippingTransform == null) data.clippingTransform = new double[6];
Cairo.cairo_get_matrix(cairo, data.clippingTransform);
setCairoClip(data.damageRgn, clipRgn);
} else {
int /*long*/ clipping = clipRgn;
内容来源于网络,如有侵权,请联系作者删除!