# This file was created automatically by SWIG.
import __init___
wglUseFontBitmaps = __init___.wglUseFontBitmapsA
wglUseFontOutlines = __init___.wglUseFontOutlinesA
class PIXELFORMATDESCRIPTOR:
    def __init__(self,*args):
        self.this = apply(__init___.new_PIXELFORMATDESCRIPTOR,args)
        self.thisown = 1

    def __del__(self,__init___=__init___):
        if self.thisown == 1 :
            __init___.delete_PIXELFORMATDESCRIPTOR(self)
    __setmethods__ = {
        "nSize" : __init___.PIXELFORMATDESCRIPTOR_nSize_set,
        "nVersion" : __init___.PIXELFORMATDESCRIPTOR_nVersion_set,
        "dwFlags" : __init___.PIXELFORMATDESCRIPTOR_dwFlags_set,
        "iPixelType" : __init___.PIXELFORMATDESCRIPTOR_iPixelType_set,
        "cColorBits" : __init___.PIXELFORMATDESCRIPTOR_cColorBits_set,
        "cRedBits" : __init___.PIXELFORMATDESCRIPTOR_cRedBits_set,
        "cRedShift" : __init___.PIXELFORMATDESCRIPTOR_cRedShift_set,
        "cGreenBits" : __init___.PIXELFORMATDESCRIPTOR_cGreenBits_set,
        "cGreenShift" : __init___.PIXELFORMATDESCRIPTOR_cGreenShift_set,
        "cBlueBits" : __init___.PIXELFORMATDESCRIPTOR_cBlueBits_set,
        "cBlueShift" : __init___.PIXELFORMATDESCRIPTOR_cBlueShift_set,
        "cAlphaBits" : __init___.PIXELFORMATDESCRIPTOR_cAlphaBits_set,
        "cAlphaShift" : __init___.PIXELFORMATDESCRIPTOR_cAlphaShift_set,
        "cAccumBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumBits_set,
        "cAccumRedBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumRedBits_set,
        "cAccumGreenBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumGreenBits_set,
        "cAccumBlueBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumBlueBits_set,
        "cAccumAlphaBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumAlphaBits_set,
        "cDepthBits" : __init___.PIXELFORMATDESCRIPTOR_cDepthBits_set,
        "cStencilBits" : __init___.PIXELFORMATDESCRIPTOR_cStencilBits_set,
        "cAuxBuffers" : __init___.PIXELFORMATDESCRIPTOR_cAuxBuffers_set,
        "iLayerType" : __init___.PIXELFORMATDESCRIPTOR_iLayerType_set,
        "bReserved" : __init___.PIXELFORMATDESCRIPTOR_bReserved_set,
        "dwLayerMask" : __init___.PIXELFORMATDESCRIPTOR_dwLayerMask_set,
        "dwVisibleMask" : __init___.PIXELFORMATDESCRIPTOR_dwVisibleMask_set,
        "dwDamageMask" : __init___.PIXELFORMATDESCRIPTOR_dwDamageMask_set,
    }
    def __setattr__(self,name,value):
        if (name == "this") or (name == "thisown"): self.__dict__[name] = value; return
        method = PIXELFORMATDESCRIPTOR.__setmethods__.get(name,None)
        if method: return method(self,value)
        self.__dict__[name] = value
    __getmethods__ = {
        "nSize" : __init___.PIXELFORMATDESCRIPTOR_nSize_get,
        "nVersion" : __init___.PIXELFORMATDESCRIPTOR_nVersion_get,
        "dwFlags" : __init___.PIXELFORMATDESCRIPTOR_dwFlags_get,
        "iPixelType" : __init___.PIXELFORMATDESCRIPTOR_iPixelType_get,
        "cColorBits" : __init___.PIXELFORMATDESCRIPTOR_cColorBits_get,
        "cRedBits" : __init___.PIXELFORMATDESCRIPTOR_cRedBits_get,
        "cRedShift" : __init___.PIXELFORMATDESCRIPTOR_cRedShift_get,
        "cGreenBits" : __init___.PIXELFORMATDESCRIPTOR_cGreenBits_get,
        "cGreenShift" : __init___.PIXELFORMATDESCRIPTOR_cGreenShift_get,
        "cBlueBits" : __init___.PIXELFORMATDESCRIPTOR_cBlueBits_get,
        "cBlueShift" : __init___.PIXELFORMATDESCRIPTOR_cBlueShift_get,
        "cAlphaBits" : __init___.PIXELFORMATDESCRIPTOR_cAlphaBits_get,
        "cAlphaShift" : __init___.PIXELFORMATDESCRIPTOR_cAlphaShift_get,
        "cAccumBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumBits_get,
        "cAccumRedBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumRedBits_get,
        "cAccumGreenBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumGreenBits_get,
        "cAccumBlueBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumBlueBits_get,
        "cAccumAlphaBits" : __init___.PIXELFORMATDESCRIPTOR_cAccumAlphaBits_get,
        "cDepthBits" : __init___.PIXELFORMATDESCRIPTOR_cDepthBits_get,
        "cStencilBits" : __init___.PIXELFORMATDESCRIPTOR_cStencilBits_get,
        "cAuxBuffers" : __init___.PIXELFORMATDESCRIPTOR_cAuxBuffers_get,
        "iLayerType" : __init___.PIXELFORMATDESCRIPTOR_iLayerType_get,
        "bReserved" : __init___.PIXELFORMATDESCRIPTOR_bReserved_get,
        "dwLayerMask" : __init___.PIXELFORMATDESCRIPTOR_dwLayerMask_get,
        "dwVisibleMask" : __init___.PIXELFORMATDESCRIPTOR_dwVisibleMask_get,
        "dwDamageMask" : __init___.PIXELFORMATDESCRIPTOR_dwDamageMask_get,
    }
    def __getattr__(self,name):
        method = PIXELFORMATDESCRIPTOR.__getmethods__.get(name,None)
        if method: return method(self)
        raise AttributeError,name
    def __repr__(self):
        return "<C PIXELFORMATDESCRIPTOR instance at %s>" % (self.this,)
class PIXELFORMATDESCRIPTORPtr(PIXELFORMATDESCRIPTOR):
    def __init__(self,this):
        self.this = this
        self.thisown = 0
        self.__class__ = PIXELFORMATDESCRIPTOR



class POINTFLOAT:
    def __init__(self,*args):
        self.this = apply(__init___.new_POINTFLOAT,args)
        self.thisown = 1

    def __del__(self,__init___=__init___):
        if self.thisown == 1 :
            __init___.delete_POINTFLOAT(self)
    __setmethods__ = {
        "x" : __init___.POINTFLOAT_x_set,
        "y" : __init___.POINTFLOAT_y_set,
    }
    def __setattr__(self,name,value):
        if (name == "this") or (name == "thisown"): self.__dict__[name] = value; return
        method = POINTFLOAT.__setmethods__.get(name,None)
        if method: return method(self,value)
        self.__dict__[name] = value
    __getmethods__ = {
        "x" : __init___.POINTFLOAT_x_get,
        "y" : __init___.POINTFLOAT_y_get,
    }
    def __getattr__(self,name):
        method = POINTFLOAT.__getmethods__.get(name,None)
        if method: return method(self)
        raise AttributeError,name
    def __repr__(self):
        return "<C POINTFLOAT instance at %s>" % (self.this,)
class POINTFLOATPtr(POINTFLOAT):
    def __init__(self,this):
        self.this = this
        self.thisown = 0
        self.__class__ = POINTFLOAT



class GLYPHMETRICSFLOAT:
    def __init__(self,*args):
        self.this = apply(__init___.new_GLYPHMETRICSFLOAT,args)
        self.thisown = 1

    def __del__(self,__init___=__init___):
        if self.thisown == 1 :
            __init___.delete_GLYPHMETRICSFLOAT(self)
    __setmethods__ = {
        "gmfBlackBoxX" : __init___.GLYPHMETRICSFLOAT_gmfBlackBoxX_set,
        "gmfBlackBoxY" : __init___.GLYPHMETRICSFLOAT_gmfBlackBoxY_set,
        "gmfptGlyphOrigin" : __init___.GLYPHMETRICSFLOAT_gmfptGlyphOrigin_set,
        "gmfCellIncX" : __init___.GLYPHMETRICSFLOAT_gmfCellIncX_set,
        "gmfCellIncY" : __init___.GLYPHMETRICSFLOAT_gmfCellIncY_set,
    }
    def __setattr__(self,name,value):
        if (name == "this") or (name == "thisown"): self.__dict__[name] = value; return
        method = GLYPHMETRICSFLOAT.__setmethods__.get(name,None)
        if method: return method(self,value)
        self.__dict__[name] = value
    __getmethods__ = {
        "gmfBlackBoxX" : __init___.GLYPHMETRICSFLOAT_gmfBlackBoxX_get,
        "gmfBlackBoxY" : __init___.GLYPHMETRICSFLOAT_gmfBlackBoxY_get,
        "gmfptGlyphOrigin" : lambda x : POINTFLOATPtr(__init___.GLYPHMETRICSFLOAT_gmfptGlyphOrigin_get(x)),
        "gmfCellIncX" : __init___.GLYPHMETRICSFLOAT_gmfCellIncX_get,
        "gmfCellIncY" : __init___.GLYPHMETRICSFLOAT_gmfCellIncY_get,
    }
    def __getattr__(self,name):
        method = GLYPHMETRICSFLOAT.__getmethods__.get(name,None)
        if method: return method(self)
        raise AttributeError,name
    def __repr__(self):
        return "<C GLYPHMETRICSFLOAT instance at %s>" % (self.this,)
class GLYPHMETRICSFLOATPtr(GLYPHMETRICSFLOAT):
    def __init__(self,this):
        self.this = this
        self.thisown = 0
        self.__class__ = GLYPHMETRICSFLOAT



class LAYERPLANEDESCRIPTOR:
    def __init__(self,*args):
        self.this = apply(__init___.new_LAYERPLANEDESCRIPTOR,args)
        self.thisown = 1

    def __del__(self,__init___=__init___):
        if self.thisown == 1 :
            __init___.delete_LAYERPLANEDESCRIPTOR(self)
    __setmethods__ = {
        "nSize" : __init___.LAYERPLANEDESCRIPTOR_nSize_set,
        "nVersion" : __init___.LAYERPLANEDESCRIPTOR_nVersion_set,
        "dwFlags" : __init___.LAYERPLANEDESCRIPTOR_dwFlags_set,
        "iPixelType" : __init___.LAYERPLANEDESCRIPTOR_iPixelType_set,
        "cColorBits" : __init___.LAYERPLANEDESCRIPTOR_cColorBits_set,
        "cRedBits" : __init___.LAYERPLANEDESCRIPTOR_cRedBits_set,
        "cRedShift" : __init___.LAYERPLANEDESCRIPTOR_cRedShift_set,
        "cGreenBits" : __init___.LAYERPLANEDESCRIPTOR_cGreenBits_set,
        "cGreenShift" : __init___.LAYERPLANEDESCRIPTOR_cGreenShift_set,
        "cBlueBits" : __init___.LAYERPLANEDESCRIPTOR_cBlueBits_set,
        "cBlueShift" : __init___.LAYERPLANEDESCRIPTOR_cBlueShift_set,
        "cAlphaBits" : __init___.LAYERPLANEDESCRIPTOR_cAlphaBits_set,
        "cAlphaShift" : __init___.LAYERPLANEDESCRIPTOR_cAlphaShift_set,
        "cAccumBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumBits_set,
        "cAccumRedBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumRedBits_set,
        "cAccumGreenBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumGreenBits_set,
        "cAccumBlueBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumBlueBits_set,
        "cAccumAlphaBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumAlphaBits_set,
        "cDepthBits" : __init___.LAYERPLANEDESCRIPTOR_cDepthBits_set,
        "cStencilBits" : __init___.LAYERPLANEDESCRIPTOR_cStencilBits_set,
        "cAuxBuffers" : __init___.LAYERPLANEDESCRIPTOR_cAuxBuffers_set,
        "iLayerPlane" : __init___.LAYERPLANEDESCRIPTOR_iLayerPlane_set,
        "bReserved" : __init___.LAYERPLANEDESCRIPTOR_bReserved_set,
        "crTransparent" : __init___.LAYERPLANEDESCRIPTOR_crTransparent_set,
    }
    def __setattr__(self,name,value):
        if (name == "this") or (name == "thisown"): self.__dict__[name] = value; return
        method = LAYERPLANEDESCRIPTOR.__setmethods__.get(name,None)
        if method: return method(self,value)
        self.__dict__[name] = value
    __getmethods__ = {
        "nSize" : __init___.LAYERPLANEDESCRIPTOR_nSize_get,
        "nVersion" : __init___.LAYERPLANEDESCRIPTOR_nVersion_get,
        "dwFlags" : __init___.LAYERPLANEDESCRIPTOR_dwFlags_get,
        "iPixelType" : __init___.LAYERPLANEDESCRIPTOR_iPixelType_get,
        "cColorBits" : __init___.LAYERPLANEDESCRIPTOR_cColorBits_get,
        "cRedBits" : __init___.LAYERPLANEDESCRIPTOR_cRedBits_get,
        "cRedShift" : __init___.LAYERPLANEDESCRIPTOR_cRedShift_get,
        "cGreenBits" : __init___.LAYERPLANEDESCRIPTOR_cGreenBits_get,
        "cGreenShift" : __init___.LAYERPLANEDESCRIPTOR_cGreenShift_get,
        "cBlueBits" : __init___.LAYERPLANEDESCRIPTOR_cBlueBits_get,
        "cBlueShift" : __init___.LAYERPLANEDESCRIPTOR_cBlueShift_get,
        "cAlphaBits" : __init___.LAYERPLANEDESCRIPTOR_cAlphaBits_get,
        "cAlphaShift" : __init___.LAYERPLANEDESCRIPTOR_cAlphaShift_get,
        "cAccumBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumBits_get,
        "cAccumRedBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumRedBits_get,
        "cAccumGreenBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumGreenBits_get,
        "cAccumBlueBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumBlueBits_get,
        "cAccumAlphaBits" : __init___.LAYERPLANEDESCRIPTOR_cAccumAlphaBits_get,
        "cDepthBits" : __init___.LAYERPLANEDESCRIPTOR_cDepthBits_get,
        "cStencilBits" : __init___.LAYERPLANEDESCRIPTOR_cStencilBits_get,
        "cAuxBuffers" : __init___.LAYERPLANEDESCRIPTOR_cAuxBuffers_get,
        "iLayerPlane" : __init___.LAYERPLANEDESCRIPTOR_iLayerPlane_get,
        "bReserved" : __init___.LAYERPLANEDESCRIPTOR_bReserved_get,
        "crTransparent" : __init___.LAYERPLANEDESCRIPTOR_crTransparent_get,
    }
    def __getattr__(self,name):
        method = LAYERPLANEDESCRIPTOR.__getmethods__.get(name,None)
        if method: return method(self)
        raise AttributeError,name
    def __repr__(self):
        return "<C LAYERPLANEDESCRIPTOR instance at %s>" % (self.this,)
class LAYERPLANEDESCRIPTORPtr(LAYERPLANEDESCRIPTOR):
    def __init__(self,this):
        self.this = this
        self.thisown = 0
        self.__class__ = LAYERPLANEDESCRIPTOR





#-------------- FUNCTION WRAPPERS ------------------

ChoosePixelFormat = __init___.ChoosePixelFormat

DescribePixelFormat = __init___.DescribePixelFormat

GetPixelFormat = __init___.GetPixelFormat

SetPixelFormat = __init___.SetPixelFormat

SwapBuffers = __init___.SwapBuffers

wglCreateContext = __init___.wglCreateContext

wglCreateLayerContext = __init___.wglCreateLayerContext

wglCopyContext = __init___.wglCopyContext

wglDeleteContext = __init___.wglDeleteContext

wglDescribeLayerPlane = __init___.wglDescribeLayerPlane

wglGetCurrentContext = __init___.wglGetCurrentContext

wglGetCurrentDC = __init___.wglGetCurrentDC

wglGetLayerPaletteEntries = __init___.wglGetLayerPaletteEntries

wglGetProcAddress = __init___.wglGetProcAddress

wglMakeCurrent = __init___.wglMakeCurrent

wglRealizeLayerPalette = __init___.wglRealizeLayerPalette

wglSetLayerPaletteEntries = __init___.wglSetLayerPaletteEntries

wglShareLists = __init___.wglShareLists

wglSwapLayerBuffers = __init___.wglSwapLayerBuffers

wglUseFontBitmapsA = __init___.wglUseFontBitmapsA

wglUseFontBitmapsW = __init___.wglUseFontBitmapsW

wglUseFontOutlinesA = __init___.wglUseFontOutlinesA

wglUseFontOutlinesW = __init___.wglUseFontOutlinesW



#-------------- VARIABLE WRAPPERS ------------------

__version__ = __init___.__version__
__date__ = __init___.__date__
__api_version__ = __init___.__api_version__
__author__ = __init___.__author__
__doc__ = __init___.__doc__
PFD_TYPE_RGBA = __init___.PFD_TYPE_RGBA
PFD_TYPE_COLORINDEX = __init___.PFD_TYPE_COLORINDEX
PFD_MAIN_PLANE = __init___.PFD_MAIN_PLANE
PFD_OVERLAY_PLANE = __init___.PFD_OVERLAY_PLANE
PFD_UNDERLAY_PLANE = __init___.PFD_UNDERLAY_PLANE
PFD_DOUBLEBUFFER = __init___.PFD_DOUBLEBUFFER
PFD_STEREO = __init___.PFD_STEREO
PFD_DRAW_TO_WINDOW = __init___.PFD_DRAW_TO_WINDOW
PFD_DRAW_TO_BITMAP = __init___.PFD_DRAW_TO_BITMAP
PFD_SUPPORT_GDI = __init___.PFD_SUPPORT_GDI
PFD_SUPPORT_OPENGL = __init___.PFD_SUPPORT_OPENGL
PFD_GENERIC_FORMAT = __init___.PFD_GENERIC_FORMAT
PFD_NEED_PALETTE = __init___.PFD_NEED_PALETTE
PFD_NEED_SYSTEM_PALETTE = __init___.PFD_NEED_SYSTEM_PALETTE
PFD_SWAP_EXCHANGE = __init___.PFD_SWAP_EXCHANGE
PFD_SWAP_COPY = __init___.PFD_SWAP_COPY
PFD_SWAP_LAYER_BUFFERS = __init___.PFD_SWAP_LAYER_BUFFERS
PFD_GENERIC_ACCELERATED = __init___.PFD_GENERIC_ACCELERATED
PFD_SUPPORT_DIRECTDRAW = __init___.PFD_SUPPORT_DIRECTDRAW
PFD_DEPTH_DONTCARE = __init___.PFD_DEPTH_DONTCARE
PFD_DOUBLEBUFFER_DONTCARE = __init___.PFD_DOUBLEBUFFER_DONTCARE
PFD_STEREO_DONTCARE = __init___.PFD_STEREO_DONTCARE
WGL_FONT_LINES = __init___.WGL_FONT_LINES
WGL_FONT_POLYGONS = __init___.WGL_FONT_POLYGONS
LPD_DOUBLEBUFFER = __init___.LPD_DOUBLEBUFFER
LPD_STEREO = __init___.LPD_STEREO
LPD_SUPPORT_GDI = __init___.LPD_SUPPORT_GDI
LPD_SUPPORT_OPENGL = __init___.LPD_SUPPORT_OPENGL
LPD_SHARE_DEPTH = __init___.LPD_SHARE_DEPTH
LPD_SHARE_STENCIL = __init___.LPD_SHARE_STENCIL
LPD_SHARE_ACCUM = __init___.LPD_SHARE_ACCUM
LPD_SWAP_EXCHANGE = __init___.LPD_SWAP_EXCHANGE
LPD_SWAP_COPY = __init___.LPD_SWAP_COPY
LPD_TRANSPARENT = __init___.LPD_TRANSPARENT
LPD_TYPE_RGBA = __init___.LPD_TYPE_RGBA
LPD_TYPE_COLORINDEX = __init___.LPD_TYPE_COLORINDEX
WGL_SWAP_MAIN_PLANE = __init___.WGL_SWAP_MAIN_PLANE
WGL_SWAP_OVERLAY1 = __init___.WGL_SWAP_OVERLAY1
WGL_SWAP_OVERLAY2 = __init___.WGL_SWAP_OVERLAY2
WGL_SWAP_OVERLAY3 = __init___.WGL_SWAP_OVERLAY3
WGL_SWAP_OVERLAY4 = __init___.WGL_SWAP_OVERLAY4
WGL_SWAP_OVERLAY5 = __init___.WGL_SWAP_OVERLAY5
WGL_SWAP_OVERLAY6 = __init___.WGL_SWAP_OVERLAY6
WGL_SWAP_OVERLAY7 = __init___.WGL_SWAP_OVERLAY7
WGL_SWAP_OVERLAY8 = __init___.WGL_SWAP_OVERLAY8
WGL_SWAP_OVERLAY9 = __init___.WGL_SWAP_OVERLAY9
WGL_SWAP_OVERLAY10 = __init___.WGL_SWAP_OVERLAY10
WGL_SWAP_OVERLAY11 = __init___.WGL_SWAP_OVERLAY11
WGL_SWAP_OVERLAY12 = __init___.WGL_SWAP_OVERLAY12
WGL_SWAP_OVERLAY13 = __init___.WGL_SWAP_OVERLAY13
WGL_SWAP_OVERLAY14 = __init___.WGL_SWAP_OVERLAY14
WGL_SWAP_OVERLAY15 = __init___.WGL_SWAP_OVERLAY15
WGL_SWAP_UNDERLAY1 = __init___.WGL_SWAP_UNDERLAY1
WGL_SWAP_UNDERLAY2 = __init___.WGL_SWAP_UNDERLAY2
WGL_SWAP_UNDERLAY3 = __init___.WGL_SWAP_UNDERLAY3
WGL_SWAP_UNDERLAY4 = __init___.WGL_SWAP_UNDERLAY4
WGL_SWAP_UNDERLAY5 = __init___.WGL_SWAP_UNDERLAY5
WGL_SWAP_UNDERLAY6 = __init___.WGL_SWAP_UNDERLAY6
WGL_SWAP_UNDERLAY7 = __init___.WGL_SWAP_UNDERLAY7
WGL_SWAP_UNDERLAY8 = __init___.WGL_SWAP_UNDERLAY8
WGL_SWAP_UNDERLAY9 = __init___.WGL_SWAP_UNDERLAY9
WGL_SWAP_UNDERLAY10 = __init___.WGL_SWAP_UNDERLAY10
WGL_SWAP_UNDERLAY11 = __init___.WGL_SWAP_UNDERLAY11
WGL_SWAP_UNDERLAY12 = __init___.WGL_SWAP_UNDERLAY12
WGL_SWAP_UNDERLAY13 = __init___.WGL_SWAP_UNDERLAY13
WGL_SWAP_UNDERLAY14 = __init___.WGL_SWAP_UNDERLAY14
WGL_SWAP_UNDERLAY15 = __init___.WGL_SWAP_UNDERLAY15
