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

x33g5p2x  于2022-01-29 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(214)

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

Table.findBackgroundControl介绍

暂无

代码示例

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

  1. @Override
  2. void redrawBackgroundImage () {
  3. Control control = findBackgroundControl ();
  4. if (control != null && control.backgroundImage != null) {
  5. redrawWidget (0, 0, 0, 0, true, false, false);
  6. }
  7. }

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

  1. @Override
  2. void redrawBackgroundImage () {
  3. Control control = findBackgroundControl ();
  4. if (control != null && control.backgroundImage != null) {
  5. redrawWidget (0, 0, 0, 0, true, false, false);
  6. }
  7. }

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

  1. @Override
  2. void redrawBackgroundImage () {
  3. Control control = findBackgroundControl ();
  4. if (control != null && control.backgroundImage != null) {
  5. redrawWidget (0, 0, 0, 0, true, false, false);
  6. }
  7. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. @Override
  2. LRESULT WM_SYSCOLORCHANGE (int /*long*/ wParam, int /*long*/ lParam) {
  3. LRESULT result = super.WM_SYSCOLORCHANGE (wParam, lParam);
  4. if (result != null) return result;
  5. if (findBackgroundControl () == null) {
  6. setBackgroundPixel (defaultBackground ());
  7. } else {
  8. int oldPixel = (int)/*64*/OS.SendMessage (handle, OS.LVM_GETBKCOLOR, 0, 0);
  9. if (oldPixel != OS.CLR_NONE) {
  10. if (findImageControl () == null) {
  11. if ((style & SWT.CHECK) != 0) fixCheckboxImageListColor (true);
  12. }
  13. }
  14. }
  15. return result;
  16. }

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

  1. @Override
  2. int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) {
  3. switch ((int)/*64*/user_data) {
  4. case EXPOSE_EVENT_INVERSE: {
  5. /*
  6. * Feature in GTK. When the GtkTreeView has no items it does not propagate
  7. * expose events. The fix is to fill the background in the inverse expose
  8. * event.
  9. */
  10. if (itemCount == 0 && (state & OBSCURED) == 0) {
  11. if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
  12. Control control = findBackgroundControl ();
  13. if (control != null) {
  14. GdkEventExpose gdkEvent = new GdkEventExpose ();
  15. OS.memmove (gdkEvent, arg0, GdkEventExpose.sizeof);
  16. int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle);
  17. if (window == gdkEvent.window) {
  18. drawBackground (control, window, gdkEvent.region, gdkEvent.area_x, gdkEvent.area_y, gdkEvent.area_width, gdkEvent.area_height);
  19. }
  20. }
  21. }
  22. }
  23. break;
  24. }
  25. }
  26. return super.windowProc (handle, arg0, user_data);
  27. }

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

  1. @Override
  2. int /*long*/ windowProc (int /*long*/ handle, int /*long*/ arg0, int /*long*/ user_data) {
  3. switch ((int)/*64*/user_data) {
  4. case EXPOSE_EVENT_INVERSE: {
  5. /*
  6. * Feature in GTK. When the GtkTreeView has no items it does not propagate
  7. * expose events. The fix is to fill the background in the inverse expose
  8. * event.
  9. */
  10. if (itemCount == 0 && (state & OBSCURED) == 0) {
  11. if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
  12. Control control = findBackgroundControl ();
  13. if (control != null) {
  14. GdkEventExpose gdkEvent = new GdkEventExpose ();
  15. OS.memmove (gdkEvent, arg0, GdkEventExpose.sizeof);
  16. int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle);
  17. if (window == gdkEvent.window) {
  18. drawBackground (control, window, gdkEvent.region, gdkEvent.area_x, gdkEvent.area_y, gdkEvent.area_width, gdkEvent.area_height);
  19. }
  20. }
  21. }
  22. }
  23. break;
  24. }
  25. }
  26. return super.windowProc (handle, arg0, user_data);
  27. }

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

  1. @Override
  2. long /*int*/ windowProc (long /*int*/ handle, long /*int*/ arg0, long /*int*/ user_data) {
  3. switch ((int)/*64*/user_data) {
  4. case EXPOSE_EVENT_INVERSE: {
  5. /*
  6. * Feature in GTK. When the GtkTreeView has no items it does not propagate
  7. * expose events. The fix is to fill the background in the inverse expose
  8. * event.
  9. */
  10. if (itemCount == 0 && (state & OBSCURED) == 0) {
  11. if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
  12. Control control = findBackgroundControl ();
  13. if (control != null) {
  14. GdkEventExpose gdkEvent = new GdkEventExpose ();
  15. OS.memmove (gdkEvent, arg0, GdkEventExpose.sizeof);
  16. long /*int*/ window = OS.gtk_tree_view_get_bin_window (handle);
  17. if (window == gdkEvent.window) {
  18. drawBackground (control, window, gdkEvent.region, gdkEvent.area_x, gdkEvent.area_y, gdkEvent.area_width, gdkEvent.area_height);
  19. }
  20. }
  21. }
  22. }
  23. break;
  24. }
  25. }
  26. return super.windowProc (handle, arg0, user_data);
  27. }

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

  1. void drawInheritedBackground (int /*long*/ eventPtr, int /*long*/ cairo) {
  2. if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
  3. Control control = findBackgroundControl ();
  4. if (control != null) {
  5. int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle);

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

  1. void drawInheritedBackground (int /*long*/ eventPtr, int /*long*/ cairo) {
  2. if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
  3. Control control = findBackgroundControl ();
  4. if (control != null) {
  5. int /*long*/ window = OS.gtk_tree_view_get_bin_window (handle);

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

  1. void drawInheritedBackground (long /*int*/ eventPtr, long /*int*/ cairo) {
  2. if ((state & PARENT_BACKGROUND) != 0 || backgroundImage != null) {
  3. Control control = findBackgroundControl ();
  4. if (control != null) {
  5. long /*int*/ window = OS.gtk_tree_view_get_bin_window (handle);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. Control control = findBackgroundControl ();
  2. if (control == null) control = this;
  3. if (control.backgroundImage == null) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. Control control = findBackgroundControl ();
  2. if (control == null) control = this;
  3. if (control.backgroundImage == null) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. int clrBackground;
  2. if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
  3. Control control = findBackgroundControl ();
  4. if (control == null) control = this;
  5. clrBackground = control.getBackgroundPixel ();

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. Control control = findBackgroundControl ();
  2. if (control == null) control = this;
  3. if (clrText == -1) clrText = control.getForegroundPixel ();

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. Control control = findBackgroundControl ();
  2. if (control != null && control.backgroundImage != null) {
  3. RECT rect = new RECT ();

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. Control control = findBackgroundControl ();
  2. if (control == null) control = this;
  3. if (clrText == -1) clrText = control.getForegroundPixel ();

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  1. nmcd.clrTextBk = OS.CLR_NONE;
  2. if (selectionForeground == -1) {
  3. Control control = findBackgroundControl ();
  4. if (control == null) control = this;
  5. if (control.backgroundImage == null) {

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

  1. Control control = findBackgroundControl ();
  2. if (control != null) {
  3. if (cr != 0) {
  4. boolean wasSelected = (drawState & SWT.SELECTED) != 0;
  5. if (wasSelected) {
  6. Control control = findBackgroundControl ();
  7. if (control == null) control = this;
  8. if (!OS.GTK3){

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

  1. Control control = findBackgroundControl ();
  2. if (control != null) {
  3. if (cr != 0) {
  4. boolean wasSelected = (drawState & SWT.SELECTED) != 0;
  5. if (wasSelected) {
  6. Control control = findBackgroundControl ();
  7. if (control == null) control = this;
  8. if (!OS.GTK3){

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

  1. Control control = findBackgroundControl ();
  2. if (control != null) {
  3. if (cr != 0) {
  4. boolean wasSelected = (drawState & SWT.SELECTED) != 0;
  5. if (wasSelected) {
  6. Control control = findBackgroundControl ();
  7. if (control == null) control = this;
  8. if (!OS.GTK3){

相关文章

Table类方法