{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QGLContext_h.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:32 Warning : this file is machine generated - do not modify. --} ----------------------------------------------------------------------------- module Qtc.Opengl.QGLContext_h ( QchooseContext_h(..) ,Qcreate_h(..) ,QdoneCurrent_h(..) ,QmakeCurrent_h(..) ,QswapBuffers_h(..) ) where import Foreign.C.Types import Qtc.Enums.Base import Qtc.Classes.Base import Qtc.Classes.Qccs_h import Qtc.Classes.Core_h import Qtc.ClassTypes.Core import Qth.ClassTypes.Core import Qtc.Classes.Gui_h import Qtc.ClassTypes.Gui import Qtc.Classes.Opengl_h import Qtc.ClassTypes.Opengl import Foreign.Marshal.Array instance QunSetUserMethod (QGLContext ()) where unSetUserMethod qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QGLContext_unSetUserMethod cobj_qobj (toCInt 0) (toCInt evid) foreign import ccall "qtc_QGLContext_unSetUserMethod" qtc_QGLContext_unSetUserMethod :: Ptr (TQGLContext a) -> CInt -> CInt -> IO (CBool) instance QunSetUserMethod (QGLContextSc a) where unSetUserMethod qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QGLContext_unSetUserMethod cobj_qobj (toCInt 0) (toCInt evid) instance QunSetUserMethodVariant (QGLContext ()) where unSetUserMethodVariant qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QGLContext_unSetUserMethod cobj_qobj (toCInt 1) (toCInt evid) instance QunSetUserMethodVariant (QGLContextSc a) where unSetUserMethodVariant qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QGLContext_unSetUserMethod cobj_qobj (toCInt 1) (toCInt evid) instance QunSetUserMethodVariantList (QGLContext ()) where unSetUserMethodVariantList qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QGLContext_unSetUserMethod cobj_qobj (toCInt 2) (toCInt evid) instance QunSetUserMethodVariantList (QGLContextSc a) where unSetUserMethodVariantList qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QGLContext_unSetUserMethod cobj_qobj (toCInt 2) (toCInt evid) instance QsetUserMethod (QGLContext ()) (QGLContext x0 -> IO ()) where setUserMethod _eobj _eid _handler = do funptr <- wrapSetUserMethod_QGLContext setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetUserMethod_QGLContext_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> qtc_QGLContext_setUserMethod cobj_eobj (toCInt _eid) (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return () where setHandlerWrapper :: Ptr (TQGLContext x0) -> IO () setHandlerWrapper x0 = do x0obj <- objectFromPtr_nf x0 if (objectIsNull x0obj) then return () else _handler x0obj setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () foreign import ccall "qtc_QGLContext_setUserMethod" qtc_QGLContext_setUserMethod :: Ptr (TQGLContext a) -> CInt -> Ptr (Ptr (TQGLContext x0) -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetUserMethod_QGLContext :: (Ptr (TQGLContext x0) -> IO ()) -> IO (FunPtr (Ptr (TQGLContext x0) -> IO ())) foreign import ccall "wrapper" wrapSetUserMethod_QGLContext_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetUserMethod (QGLContextSc a) (QGLContext x0 -> IO ()) where setUserMethod _eobj _eid _handler = do funptr <- wrapSetUserMethod_QGLContext setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetUserMethod_QGLContext_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> qtc_QGLContext_setUserMethod cobj_eobj (toCInt _eid) (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return () where setHandlerWrapper :: Ptr (TQGLContext x0) -> IO () setHandlerWrapper x0 = do x0obj <- objectFromPtr_nf x0 if (objectIsNull x0obj) then return () else _handler x0obj setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () instance QsetUserMethod (QGLContext ()) (QGLContext x0 -> QVariant () -> IO (QVariant ())) where setUserMethod _eobj _eid _handler = do funptr <- wrapSetUserMethodVariant_QGLContext setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetUserMethodVariant_QGLContext_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> qtc_QGLContext_setUserMethodVariant cobj_eobj (toCInt _eid) (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return () where setHandlerWrapper :: Ptr (TQGLContext x0) -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ())) setHandlerWrapper x0 x1 = do x0obj <- objectFromPtr_nf x0 x1obj <- objectFromPtr_nf x1 rv <- if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj x1obj withObjectPtr rv $ \cobj_rv -> return cobj_rv setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () foreign import ccall "qtc_QGLContext_setUserMethodVariant" qtc_QGLContext_setUserMethodVariant :: Ptr (TQGLContext a) -> CInt -> Ptr (Ptr (TQGLContext x0) -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ()))) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetUserMethodVariant_QGLContext :: (Ptr (TQGLContext x0) -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ()))) -> IO (FunPtr (Ptr (TQGLContext x0) -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ())))) foreign import ccall "wrapper" wrapSetUserMethodVariant_QGLContext_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetUserMethod (QGLContextSc a) (QGLContext x0 -> QVariant () -> IO (QVariant ())) where setUserMethod _eobj _eid _handler = do funptr <- wrapSetUserMethodVariant_QGLContext setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetUserMethodVariant_QGLContext_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> qtc_QGLContext_setUserMethodVariant cobj_eobj (toCInt _eid) (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return () where setHandlerWrapper :: Ptr (TQGLContext x0) -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ())) setHandlerWrapper x0 x1 = do x0obj <- objectFromPtr_nf x0 x1obj <- objectFromPtr_nf x1 rv <- if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj x1obj withObjectPtr rv $ \cobj_rv -> return cobj_rv setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () instance QunSetHandler (QGLContext ()) where unSetHandler qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> withCWString evid $ \cstr_evid -> qtc_QGLContext_unSetHandler cobj_qobj cstr_evid foreign import ccall "qtc_QGLContext_unSetHandler" qtc_QGLContext_unSetHandler :: Ptr (TQGLContext a) -> CWString -> IO (CBool) instance QunSetHandler (QGLContextSc a) where unSetHandler qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> withCWString evid $ \cstr_evid -> qtc_QGLContext_unSetHandler cobj_qobj cstr_evid instance QsetHandler (QGLContext ()) (QGLContext x0 -> IO (Bool)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QGLContext1 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QGLContext1_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QGLContext_setHandler1 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQGLContext x0) -> IO (CBool) setHandlerWrapper x0 = do x0obj <- objectFromPtr_nf x0 let rv = if (objectIsNull x0obj) then return False else _handler x0obj rvf <- rv return (toCBool rvf) setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () foreign import ccall "qtc_QGLContext_setHandler1" qtc_QGLContext_setHandler1 :: Ptr (TQGLContext a) -> CWString -> Ptr (Ptr (TQGLContext x0) -> IO (CBool)) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QGLContext1 :: (Ptr (TQGLContext x0) -> IO (CBool)) -> IO (FunPtr (Ptr (TQGLContext x0) -> IO (CBool))) foreign import ccall "wrapper" wrapSetHandler_QGLContext1_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QGLContextSc a) (QGLContext x0 -> IO (Bool)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QGLContext1 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QGLContext1_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QGLContext_setHandler1 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQGLContext x0) -> IO (CBool) setHandlerWrapper x0 = do x0obj <- objectFromPtr_nf x0 let rv = if (objectIsNull x0obj) then return False else _handler x0obj rvf <- rv return (toCBool rvf) setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () instance QsetHandler (QGLContext ()) (QGLContext x0 -> QGLContext t1 -> IO (Bool)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QGLContext2 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QGLContext2_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QGLContext_setHandler2 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQGLContext x0) -> Ptr (TQGLContext t1) -> IO (CBool) setHandlerWrapper x0 x1 = do x0obj <- objectFromPtr_nf x0 x1obj <- objectFromPtr_nf x1 let rv = if (objectIsNull x0obj) then return False else _handler x0obj x1obj rvf <- rv return (toCBool rvf) setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () foreign import ccall "qtc_QGLContext_setHandler2" qtc_QGLContext_setHandler2 :: Ptr (TQGLContext a) -> CWString -> Ptr (Ptr (TQGLContext x0) -> Ptr (TQGLContext t1) -> IO (CBool)) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QGLContext2 :: (Ptr (TQGLContext x0) -> Ptr (TQGLContext t1) -> IO (CBool)) -> IO (FunPtr (Ptr (TQGLContext x0) -> Ptr (TQGLContext t1) -> IO (CBool))) foreign import ccall "wrapper" wrapSetHandler_QGLContext2_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QGLContextSc a) (QGLContext x0 -> QGLContext t1 -> IO (Bool)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QGLContext2 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QGLContext2_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QGLContext_setHandler2 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQGLContext x0) -> Ptr (TQGLContext t1) -> IO (CBool) setHandlerWrapper x0 x1 = do x0obj <- objectFromPtr_nf x0 x1obj <- objectFromPtr_nf x1 let rv = if (objectIsNull x0obj) then return False else _handler x0obj x1obj rvf <- rv return (toCBool rvf) setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () class QchooseContext_h x0 x1 where chooseContext_h :: x0 -> x1 -> IO (Bool) instance QchooseContext_h (QGLContext ()) (()) where chooseContext_h x0 () = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_chooseContext cobj_x0 foreign import ccall "qtc_QGLContext_chooseContext" qtc_QGLContext_chooseContext :: Ptr (TQGLContext a) -> IO CBool instance QchooseContext_h (QGLContextSc a) (()) where chooseContext_h x0 () = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_chooseContext cobj_x0 instance QchooseContext_h (QGLContext ()) ((QGLContext t1)) where chooseContext_h x0 (x1) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QGLContext_chooseContext1 cobj_x0 cobj_x1 foreign import ccall "qtc_QGLContext_chooseContext1" qtc_QGLContext_chooseContext1 :: Ptr (TQGLContext a) -> Ptr (TQGLContext t1) -> IO CBool instance QchooseContext_h (QGLContextSc a) ((QGLContext t1)) where chooseContext_h x0 (x1) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QGLContext_chooseContext1 cobj_x0 cobj_x1 class Qcreate_h x0 x1 where create_h :: x0 -> x1 -> IO (Bool) instance Qcreate_h (QGLContext ()) (()) where create_h x0 () = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_create cobj_x0 foreign import ccall "qtc_QGLContext_create" qtc_QGLContext_create :: Ptr (TQGLContext a) -> IO CBool instance Qcreate_h (QGLContextSc a) (()) where create_h x0 () = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_create cobj_x0 instance Qcreate_h (QGLContext ()) ((QGLContext t1)) where create_h x0 (x1) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QGLContext_create1 cobj_x0 cobj_x1 foreign import ccall "qtc_QGLContext_create1" qtc_QGLContext_create1 :: Ptr (TQGLContext a) -> Ptr (TQGLContext t1) -> IO CBool instance Qcreate_h (QGLContextSc a) ((QGLContext t1)) where create_h x0 (x1) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QGLContext_create1 cobj_x0 cobj_x1 instance QsetHandler (QGLContext ()) (QGLContext x0 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QGLContext3 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QGLContext3_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QGLContext_setHandler3 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQGLContext x0) -> IO () setHandlerWrapper x0 = do x0obj <- objectFromPtr_nf x0 if (objectIsNull x0obj) then return () else _handler x0obj setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () foreign import ccall "qtc_QGLContext_setHandler3" qtc_QGLContext_setHandler3 :: Ptr (TQGLContext a) -> CWString -> Ptr (Ptr (TQGLContext x0) -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QGLContext3 :: (Ptr (TQGLContext x0) -> IO ()) -> IO (FunPtr (Ptr (TQGLContext x0) -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QGLContext3_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QGLContextSc a) (QGLContext x0 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QGLContext3 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QGLContext3_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QGLContext_setHandler3 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQGLContext x0) -> IO () setHandlerWrapper x0 = do x0obj <- objectFromPtr_nf x0 if (objectIsNull x0obj) then return () else _handler x0obj setHandlerWrapper_d :: Ptr fun -> Ptr () -> Ptr fun_d -> IO () setHandlerWrapper_d funptr stptr funptr_d = do when (stptr/=ptrNull) (freeStablePtr (castPtrToStablePtr stptr)) when (funptr/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr)) when (funptr_d/=ptrNull) (freeHaskellFunPtr (castPtrToFunPtr funptr_d)) return () class QdoneCurrent_h x0 x1 where doneCurrent_h :: x0 -> x1 -> IO () instance QdoneCurrent_h (QGLContext ()) (()) where doneCurrent_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_doneCurrent cobj_x0 foreign import ccall "qtc_QGLContext_doneCurrent" qtc_QGLContext_doneCurrent :: Ptr (TQGLContext a) -> IO () instance QdoneCurrent_h (QGLContextSc a) (()) where doneCurrent_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_doneCurrent cobj_x0 class QmakeCurrent_h x0 x1 where makeCurrent_h :: x0 -> x1 -> IO () instance QmakeCurrent_h (QGLContext ()) (()) where makeCurrent_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_makeCurrent cobj_x0 foreign import ccall "qtc_QGLContext_makeCurrent" qtc_QGLContext_makeCurrent :: Ptr (TQGLContext a) -> IO () instance QmakeCurrent_h (QGLContextSc a) (()) where makeCurrent_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_makeCurrent cobj_x0 class QswapBuffers_h x0 x1 where swapBuffers_h :: x0 -> x1 -> IO () instance QswapBuffers_h (QGLContext ()) (()) where swapBuffers_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_swapBuffers cobj_x0 foreign import ccall "qtc_QGLContext_swapBuffers" qtc_QGLContext_swapBuffers :: Ptr (TQGLContext a) -> IO () instance QswapBuffers_h (QGLContextSc a) (()) where swapBuffers_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QGLContext_swapBuffers cobj_x0