本文整理了Java中org.eclipse.swt.widgets.Table.findBackgroundControl()
方法的一些代码示例,展示了Table.findBackgroundControl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.findBackgroundControl()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:findBackgroundControl
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
void redrawBackgroundImage () {
Control control = findBackgroundControl ();
if (control != null && control.backgroundImage != null) {
redrawWidget (0, 0, 0, 0, true, false, false);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
void redrawBackgroundImage () {
Control control = findBackgroundControl ();
if (control != null && control.backgroundImage != null) {
redrawWidget (0, 0, 0, 0, true, false, false);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
void redrawBackgroundImage () {
Control control = findBackgroundControl ();
if (control != null && control.backgroundImage != null) {
redrawWidget (0, 0, 0, 0, true, false, false);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
@Override
LRESULT WM_SYSCOLORCHANGE (int /*long*/ wParam, int /*long*/ lParam) {
LRESULT result = super.WM_SYSCOLORCHANGE (wParam, lParam);
if (result != null) return result;
if (findBackgroundControl () == null) {
setBackgroundPixel (defaultBackground ());
} else {
int oldPixel = (int)/*64*/OS.SendMessage (handle, OS.LVM_GETBKCOLOR, 0, 0);
if (oldPixel != OS.CLR_NONE) {
if (findImageControl () == null) {
if ((style & SWT.CHECK) != 0) fixCheckboxImageListColor (true);
}
}
}
return result;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) {
switch ((int)/*64*/user_data) {
case EXPOSE_EVENT_INVERSE: {
/*
* Feature in GTK. When the GtkTreeView has no items it does not propagate
* expose events. The fix is to fill the background in the inverse expose
* event.
*/
if (itemCount == 0 && (state & OBSCURED) == 0) {
if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
Control control = findBackgroundControl ();
if (control != null) {
GdkEventExpose gdkEvent = new GdkEventExpose ();
OS.memmove (gdkEvent, arg0, GdkEventExpose.sizeof);
int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle);
if (window == gdkEvent.window) {
drawBackground (control, window, gdkEvent.region, gdkEvent.area_x, gdkEvent.area_y, gdkEvent.area_width, gdkEvent.area_height);
}
}
}
}
break;
}
}
return super.windowProc (handle, arg0, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
@Override
int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) {
switch ((int)/*64*/user_data) {
case EXPOSE_EVENT_INVERSE: {
/*
* Feature in GTK. When the GtkTreeView has no items it does not propagate
* expose events. The fix is to fill the background in the inverse expose
* event.
*/
if (itemCount == 0 && (state & OBSCURED) == 0) {
if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
Control control = findBackgroundControl ();
if (control != null) {
GdkEventExpose gdkEvent = new GdkEventExpose ();
OS.memmove (gdkEvent, arg0, GdkEventExpose.sizeof);
int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle);
if (window == gdkEvent.window) {
drawBackground (control, window, gdkEvent.region, gdkEvent.area_x, gdkEvent.area_y, gdkEvent.area_width, gdkEvent.area_height);
}
}
}
}
break;
}
}
return super.windowProc (handle, arg0, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
@Override
long /*int*/ windowProc (long /*int*/ handle, long /*int*/ arg0, long /*int*/ user_data) {
switch ((int)/*64*/user_data) {
case EXPOSE_EVENT_INVERSE: {
/*
* Feature in GTK. When the GtkTreeView has no items it does not propagate
* expose events. The fix is to fill the background in the inverse expose
* event.
*/
if (itemCount == 0 && (state & OBSCURED) == 0) {
if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
Control control = findBackgroundControl ();
if (control != null) {
GdkEventExpose gdkEvent = new GdkEventExpose ();
OS.memmove (gdkEvent, arg0, GdkEventExpose.sizeof);
long /*int*/ window = OS.gtk_tree_view_get_bin_window (handle);
if (window == gdkEvent.window) {
drawBackground (control, window, gdkEvent.region, gdkEvent.area_x, gdkEvent.area_y, gdkEvent.area_width, gdkEvent.area_height);
}
}
}
}
break;
}
}
return super.windowProc (handle, arg0, user_data);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void drawInheritedBackground (int /*long*/ eventPtr, int /*long*/ cairo) {
if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
Control control = findBackgroundControl ();
if (control != null) {
int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void drawInheritedBackground (int /*long*/ eventPtr, int /*long*/ cairo) {
if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
Control control = findBackgroundControl ();
if (control != null) {
int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void drawInheritedBackground (long /*int*/ eventPtr, long /*int*/ cairo) {
if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
Control control = findBackgroundControl ();
if (control != null) {
long /*int*/ window = OS.gtk_tree_view_get_bin_window (handle);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
Control control = findBackgroundControl ();
if (control == null) control = this;
if (control.backgroundImage == null) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
Control control = findBackgroundControl ();
if (control == null) control = this;
if (control.backgroundImage == null) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
int clrBackground;
if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
Control control = findBackgroundControl ();
if (control == null) control = this;
clrBackground = control.getBackgroundPixel ();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
Control control = findBackgroundControl ();
if (control == null) control = this;
if (clrText == -1) clrText = control.getForegroundPixel ();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
Control control = findBackgroundControl ();
if (control != null && control.backgroundImage != null) {
RECT rect = new RECT ();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
Control control = findBackgroundControl ();
if (control == null) control = this;
if (clrText == -1) clrText = control.getForegroundPixel ();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
nmcd.clrTextBk = OS.CLR_NONE;
if (selectionForeground == -1) {
Control control = findBackgroundControl ();
if (control == null) control = this;
if (control.backgroundImage == null) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
Control control = findBackgroundControl ();
if (control != null) {
if (cr != 0) {
boolean wasSelected = (drawState & SWT.SELECTED) != 0;
if (wasSelected) {
Control control = findBackgroundControl ();
if (control == null) control = this;
if (!OS.GTK3){
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
Control control = findBackgroundControl ();
if (control != null) {
if (cr != 0) {
boolean wasSelected = (drawState & SWT.SELECTED) != 0;
if (wasSelected) {
Control control = findBackgroundControl ();
if (control == null) control = this;
if (!OS.GTK3){
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
Control control = findBackgroundControl ();
if (control != null) {
if (cr != 0) {
boolean wasSelected = (drawState & SWT.SELECTED) != 0;
if (wasSelected) {
Control control = findBackgroundControl ();
if (control == null) control = this;
if (!OS.GTK3){
内容来源于网络,如有侵权,请联系作者删除!