Examples of GdkVisual


Examples of org.eclipse.swt.internal.gtk.GdkVisual

public long /*int*/ internal_new_GC(GCData data) {
  long /*int*/ gc, drawable = 0;
  if (OS.USE_CAIRO) {
    gc = cairo;
  } else {
    GdkVisual visual = new GdkVisual ();
    OS.memmove (visual, OS.gdk_visual_get_system());
    drawable = OS.gdk_pixmap_new(OS.gdk_get_default_root_window(), 1, 1, visual.depth);
    gc = OS.gdk_gc_new (drawable);
  }
  if (gc == 0) SWT.error (SWT.ERROR_NO_HANDLES);
View Full Code Here

Examples of org.eclipse.swt.internal.gtk.GdkVisual

public int /*long*/ internal_new_GC(GCData data) {
  int /*long*/ gc, drawable = 0;
  if (OS.USE_CAIRO) {
    gc = cairo;
  } else {
    GdkVisual visual = new GdkVisual ();
    OS.memmove (visual, OS.gdk_visual_get_system());
    drawable = OS.gdk_pixmap_new(OS.gdk_get_default_root_window(), 1, 1, visual.depth);
    gc = OS.gdk_gc_new (drawable);
  }
  if (gc == 0) SWT.error (SWT.ERROR_NO_HANDLES);
View Full Code Here

Examples of org.eclipse.swt.internal.gtk.GdkVisual

* @return the platform specific GC handle
*
* @noreference This method is not intended to be referenced by clients.
*/
public int /*long*/ internal_new_GC(GCData data) {
  GdkVisual visual = new GdkVisual ();
  OS.memmove (visual, OS.gdk_visual_get_system());
  int /*long*/ drawable = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), 1, 1, visual.depth);
  int /*long*/ gdkGC = OS.gdk_gc_new (drawable);
  if (gdkGC == 0) SWT.error (SWT.ERROR_NO_HANDLES);
  if (data != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.