Package org.eclipse.swt.internal.carbon

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


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

  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

    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

TOP

Related Classes of org.eclipse.swt.internal.carbon.GDevice

Copyright © 2018 www.massapicom. 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.