Examples of GDevice


Examples of org.eclipse.swt.internal.carbon.GDevice

int createOverlayWindow () {
  int gdevice = OS.GetMainDevice ();
  int [] ptr = new int [1];
  OS.memcpy (ptr, gdevice, 4);
  GDevice device = new GDevice ();
  OS.memcpy (device, ptr [0], GDevice.sizeof);
  Rect rect = new Rect ()
  OS.SetRect (rect, device.left, device.top, device.right, device.bottom);
  int [] outWindow = new int [1];
  OS.CreateNewWindow (OS.kOverlayWindowClass, 0, rect, outWindow);
View Full Code Here

Examples of org.eclipse.swt.internal.carbon.GDevice

public Monitor [] getMonitors () {
  checkDevice ();
  int count = 0;
  Monitor [] monitors = new Monitor [1];
  Rect rect = new Rect ();
  GDevice device = new GDevice ();
  int gdevice = OS.GetDeviceList ();
  while (gdevice != 0) {
    if (count >= monitors.length) {
      Monitor [] newMonitors = new Monitor [monitors.length + 4];
      System.arraycopy (monitors, 0, newMonitors, 0, monitors.length);
View Full Code Here

Examples of org.eclipse.swt.internal.carbon.GDevice

  int gdevice = OS.GetMainDevice ();
  Monitor monitor = new Monitor ();
  monitor.handle = gdevice;
  int [] ptr = new int [1];
  OS.memcpy (ptr, gdevice, 4);
  GDevice device = new GDevice ();
  OS.memcpy (device, ptr [0], GDevice.sizeof);   
  monitor.x = device.left;
  monitor.y = device.top;
  monitor.width = device.right - device.left;
  monitor.height = device.bottom - device.top;
View Full Code Here

Examples of org.eclipse.swt.internal.carbon.GDevice

    window = gcWindow = createOverlayWindow ();
  } else {
    int gdevice = OS.GetMainDevice ();
    int [] ptr = new int [1];
    OS.memcpy (ptr, gdevice, 4);
    GDevice device = new GDevice ();
    OS.memcpy (device, ptr [0], GDevice.sizeof);
    Rect rect = new Rect ()
    OS.SetRect (rect, device.left, device.top, device.right, device.bottom);
    OS.SetWindowBounds (window, (short) OS.kWindowStructureRgn, rect);
  }
View Full Code Here

Examples of quicktime.qd.GDevice

/*     */   }
/*     */
/*     */   public void setGWorld(Stream paramStream, QDGraphics paramQDGraphics)
/*     */     throws QTException
/*     */   {
/* 581 */     GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*     */       public Object run() {
/* 583 */         return GDevice.getMain();
/*     */       }
/*     */     });
/* 587 */     setGWorld(paramStream, paramQDGraphics, localGDevice);
View Full Code Here

Examples of quicktime.qd.GDevice

/*     */   }
/*     */
/*     */   public void setGWorld(QDGraphics paramQDGraphics)
/*     */     throws QTException
/*     */   {
/* 596 */     GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*     */       public Object run() {
/* 598 */         return GDevice.getMain();
/*     */       }
/*     */     });
/* 602 */     QTException.checkError(QTSPresSetGWorld(_ID(), 0, QTObject.ID(paramQDGraphics), QTObject.ID(localGDevice)));
View Full Code Here

Examples of quicktime.qd.GDevice

/*  523 */         sessionID += 1;
/*  524 */         if (qtjwiredDebug) System.out.println("scratch depth 0x" + Integer.toHexString(QDGraphics.kDefaultPixelFormat));
/*      */
/*  526 */         if (!firstTime)
/*      */         {
/*  528 */           GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*      */             public Object run() {
/*  530 */               return GDevice.getMain();
/*      */             }
/*      */           });
/*  534 */           QDGraphics.scratch = new QDGraphics(QDGraphics.kDefaultPixelFormat, new QDRect(1, 1), null, localGDevice, 2);
View Full Code Here

Examples of quicktime.qd.GDevice

/*     */   public GDevice getGWorldDevice()
/*     */     throws StdQTException
/*     */   {
/* 153 */     SequenceGrabber localSequenceGrabber = this;
/*     */
/* 155 */     GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*     */       private final SequenceGrabber val$sg;
/*     */
/*     */       public Object run() { try { return GDevice.fromSequenceGrabber(this.val$sg); } catch (StdQTException localStdQTException) {
/*     */         }
/* 160 */         return null;
View Full Code Here

Examples of quicktime.qd.GDevice

/*     */   public MediaParams()
/*     */     throws QTException
/*     */   {
/*  62 */     super(80, true);
/*     */
/*  64 */     GDevice localGDevice = (GDevice)AccessController.doPrivileged(new PrivilegedAction() {
/*     */       public Object run() {
/*  66 */         return GDevice.getMain();
/*     */       }
/*     */     });
/*  70 */     setMatrix(new Matrix());
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.