com.jogamp.nativewindow.impl.windows
Class GDI

java.lang.Object
  extended by com.jogamp.nativewindow.impl.windows.GDI

public class GDI
extends Object


Field Summary
static int BI_BITFIELDS
           
static int BI_RGB
           
static int BI_RLE4
           
static int BI_RLE8
           
static int DIB_PAL_COLORS
           
static int DIB_RGB_COLORS
           
static int ERROR_INVALID_DATA
           
static int ERROR_INVALID_PIXEL_FORMAT
           
static int ERROR_INVALID_WINDOW_HANDLE
           
static int ERROR_NO_SYSTEM_RESOURCES
           
static int ERROR_PROC_NOT_FOUND
           
static int ERROR_SUCCESS
           
static int OBJ_BITMAP
           
static int OBJ_BRUSH
           
static int OBJ_COLORSPACE
           
static int OBJ_DC
           
static int OBJ_ENHMETADC
           
static int OBJ_ENHMETAFILE
           
static int OBJ_EXTPEN
           
static int OBJ_FONT
           
static int OBJ_MEMDC
           
static int OBJ_METADC
           
static int OBJ_METAFILE
           
static int OBJ_PAL
           
static int OBJ_PEN
           
static int OBJ_REGION
           
static int PFD_DEPTH_DONTCARE
           
static int PFD_DOUBLEBUFFER
           
static int PFD_DOUBLEBUFFER_DONTCARE
           
static int PFD_DRAW_TO_BITMAP
           
static int PFD_DRAW_TO_WINDOW
           
static int PFD_GENERIC_ACCELERATED
           
static int PFD_GENERIC_FORMAT
           
static int PFD_MAIN_PLANE
           
static int PFD_NEED_PALETTE
           
static int PFD_NEED_SYSTEM_PALETTE
           
static int PFD_OVERLAY_PLANE
           
static int PFD_STEREO
           
static long PFD_STEREO_DONTCARE
           
static int PFD_SUPPORT_DIRECTDRAW
           
static int PFD_SUPPORT_GDI
           
static int PFD_SUPPORT_OPENGL
           
static int PFD_SWAP_COPY
           
static int PFD_SWAP_EXCHANGE
           
static int PFD_SWAP_LAYER_BUFFERS
           
static int PFD_TYPE_COLORINDEX
           
static int PFD_TYPE_RGBA
           
static int PFD_UNDERLAY_PLANE
           
static int SW_FORCEMINIMIZE
           
static int SW_HIDE
           
static int SW_MAX
           
static int SW_MAXIMIZE
           
static int SW_MINIMIZE
           
static int SW_NORMAL
           
static int SW_RESTORE
           
static int SW_SHOW
           
static int SW_SHOWDEFAULT
           
static int SW_SHOWMAXIMIZED
           
static int SW_SHOWMINIMIZED
           
static int SW_SHOWMINNOACTIVE
           
static int SW_SHOWNA
           
static int SW_SHOWNOACTIVATE
           
static int SW_SHOWNORMAL
           
 
Constructor Summary
GDI()
           
 
Method Summary
static int ChoosePixelFormat(long arg0, PIXELFORMATDESCRIPTOR arg1)
          Interface to C language function:
int ChoosePixelFormat(HANDLE, const PIXELFORMATDESCRIPTOR * );
static long CreateCompatibleDC(long arg0)
          Interface to C language function:
HANDLE CreateCompatibleDC(HANDLE);
static long CreateDIBSection(long arg0, BITMAPINFO arg1, int arg2, PointerBuffer arg3, long arg4, int arg5)
          Interface to C language function:
HANDLE CreateDIBSection(HANDLE, const BITMAPINFO * , UINT, LPVOID * , HANDLE, DWORD);
static long CreateDummyWindow(int x, int y, int width, int height)
           
static boolean CreateWindowClass(long hInstance, String clazzName, long wndProc)
           
static boolean DeleteDC(long arg0)
          Interface to C language function:
BOOL DeleteDC(HANDLE);
static boolean DeleteObject(long arg0)
          Interface to C language function:
BOOL DeleteObject(HANDLE);
static int DescribePixelFormat(long arg0, int arg1, int arg2, PIXELFORMATDESCRIPTOR arg3)
          Interface to C language function:
int DescribePixelFormat(HANDLE, int, UINT, PPIXELFORMATDESCRIPTOR);
static boolean DestroyDummyWindow(long hwnd)
           
static boolean DestroyWindow(long hWnd)
          Interface to C language function:
BOOL DestroyWindow(HANDLE hWnd);
static boolean DestroyWindowClass(long hInstance, String className)
           
static long GetApplicationHandle()
          Interface to C language function:
HANDLE GetApplicationHandle();
static long GetCurrentProcess()
          Interface to C language function:
HANDLE GetCurrentProcess(void);
static long GetDC(long arg0)
          Interface to C language function:
HANDLE GetDC(HANDLE);
static boolean GetDeviceGammaRamp(long arg0, Buffer arg1)
          Interface to C language function:
BOOL GetDeviceGammaRamp(HANDLE, LPVOID);
static int GetLastError()
          Interface to C language function:
DWORD GetLastError(void);
static int GetObjectType(long h)
          Interface to C language function:
DWORD GetObjectType(HANDLE h);
static int GetPixelFormat(long arg0)
          Interface to C language function:
int GetPixelFormat(HANDLE);
static boolean GetProcessAffinityMask(long hProcess, PointerBuffer lpProcessAffinityMask, PointerBuffer lpSystemAffinityMask)
          Interface to C language function:
BOOL GetProcessAffinityMask(HANDLE hProcess, PDWORD_PTR lpProcessAffinityMask, PDWORD_PTR lpSystemAffinityMask);
static Point GetRelativeLocation(long src_win, long dest_win, int src_x, int src_y)
           
static void initSingleton(boolean firstX11ActionOnProcess)
           
static int ReleaseDC(long hWnd, long hDC)
          Interface to C language function:
int ReleaseDC(HANDLE hWnd, HANDLE hDC);
static long SelectObject(long arg0, long arg1)
          Interface to C language function:
HANDLE SelectObject(HANDLE, HANDLE);
static boolean SetDeviceGammaRamp(long arg0, Buffer arg1)
          Interface to C language function:
BOOL SetDeviceGammaRamp(HANDLE, LPVOID);
static boolean SetPixelFormat(long arg0, int arg1, PIXELFORMATDESCRIPTOR arg2)
          Interface to C language function:
BOOL SetPixelFormat(HANDLE, int, const PIXELFORMATDESCRIPTOR * );
static boolean SetProcessAffinityMask(long hProcess, long dwProcessAffinityMask)
          Interface to C language function:
BOOL SetProcessAffinityMask(HANDLE hProcess, DWORD_PTR dwProcessAffinityMask);
static boolean ShowWindow(long hWnd, int nCmdShow)
          Interface to C language function:
BOOL ShowWindow(HANDLE hWnd, int nCmdShow);
static boolean SwapBuffers(long arg0)
          Interface to C language function:
BOOL SwapBuffers(HANDLE);
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BI_RGB

public static final int BI_RGB
See Also:
Constant Field Values

BI_RLE8

public static final int BI_RLE8
See Also:
Constant Field Values

BI_RLE4

public static final int BI_RLE4
See Also:
Constant Field Values

BI_BITFIELDS

public static final int BI_BITFIELDS
See Also:
Constant Field Values

DIB_RGB_COLORS

public static final int DIB_RGB_COLORS
See Also:
Constant Field Values

DIB_PAL_COLORS

public static final int DIB_PAL_COLORS
See Also:
Constant Field Values

PFD_TYPE_RGBA

public static final int PFD_TYPE_RGBA
See Also:
Constant Field Values

PFD_TYPE_COLORINDEX

public static final int PFD_TYPE_COLORINDEX
See Also:
Constant Field Values

PFD_MAIN_PLANE

public static final int PFD_MAIN_PLANE
See Also:
Constant Field Values

PFD_OVERLAY_PLANE

public static final int PFD_OVERLAY_PLANE
See Also:
Constant Field Values

PFD_UNDERLAY_PLANE

public static final int PFD_UNDERLAY_PLANE
See Also:
Constant Field Values

PFD_DOUBLEBUFFER

public static final int PFD_DOUBLEBUFFER
See Also:
Constant Field Values

PFD_STEREO

public static final int PFD_STEREO
See Also:
Constant Field Values

PFD_DRAW_TO_WINDOW

public static final int PFD_DRAW_TO_WINDOW
See Also:
Constant Field Values

PFD_DRAW_TO_BITMAP

public static final int PFD_DRAW_TO_BITMAP
See Also:
Constant Field Values

PFD_SUPPORT_GDI

public static final int PFD_SUPPORT_GDI
See Also:
Constant Field Values

PFD_SUPPORT_OPENGL

public static final int PFD_SUPPORT_OPENGL
See Also:
Constant Field Values

PFD_GENERIC_FORMAT

public static final int PFD_GENERIC_FORMAT
See Also:
Constant Field Values

PFD_NEED_PALETTE

public static final int PFD_NEED_PALETTE
See Also:
Constant Field Values

PFD_NEED_SYSTEM_PALETTE

public static final int PFD_NEED_SYSTEM_PALETTE
See Also:
Constant Field Values

PFD_SWAP_EXCHANGE

public static final int PFD_SWAP_EXCHANGE
See Also:
Constant Field Values

PFD_SWAP_COPY

public static final int PFD_SWAP_COPY
See Also:
Constant Field Values

PFD_SWAP_LAYER_BUFFERS

public static final int PFD_SWAP_LAYER_BUFFERS
See Also:
Constant Field Values

PFD_GENERIC_ACCELERATED

public static final int PFD_GENERIC_ACCELERATED
See Also:
Constant Field Values

PFD_SUPPORT_DIRECTDRAW

public static final int PFD_SUPPORT_DIRECTDRAW
See Also:
Constant Field Values

PFD_DEPTH_DONTCARE

public static final int PFD_DEPTH_DONTCARE
See Also:
Constant Field Values

PFD_DOUBLEBUFFER_DONTCARE

public static final int PFD_DOUBLEBUFFER_DONTCARE
See Also:
Constant Field Values

PFD_STEREO_DONTCARE

public static final long PFD_STEREO_DONTCARE
See Also:
Constant Field Values

ERROR_SUCCESS

public static final int ERROR_SUCCESS
See Also:
Constant Field Values

ERROR_INVALID_PIXEL_FORMAT

public static final int ERROR_INVALID_PIXEL_FORMAT
See Also:
Constant Field Values

ERROR_NO_SYSTEM_RESOURCES

public static final int ERROR_NO_SYSTEM_RESOURCES
See Also:
Constant Field Values

ERROR_INVALID_DATA

public static final int ERROR_INVALID_DATA
See Also:
Constant Field Values

ERROR_PROC_NOT_FOUND

public static final int ERROR_PROC_NOT_FOUND
See Also:
Constant Field Values

ERROR_INVALID_WINDOW_HANDLE

public static final int ERROR_INVALID_WINDOW_HANDLE
See Also:
Constant Field Values

SW_HIDE

public static final int SW_HIDE
See Also:
Constant Field Values

SW_SHOWNORMAL

public static final int SW_SHOWNORMAL
See Also:
Constant Field Values

SW_NORMAL

public static final int SW_NORMAL
See Also:
Constant Field Values

SW_SHOWMINIMIZED

public static final int SW_SHOWMINIMIZED
See Also:
Constant Field Values

SW_SHOWMAXIMIZED

public static final int SW_SHOWMAXIMIZED
See Also:
Constant Field Values

SW_MAXIMIZE

public static final int SW_MAXIMIZE
See Also:
Constant Field Values

SW_SHOWNOACTIVATE

public static final int SW_SHOWNOACTIVATE
See Also:
Constant Field Values

SW_SHOW

public static final int SW_SHOW
See Also:
Constant Field Values

SW_MINIMIZE

public static final int SW_MINIMIZE
See Also:
Constant Field Values

SW_SHOWMINNOACTIVE

public static final int SW_SHOWMINNOACTIVE
See Also:
Constant Field Values

SW_SHOWNA

public static final int SW_SHOWNA
See Also:
Constant Field Values

SW_RESTORE

public static final int SW_RESTORE
See Also:
Constant Field Values

SW_SHOWDEFAULT

public static final int SW_SHOWDEFAULT
See Also:
Constant Field Values

SW_FORCEMINIMIZE

public static final int SW_FORCEMINIMIZE
See Also:
Constant Field Values

SW_MAX

public static final int SW_MAX
See Also:
Constant Field Values

OBJ_PEN

public static final int OBJ_PEN
See Also:
Constant Field Values

OBJ_BRUSH

public static final int OBJ_BRUSH
See Also:
Constant Field Values

OBJ_DC

public static final int OBJ_DC
See Also:
Constant Field Values

OBJ_METADC

public static final int OBJ_METADC
See Also:
Constant Field Values

OBJ_PAL

public static final int OBJ_PAL
See Also:
Constant Field Values

OBJ_FONT

public static final int OBJ_FONT
See Also:
Constant Field Values

OBJ_BITMAP

public static final int OBJ_BITMAP
See Also:
Constant Field Values

OBJ_REGION

public static final int OBJ_REGION
See Also:
Constant Field Values

OBJ_METAFILE

public static final int OBJ_METAFILE
See Also:
Constant Field Values

OBJ_MEMDC

public static final int OBJ_MEMDC
See Also:
Constant Field Values

OBJ_EXTPEN

public static final int OBJ_EXTPEN
See Also:
Constant Field Values

OBJ_ENHMETADC

public static final int OBJ_ENHMETADC
See Also:
Constant Field Values

OBJ_ENHMETAFILE

public static final int OBJ_ENHMETAFILE
See Also:
Constant Field Values

OBJ_COLORSPACE

public static final int OBJ_COLORSPACE
See Also:
Constant Field Values
Constructor Detail

GDI

public GDI()
Method Detail

ChoosePixelFormat

public static int ChoosePixelFormat(long arg0,
                                    PIXELFORMATDESCRIPTOR arg1)
Interface to C language function:
int ChoosePixelFormat(HANDLE, const PIXELFORMATDESCRIPTOR * );


CreateCompatibleDC

public static long CreateCompatibleDC(long arg0)
Interface to C language function:
HANDLE CreateCompatibleDC(HANDLE);


CreateDIBSection

public static long CreateDIBSection(long arg0,
                                    BITMAPINFO arg1,
                                    int arg2,
                                    PointerBuffer arg3,
                                    long arg4,
                                    int arg5)
Interface to C language function:
HANDLE CreateDIBSection(HANDLE, const BITMAPINFO * , UINT, LPVOID * , HANDLE, DWORD);


DeleteDC

public static boolean DeleteDC(long arg0)
Interface to C language function:
BOOL DeleteDC(HANDLE);


DeleteObject

public static boolean DeleteObject(long arg0)
Interface to C language function:
BOOL DeleteObject(HANDLE);


DescribePixelFormat

public static int DescribePixelFormat(long arg0,
                                      int arg1,
                                      int arg2,
                                      PIXELFORMATDESCRIPTOR arg3)
Interface to C language function:
int DescribePixelFormat(HANDLE, int, UINT, PPIXELFORMATDESCRIPTOR);


DestroyWindow

public static boolean DestroyWindow(long hWnd)
Interface to C language function:
BOOL DestroyWindow(HANDLE hWnd);


GetApplicationHandle

public static long GetApplicationHandle()
Interface to C language function:
HANDLE GetApplicationHandle();


GetCurrentProcess

public static long GetCurrentProcess()
Interface to C language function:
HANDLE GetCurrentProcess(void);


GetDC

public static long GetDC(long arg0)
Interface to C language function:
HANDLE GetDC(HANDLE);


GetDeviceGammaRamp

public static boolean GetDeviceGammaRamp(long arg0,
                                         Buffer arg1)
Interface to C language function:
BOOL GetDeviceGammaRamp(HANDLE, LPVOID);


GetLastError

public static int GetLastError()
Interface to C language function:
DWORD GetLastError(void);


GetObjectType

public static int GetObjectType(long h)
Interface to C language function:
DWORD GetObjectType(HANDLE h);


GetPixelFormat

public static int GetPixelFormat(long arg0)
Interface to C language function:
int GetPixelFormat(HANDLE);


GetProcessAffinityMask

public static boolean GetProcessAffinityMask(long hProcess,
                                             PointerBuffer lpProcessAffinityMask,
                                             PointerBuffer lpSystemAffinityMask)
Interface to C language function:
BOOL GetProcessAffinityMask(HANDLE hProcess, PDWORD_PTR lpProcessAffinityMask, PDWORD_PTR lpSystemAffinityMask);


ReleaseDC

public static int ReleaseDC(long hWnd,
                            long hDC)
Interface to C language function:
int ReleaseDC(HANDLE hWnd, HANDLE hDC);


SelectObject

public static long SelectObject(long arg0,
                                long arg1)
Interface to C language function:
HANDLE SelectObject(HANDLE, HANDLE);


SetDeviceGammaRamp

public static boolean SetDeviceGammaRamp(long arg0,
                                         Buffer arg1)
Interface to C language function:
BOOL SetDeviceGammaRamp(HANDLE, LPVOID);


SetPixelFormat

public static boolean SetPixelFormat(long arg0,
                                     int arg1,
                                     PIXELFORMATDESCRIPTOR arg2)
Interface to C language function:
BOOL SetPixelFormat(HANDLE, int, const PIXELFORMATDESCRIPTOR * );


SetProcessAffinityMask

public static boolean SetProcessAffinityMask(long hProcess,
                                             long dwProcessAffinityMask)
Interface to C language function:
BOOL SetProcessAffinityMask(HANDLE hProcess, DWORD_PTR dwProcessAffinityMask);


ShowWindow

public static boolean ShowWindow(long hWnd,
                                 int nCmdShow)
Interface to C language function:
BOOL ShowWindow(HANDLE hWnd, int nCmdShow);


SwapBuffers

public static boolean SwapBuffers(long arg0)
Interface to C language function:
BOOL SwapBuffers(HANDLE);


initSingleton

public static void initSingleton(boolean firstX11ActionOnProcess)

CreateDummyWindow

public static long CreateDummyWindow(int x,
                                     int y,
                                     int width,
                                     int height)

DestroyDummyWindow

public static boolean DestroyDummyWindow(long hwnd)

GetRelativeLocation

public static Point GetRelativeLocation(long src_win,
                                        long dest_win,
                                        int src_x,
                                        int src_y)

CreateWindowClass

public static boolean CreateWindowClass(long hInstance,
                                        String clazzName,
                                        long wndProc)

DestroyWindowClass

public static boolean DestroyWindowClass(long hInstance,
                                         String className)


Copyright 2010 JogAmp Community.