Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gl4java.jau.awt.windows
Class MSWin32HandleAccess  view MSWin32HandleAccess download MSWin32HandleAccess.java

java.lang.Object
  extended bygl4java.jau.awt.windows.MSWin32HandleAccess
All Implemented Interfaces:
gl4java.jau.awt.WinHandleAccess

public class MSWin32HandleAccess
extends java.lang.Object
implements gl4java.jau.awt.WinHandleAccess

The ms-windows implementation for accessing the native window handle This class has no user servicable parts inside. It is used internally by GLFrame and by our package spoofed sun.awt classes that give us internal access to window variables that we need to set up the OpenGL drawing ontext

Version:
0.1, 3. JULY 1999

Field Summary
protected  int depth
           
protected  long window
           
 
Constructor Summary
MSWin32HandleAccess()
           
 
Method Summary
protected  void achieveData(java.awt.Component c, java.awt.Graphics g)
           
 int getWinDepth(java.awt.Component c, java.awt.Graphics g)
          get the color depth
 long getWinHandle(java.awt.Component c, java.awt.Graphics g)
          get the window handle
private static int WindowFromDC(int hdc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

window

protected long window

depth

protected int depth
Constructor Detail

MSWin32HandleAccess

public MSWin32HandleAccess()
Method Detail

WindowFromDC

private static int WindowFromDC(int hdc)

achieveData

protected void achieveData(java.awt.Component c,
                           java.awt.Graphics g)

getWinHandle

public long getWinHandle(java.awt.Component c,
                         java.awt.Graphics g)
get the window handle

Specified by:
getWinHandle in interface gl4java.jau.awt.WinHandleAccess

getWinDepth

public int getWinDepth(java.awt.Component c,
                       java.awt.Graphics g)
get the color depth

Specified by:
getWinDepth in interface gl4java.jau.awt.WinHandleAccess