热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.eclipse.swt.widgets.Control.paintHandle()方法的使用及代码示例

本文整理了Java中org.eclipse.swt.widgets.Control.paintHandle()方法的一些代码示例,展示了Control.pa

本文整理了Java中org.eclipse.swt.widgets.Control.paintHandle()方法的一些代码示例,展示了Control.paintHandle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Control.paintHandle()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Control
类名称:Control
方法名:paintHandle

Control.paintHandle介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
int /*long*/ paintWindow () {
int /*long*/ paintHandle = paintHandle ();
OS.gtk_widget_realize (paintHandle);
return gtk_widget_get_window (paintHandle);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
long /*int*/ paintWindow () {
long /*int*/ paintHandle = paintHandle ();
OS.gtk_widget_realize (paintHandle);
return gtk_widget_get_window (paintHandle);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
int /*long*/ paintWindow () {
int /*long*/ paintHandle = paintHandle ();
OS.gtk_widget_realize (paintHandle);
return gtk_widget_get_window (paintHandle);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
int /*long*/ gtk_realize (int /*long*/ widget) {
int /*long*/ imHandle = imHandle ();
if (imHandle != 0) {
int /*long*/ window = gtk_widget_get_window (paintHandle ());
OS.gtk_im_context_set_client_window (imHandle, window);
}
if (backgroundImage != null) {
setBackgroundPixmap (backgroundImage);
}
return 0;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
long /*int*/ gtk_realize (long /*int*/ widget) {
long /*int*/ imHandle = imHandle ();
if (imHandle != 0) {
long /*int*/ window = gtk_widget_get_window (paintHandle ());
OS.gtk_im_context_set_client_window (imHandle, window);
}
if (backgroundImage != null) {
setBackgroundPixmap (backgroundImage);
}
return 0;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
int /*long*/ gtk_realize (int /*long*/ widget) {
int /*long*/ imHandle = imHandle ();
if (imHandle != 0) {
int /*long*/ window = gtk_widget_get_window (paintHandle ());
OS.gtk_im_context_set_client_window (imHandle, window);
}
if (backgroundImage != null) {
setBackgroundPixmap (backgroundImage);
}
return 0;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void setBackgroundPixmap (Image image) {
int /*long*/ window = gtk_widget_get_window (paintHandle ());
if (window != 0) {
if (image.pixmap != 0) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void setBackgroundPixmap (Image image) {
long /*int*/ window = gtk_widget_get_window (paintHandle ());
if (window != 0) {
if (image.pixmap != 0) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void setBackgroundPixmap (Image image) {
int /*long*/ window = gtk_widget_get_window (paintHandle ());
if (window != 0) {
if (image.pixmap != 0) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

boolean drawGripper (GC gc, int x, int y, int width, int height, boolean vertical) {
int /*long*/ paintHandle = paintHandle ();
int /*long*/ window = gtk_widget_get_window (paintHandle);
if (window == 0) return false;
int orientation = vertical ? OS.GTK_ORIENTATION_HORIZONTAL : OS.GTK_ORIENTATION_VERTICAL;
if ((style & SWT.MIRRORED) != 0) x = getClientWidth () - width - x;
if (OS.GTK3) {
int /*long*/ cOntext= OS.gtk_widget_get_style_context (paintHandle);
OS.gtk_style_context_save (context);
OS.gtk_style_context_add_class (context, OS.GTK_STYLE_CLASS_PANE_SEPARATOR);
OS.gtk_style_context_set_state (context, OS.GTK_STATE_FLAG_NORMAL);
OS.gtk_render_handle (context, gc.handle, x, y, width, height);
OS.gtk_style_context_restore (context);
} else {
OS.gtk_paint_handle (OS.gtk_widget_get_style (paintHandle), window, OS.GTK_STATE_NORMAL, OS.GTK_SHADOW_OUT, null, paintHandle, new byte [1], x, y, width, height, orientation);
}
return true;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

boolean drawGripper (GC gc, int x, int y, int width, int height, boolean vertical) {
int /*long*/ paintHandle = paintHandle ();
int /*long*/ window = gtk_widget_get_window (paintHandle);
if (window == 0) return false;
int orientation = vertical ? OS.GTK_ORIENTATION_HORIZONTAL : OS.GTK_ORIENTATION_VERTICAL;
if ((style & SWT.MIRRORED) != 0) x = getClientWidth () - width - x;
if (OS.GTK3) {
int /*long*/ cOntext= OS.gtk_widget_get_style_context (paintHandle);
OS.gtk_style_context_save (context);
OS.gtk_style_context_add_class (context, OS.GTK_STYLE_CLASS_PANE_SEPARATOR);
OS.gtk_style_context_set_state (context, OS.GTK_STATE_FLAG_NORMAL);
OS.gtk_render_handle (context, gc.handle, x, y, width, height);
OS.gtk_style_context_restore (context);
} else {
OS.gtk_paint_handle (OS.gtk_widget_get_style (paintHandle), window, OS.GTK_STATE_NORMAL, OS.GTK_SHADOW_OUT, null, paintHandle, new byte [1], x, y, width, height, orientation);
}
return true;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

boolean drawGripper (GC gc, int x, int y, int width, int height, boolean vertical) {
long /*int*/ paintHandle = paintHandle ();
long /*int*/ window = gtk_widget_get_window (paintHandle);
if (window == 0) return false;
int orientation = vertical ? OS.GTK_ORIENTATION_HORIZONTAL : OS.GTK_ORIENTATION_VERTICAL;
if ((style & SWT.MIRRORED) != 0) x = getClientWidth () - width - x;
if (OS.GTK3) {
long /*int*/ cOntext= OS.gtk_widget_get_style_context (paintHandle);
OS.gtk_style_context_save (context);
OS.gtk_style_context_add_class (context, OS.GTK_STYLE_CLASS_PANE_SEPARATOR);
OS.gtk_style_context_set_state (context, OS.GTK_STATE_FLAG_NORMAL);
OS.gtk_render_handle (context, gc.handle, x, y, width, height);
OS.gtk_style_context_restore (context);
} else {
OS.gtk_paint_handle (OS.gtk_widget_get_style (paintHandle), window, OS.GTK_STATE_NORMAL, OS.GTK_SHADOW_OUT, null, paintHandle, new byte [1], x, y, width, height, orientation);
}
return true;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

OS.gdk_window_set_events (window, OS.gtk_widget_get_events (paintHandle ()));
redrawWindow = 0;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

OS.gdk_window_set_events (window, OS.gtk_widget_get_events (paintHandle ()));
redrawWindow = 0;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

OS.gdk_window_set_events (window, OS.gtk_widget_get_events (paintHandle ()));
redrawWindow = 0;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

int /*long*/ paintHandle = paintHandle ();
int paintMask = OS.GDK_EXPOSURE_MASK;
OS.gtk_widget_add_events (paintHandle, paintMask);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

long /*int*/ paintHandle = paintHandle ();
int paintMask = OS.GDK_EXPOSURE_MASK;
OS.gtk_widget_add_events (paintHandle, paintMask);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

int /*long*/ paintHandle = paintHandle ();
int paintMask = OS.GDK_EXPOSURE_MASK;
OS.gtk_widget_add_events (paintHandle, paintMask);

推荐阅读
author-avatar
乔志造型店长阿杰
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有