{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QUndoView_h.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:25 Warning : this file is machine generated - do not modify. --} ----------------------------------------------------------------------------- module Qtc.Gui.QUndoView_h where import Foreign.C.Types import Qtc.Enums.Base import Qtc.Enums.Gui.QItemSelectionModel import Qtc.Enums.Gui.QAbstractItemView import Qtc.Enums.Gui.QPaintDevice import Qtc.Enums.Core.Qt import Qtc.Enums.Gui.QAbstractItemDelegate 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 Foreign.Marshal.Array instance QunSetUserMethod (QUndoView ()) where unSetUserMethod qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QUndoView_unSetUserMethod cobj_qobj (toCInt 0) (toCInt evid) foreign import ccall "qtc_QUndoView_unSetUserMethod" qtc_QUndoView_unSetUserMethod :: Ptr (TQUndoView a) -> CInt -> CInt -> IO (CBool) instance QunSetUserMethod (QUndoViewSc a) where unSetUserMethod qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QUndoView_unSetUserMethod cobj_qobj (toCInt 0) (toCInt evid) instance QunSetUserMethodVariant (QUndoView ()) where unSetUserMethodVariant qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QUndoView_unSetUserMethod cobj_qobj (toCInt 1) (toCInt evid) instance QunSetUserMethodVariant (QUndoViewSc a) where unSetUserMethodVariant qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QUndoView_unSetUserMethod cobj_qobj (toCInt 1) (toCInt evid) instance QunSetUserMethodVariantList (QUndoView ()) where unSetUserMethodVariantList qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QUndoView_unSetUserMethod cobj_qobj (toCInt 2) (toCInt evid) instance QunSetUserMethodVariantList (QUndoViewSc a) where unSetUserMethodVariantList qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> qtc_QUndoView_unSetUserMethod cobj_qobj (toCInt 2) (toCInt evid) instance QsetUserMethod (QUndoView ()) (QUndoView x0 -> IO ()) where setUserMethod _eobj _eid _handler = do funptr <- wrapSetUserMethod_QUndoView setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetUserMethod_QUndoView_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> qtc_QUndoView_setUserMethod cobj_eobj (toCInt _eid) (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return () where setHandlerWrapper :: Ptr (TQUndoView 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_QUndoView_setUserMethod" qtc_QUndoView_setUserMethod :: Ptr (TQUndoView a) -> CInt -> Ptr (Ptr (TQUndoView x0) -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetUserMethod_QUndoView :: (Ptr (TQUndoView x0) -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> IO ())) foreign import ccall "wrapper" wrapSetUserMethod_QUndoView_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetUserMethod (QUndoViewSc a) (QUndoView x0 -> IO ()) where setUserMethod _eobj _eid _handler = do funptr <- wrapSetUserMethod_QUndoView setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetUserMethod_QUndoView_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> qtc_QUndoView_setUserMethod cobj_eobj (toCInt _eid) (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return () where setHandlerWrapper :: Ptr (TQUndoView 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 (QUndoView ()) (QUndoView x0 -> QVariant () -> IO (QVariant ())) where setUserMethod _eobj _eid _handler = do funptr <- wrapSetUserMethodVariant_QUndoView setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetUserMethodVariant_QUndoView_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> qtc_QUndoView_setUserMethodVariant cobj_eobj (toCInt _eid) (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return () where setHandlerWrapper :: Ptr (TQUndoView 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_QUndoView_setUserMethodVariant" qtc_QUndoView_setUserMethodVariant :: Ptr (TQUndoView a) -> CInt -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ()))) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetUserMethodVariant_QUndoView :: (Ptr (TQUndoView x0) -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ()))) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQVariant ()) -> IO (Ptr (TQVariant ())))) foreign import ccall "wrapper" wrapSetUserMethodVariant_QUndoView_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetUserMethod (QUndoViewSc a) (QUndoView x0 -> QVariant () -> IO (QVariant ())) where setUserMethod _eobj _eid _handler = do funptr <- wrapSetUserMethodVariant_QUndoView setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetUserMethodVariant_QUndoView_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> qtc_QUndoView_setUserMethodVariant cobj_eobj (toCInt _eid) (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return () where setHandlerWrapper :: Ptr (TQUndoView 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 (QUndoView ()) where unSetHandler qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> withCWString evid $ \cstr_evid -> qtc_QUndoView_unSetHandler cobj_qobj cstr_evid foreign import ccall "qtc_QUndoView_unSetHandler" qtc_QUndoView_unSetHandler :: Ptr (TQUndoView a) -> CWString -> IO (CBool) instance QunSetHandler (QUndoViewSc a) where unSetHandler qobj evid = withBoolResult $ withObjectPtr qobj $ \cobj_qobj -> withCWString evid $ \cstr_evid -> qtc_QUndoView_unSetHandler cobj_qobj cstr_evid instance QsetHandler (QUndoView ()) (QUndoView x0 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView1 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView1_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler1 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> IO () setHandlerWrapper x0 = do x0obj <- qUndoViewFromPtr 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_QUndoView_setHandler1" qtc_QUndoView_setHandler1 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView1 :: (Ptr (TQUndoView x0) -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QUndoView1_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView1 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView1_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler1 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> IO () setHandlerWrapper x0 = do x0obj <- qUndoViewFromPtr 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 QdoItemsLayout_h (QUndoView ()) (()) where doItemsLayout_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_doItemsLayout cobj_x0 foreign import ccall "qtc_QUndoView_doItemsLayout" qtc_QUndoView_doItemsLayout :: Ptr (TQUndoView a) -> IO () instance QdoItemsLayout_h (QUndoViewSc a) (()) where doItemsLayout_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_doItemsLayout cobj_x0 instance QsetHandler (QUndoView ()) (QUndoView x0 -> QEvent t1 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView2 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView2_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler2 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 if (objectIsNull x0obj) then return () else _handler x0obj x1obj 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_QUndoView_setHandler2" qtc_QUndoView_setHandler2 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView2 :: (Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QUndoView2_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> QEvent t1 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView2 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView2_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler2 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 if (objectIsNull x0obj) then return () else _handler x0obj x1obj 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 QdragLeaveEvent_h (QUndoView ()) ((QDragLeaveEvent t1)) where dragLeaveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_dragLeaveEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_dragLeaveEvent" qtc_QUndoView_dragLeaveEvent :: Ptr (TQUndoView a) -> Ptr (TQDragLeaveEvent t1) -> IO () instance QdragLeaveEvent_h (QUndoViewSc a) ((QDragLeaveEvent t1)) where dragLeaveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_dragLeaveEvent cobj_x0 cobj_x1 instance QdragMoveEvent_h (QUndoView ()) ((QDragMoveEvent t1)) where dragMoveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_dragMoveEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_dragMoveEvent" qtc_QUndoView_dragMoveEvent :: Ptr (TQUndoView a) -> Ptr (TQDragMoveEvent t1) -> IO () instance QdragMoveEvent_h (QUndoViewSc a) ((QDragMoveEvent t1)) where dragMoveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_dragMoveEvent cobj_x0 cobj_x1 instance QdropEvent_h (QUndoView ()) ((QDropEvent t1)) where dropEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_dropEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_dropEvent" qtc_QUndoView_dropEvent :: Ptr (TQUndoView a) -> Ptr (TQDropEvent t1) -> IO () instance QdropEvent_h (QUndoViewSc a) ((QDropEvent t1)) where dropEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_dropEvent cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> QEvent t1 -> IO (Bool)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView3 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView3_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler3 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO (CBool) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr 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_QUndoView_setHandler3" qtc_QUndoView_setHandler3 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO (CBool)) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView3 :: (Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO (CBool)) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO (CBool))) foreign import ccall "wrapper" wrapSetHandler_QUndoView3_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> QEvent t1 -> IO (Bool)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView3 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView3_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler3 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQEvent t1) -> IO (CBool) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr 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 () instance Qevent_h (QUndoView ()) ((QEvent t1)) where event_h x0 (x1) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_event cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_event" qtc_QUndoView_event :: Ptr (TQUndoView a) -> Ptr (TQEvent t1) -> IO CBool instance Qevent_h (QUndoViewSc a) ((QEvent t1)) where event_h x0 (x1) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_event cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> QPoint t1 -> IO (QModelIndex t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView4 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView4_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler4 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQPoint t1) -> IO (Ptr (TQModelIndex t0)) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj x1obj rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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_QUndoView_setHandler4" qtc_QUndoView_setHandler4 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQPoint t1) -> IO (Ptr (TQModelIndex t0))) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView4 :: (Ptr (TQUndoView x0) -> Ptr (TQPoint t1) -> IO (Ptr (TQModelIndex t0))) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQPoint t1) -> IO (Ptr (TQModelIndex t0)))) foreign import ccall "wrapper" wrapSetHandler_QUndoView4_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> QPoint t1 -> IO (QModelIndex t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView4 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView4_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler4 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQPoint t1) -> IO (Ptr (TQModelIndex t0)) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj x1obj rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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 QindexAt_h (QUndoView ()) ((Point)) where indexAt_h x0 (x1) = withQModelIndexResult $ withObjectPtr x0 $ \cobj_x0 -> withCPoint x1 $ \cpoint_x1_x cpoint_x1_y -> qtc_QUndoView_indexAt_qth cobj_x0 cpoint_x1_x cpoint_x1_y foreign import ccall "qtc_QUndoView_indexAt_qth" qtc_QUndoView_indexAt_qth :: Ptr (TQUndoView a) -> CInt -> CInt -> IO (Ptr (TQModelIndex ())) instance QindexAt_h (QUndoViewSc a) ((Point)) where indexAt_h x0 (x1) = withQModelIndexResult $ withObjectPtr x0 $ \cobj_x0 -> withCPoint x1 $ \cpoint_x1_x cpoint_x1_y -> qtc_QUndoView_indexAt_qth cobj_x0 cpoint_x1_x cpoint_x1_y instance QqindexAt_h (QUndoView ()) ((QPoint t1)) where qindexAt_h x0 (x1) = withQModelIndexResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_indexAt cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_indexAt" qtc_QUndoView_indexAt :: Ptr (TQUndoView a) -> Ptr (TQPoint t1) -> IO (Ptr (TQModelIndex ())) instance QqindexAt_h (QUndoViewSc a) ((QPoint t1)) where qindexAt_h x0 (x1) = withQModelIndexResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_indexAt cobj_x0 cobj_x1 instance QmouseMoveEvent_h (QUndoView ()) ((QMouseEvent t1)) where mouseMoveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_mouseMoveEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_mouseMoveEvent" qtc_QUndoView_mouseMoveEvent :: Ptr (TQUndoView a) -> Ptr (TQMouseEvent t1) -> IO () instance QmouseMoveEvent_h (QUndoViewSc a) ((QMouseEvent t1)) where mouseMoveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_mouseMoveEvent cobj_x0 cobj_x1 instance QmouseReleaseEvent_h (QUndoView ()) ((QMouseEvent t1)) where mouseReleaseEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_mouseReleaseEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_mouseReleaseEvent" qtc_QUndoView_mouseReleaseEvent :: Ptr (TQUndoView a) -> Ptr (TQMouseEvent t1) -> IO () instance QmouseReleaseEvent_h (QUndoViewSc a) ((QMouseEvent t1)) where mouseReleaseEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_mouseReleaseEvent cobj_x0 cobj_x1 instance QpaintEvent_h (QUndoView ()) ((QPaintEvent t1)) where paintEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_paintEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_paintEvent" qtc_QUndoView_paintEvent :: Ptr (TQUndoView a) -> Ptr (TQPaintEvent t1) -> IO () instance QpaintEvent_h (QUndoViewSc a) ((QPaintEvent t1)) where paintEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_paintEvent cobj_x0 cobj_x1 instance Qreset_h (QUndoView ()) (()) (IO ()) where reset_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_reset cobj_x0 foreign import ccall "qtc_QUndoView_reset" qtc_QUndoView_reset :: Ptr (TQUndoView a) -> IO () instance Qreset_h (QUndoViewSc a) (()) (IO ()) where reset_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_reset cobj_x0 instance QresizeEvent_h (QUndoView ()) ((QResizeEvent t1)) where resizeEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_resizeEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_resizeEvent" qtc_QUndoView_resizeEvent :: Ptr (TQUndoView a) -> Ptr (TQResizeEvent t1) -> IO () instance QresizeEvent_h (QUndoViewSc a) ((QResizeEvent t1)) where resizeEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_resizeEvent cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> Int -> Int -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView5 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView5_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler5 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> CInt -> CInt -> IO () setHandlerWrapper x0 x1 x2 = do x0obj <- qUndoViewFromPtr x0 let x1int = fromCInt x1 let x2int = fromCInt x2 if (objectIsNull x0obj) then return () else _handler x0obj x1int x2int 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_QUndoView_setHandler5" qtc_QUndoView_setHandler5 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> CInt -> CInt -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView5 :: (Ptr (TQUndoView x0) -> CInt -> CInt -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> CInt -> CInt -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QUndoView5_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> Int -> Int -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView5 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView5_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler5 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> CInt -> CInt -> IO () setHandlerWrapper x0 x1 x2 = do x0obj <- qUndoViewFromPtr x0 let x1int = fromCInt x1 let x2int = fromCInt x2 if (objectIsNull x0obj) then return () else _handler x0obj x1int x2int 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 QscrollContentsBy_h (QUndoView ()) ((Int, Int)) where scrollContentsBy_h x0 (x1, x2) = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_scrollContentsBy cobj_x0 (toCInt x1) (toCInt x2) foreign import ccall "qtc_QUndoView_scrollContentsBy" qtc_QUndoView_scrollContentsBy :: Ptr (TQUndoView a) -> CInt -> CInt -> IO () instance QscrollContentsBy_h (QUndoViewSc a) ((Int, Int)) where scrollContentsBy_h x0 (x1, x2) = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_scrollContentsBy cobj_x0 (toCInt x1) (toCInt x2) instance QsetHandler (QUndoView ()) (QUndoView x0 -> QModelIndex t1 -> ScrollHint -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView6 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView6_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler6 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> CLong -> IO () setHandlerWrapper x0 x1 x2 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 let x2enum = qEnum_fromInt $ fromCLong x2 if (objectIsNull x0obj) then return () else _handler x0obj x1obj x2enum 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_QUndoView_setHandler6" qtc_QUndoView_setHandler6 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> CLong -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView6 :: (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> CLong -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> CLong -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QUndoView6_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> QModelIndex t1 -> ScrollHint -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView6 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView6_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler6 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> CLong -> IO () setHandlerWrapper x0 x1 x2 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 let x2enum = qEnum_fromInt $ fromCLong x2 if (objectIsNull x0obj) then return () else _handler x0obj x1obj x2enum 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 QscrollTo_h (QUndoView ()) ((QModelIndex t1, ScrollHint)) where scrollTo_h x0 (x1, x2) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_scrollTo cobj_x0 cobj_x1 (toCLong $ qEnum_toInt x2) foreign import ccall "qtc_QUndoView_scrollTo" qtc_QUndoView_scrollTo :: Ptr (TQUndoView a) -> Ptr (TQModelIndex t1) -> CLong -> IO () instance QscrollTo_h (QUndoViewSc a) ((QModelIndex t1, ScrollHint)) where scrollTo_h x0 (x1, x2) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_scrollTo cobj_x0 cobj_x1 (toCLong $ qEnum_toInt x2) instance QsetHandler (QUndoView ()) (QUndoView x0 -> QModelIndex t1 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView7 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView7_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler7 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 if (objectIsNull x0obj) then return () else _handler x0obj x1obj 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_QUndoView_setHandler7" qtc_QUndoView_setHandler7 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView7 :: (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QUndoView7_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> QModelIndex t1 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView7 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView7_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler7 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 if (objectIsNull x0obj) then return () else _handler x0obj x1obj 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 QsetRootIndex_h (QUndoView ()) ((QModelIndex t1)) where setRootIndex_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_setRootIndex cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_setRootIndex" qtc_QUndoView_setRootIndex :: Ptr (TQUndoView a) -> Ptr (TQModelIndex t1) -> IO () instance QsetRootIndex_h (QUndoViewSc a) ((QModelIndex t1)) where setRootIndex_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_setRootIndex cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> QModelIndex t1 -> IO (QRect t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView8 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView8_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler8 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO (Ptr (TQRect t0)) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj x1obj rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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_QUndoView_setHandler8" qtc_QUndoView_setHandler8 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO (Ptr (TQRect t0))) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView8 :: (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO (Ptr (TQRect t0))) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO (Ptr (TQRect t0)))) foreign import ccall "wrapper" wrapSetHandler_QUndoView8_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> QModelIndex t1 -> IO (QRect t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView8 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView8_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler8 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQModelIndex t1) -> IO (Ptr (TQRect t0)) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- objectFromPtr_nf x1 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj x1obj rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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 QqvisualRect_h (QUndoView ()) ((QModelIndex t1)) where qvisualRect_h x0 (x1) = withQRectResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_visualRect cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_visualRect" qtc_QUndoView_visualRect :: Ptr (TQUndoView a) -> Ptr (TQModelIndex t1) -> IO (Ptr (TQRect ())) instance QqvisualRect_h (QUndoViewSc a) ((QModelIndex t1)) where qvisualRect_h x0 (x1) = withQRectResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_visualRect cobj_x0 cobj_x1 instance QvisualRect_h (QUndoView ()) ((QModelIndex t1)) where visualRect_h x0 (x1) = withRectResult $ \crect_ret_x crect_ret_y crect_ret_w crect_ret_h -> withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_visualRect_qth cobj_x0 cobj_x1 crect_ret_x crect_ret_y crect_ret_w crect_ret_h foreign import ccall "qtc_QUndoView_visualRect_qth" qtc_QUndoView_visualRect_qth :: Ptr (TQUndoView a) -> Ptr (TQModelIndex t1) -> Ptr CInt -> Ptr CInt -> Ptr CInt -> Ptr CInt -> IO () instance QvisualRect_h (QUndoViewSc a) ((QModelIndex t1)) where visualRect_h x0 (x1) = withRectResult $ \crect_ret_x crect_ret_y crect_ret_w crect_ret_h -> withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_visualRect_qth cobj_x0 cobj_x1 crect_ret_x crect_ret_y crect_ret_w crect_ret_h instance QdragEnterEvent_h (QUndoView ()) ((QDragEnterEvent t1)) where dragEnterEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_dragEnterEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_dragEnterEvent" qtc_QUndoView_dragEnterEvent :: Ptr (TQUndoView a) -> Ptr (TQDragEnterEvent t1) -> IO () instance QdragEnterEvent_h (QUndoViewSc a) ((QDragEnterEvent t1)) where dragEnterEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_dragEnterEvent cobj_x0 cobj_x1 instance QfocusInEvent_h (QUndoView ()) ((QFocusEvent t1)) where focusInEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_focusInEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_focusInEvent" qtc_QUndoView_focusInEvent :: Ptr (TQUndoView a) -> Ptr (TQFocusEvent t1) -> IO () instance QfocusInEvent_h (QUndoViewSc a) ((QFocusEvent t1)) where focusInEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_focusInEvent cobj_x0 cobj_x1 instance QfocusOutEvent_h (QUndoView ()) ((QFocusEvent t1)) where focusOutEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_focusOutEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_focusOutEvent" qtc_QUndoView_focusOutEvent :: Ptr (TQUndoView a) -> Ptr (TQFocusEvent t1) -> IO () instance QfocusOutEvent_h (QUndoViewSc a) ((QFocusEvent t1)) where focusOutEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_focusOutEvent cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> InputMethodQuery -> IO (QVariant t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView9 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView9_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler9 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> CLong -> IO (Ptr (TQVariant t0)) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 let x1enum = qEnum_fromInt $ fromCLong x1 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj x1enum rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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_QUndoView_setHandler9" qtc_QUndoView_setHandler9 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> CLong -> IO (Ptr (TQVariant t0))) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView9 :: (Ptr (TQUndoView x0) -> CLong -> IO (Ptr (TQVariant t0))) -> IO (FunPtr (Ptr (TQUndoView x0) -> CLong -> IO (Ptr (TQVariant t0)))) foreign import ccall "wrapper" wrapSetHandler_QUndoView9_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> InputMethodQuery -> IO (QVariant t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView9 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView9_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler9 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> CLong -> IO (Ptr (TQVariant t0)) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 let x1enum = qEnum_fromInt $ fromCLong x1 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj x1enum rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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 QinputMethodQuery_h (QUndoView ()) ((InputMethodQuery)) where inputMethodQuery_h x0 (x1) = withQVariantResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_inputMethodQuery cobj_x0 (toCLong $ qEnum_toInt x1) foreign import ccall "qtc_QUndoView_inputMethodQuery" qtc_QUndoView_inputMethodQuery :: Ptr (TQUndoView a) -> CLong -> IO (Ptr (TQVariant ())) instance QinputMethodQuery_h (QUndoViewSc a) ((InputMethodQuery)) where inputMethodQuery_h x0 (x1) = withQVariantResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_inputMethodQuery cobj_x0 (toCLong $ qEnum_toInt x1) instance QkeyPressEvent_h (QUndoView ()) ((QKeyEvent t1)) where keyPressEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_keyPressEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_keyPressEvent" qtc_QUndoView_keyPressEvent :: Ptr (TQUndoView a) -> Ptr (TQKeyEvent t1) -> IO () instance QkeyPressEvent_h (QUndoViewSc a) ((QKeyEvent t1)) where keyPressEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_keyPressEvent cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> String -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView10 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView10_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler10 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQString ()) -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1str <- stringFromPtr x1 if (objectIsNull x0obj) then return () else _handler x0obj x1str 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_QUndoView_setHandler10" qtc_QUndoView_setHandler10 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQString ()) -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView10 :: (Ptr (TQUndoView x0) -> Ptr (TQString ()) -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQString ()) -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QUndoView10_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> String -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView10 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView10_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler10 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQString ()) -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1str <- stringFromPtr x1 if (objectIsNull x0obj) then return () else _handler x0obj x1str 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 QkeyboardSearch_h (QUndoView ()) ((String)) where keyboardSearch_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withCWString x1 $ \cstr_x1 -> qtc_QUndoView_keyboardSearch cobj_x0 cstr_x1 foreign import ccall "qtc_QUndoView_keyboardSearch" qtc_QUndoView_keyboardSearch :: Ptr (TQUndoView a) -> CWString -> IO () instance QkeyboardSearch_h (QUndoViewSc a) ((String)) where keyboardSearch_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withCWString x1 $ \cstr_x1 -> qtc_QUndoView_keyboardSearch cobj_x0 cstr_x1 instance QmouseDoubleClickEvent_h (QUndoView ()) ((QMouseEvent t1)) where mouseDoubleClickEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_mouseDoubleClickEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_mouseDoubleClickEvent" qtc_QUndoView_mouseDoubleClickEvent :: Ptr (TQUndoView a) -> Ptr (TQMouseEvent t1) -> IO () instance QmouseDoubleClickEvent_h (QUndoViewSc a) ((QMouseEvent t1)) where mouseDoubleClickEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_mouseDoubleClickEvent cobj_x0 cobj_x1 instance QmousePressEvent_h (QUndoView ()) ((QMouseEvent t1)) where mousePressEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_mousePressEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_mousePressEvent" qtc_QUndoView_mousePressEvent :: Ptr (TQUndoView a) -> Ptr (TQMouseEvent t1) -> IO () instance QmousePressEvent_h (QUndoViewSc a) ((QMouseEvent t1)) where mousePressEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_mousePressEvent cobj_x0 cobj_x1 instance QselectAll_h (QUndoView ()) (()) where selectAll_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_selectAll cobj_x0 foreign import ccall "qtc_QUndoView_selectAll" qtc_QUndoView_selectAll :: Ptr (TQUndoView a) -> IO () instance QselectAll_h (QUndoViewSc a) (()) where selectAll_h x0 () = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_selectAll cobj_x0 instance QsetHandler (QUndoView ()) (QUndoView x0 -> QObject t1 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView11 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView11_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler11 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- qObjectFromPtr x1 if (objectIsNull x0obj) then return () else _handler x0obj x1obj 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_QUndoView_setHandler11" qtc_QUndoView_setHandler11 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView11 :: (Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QUndoView11_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> QObject t1 -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView11 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView11_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler11 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 x1obj <- qObjectFromPtr x1 if (objectIsNull x0obj) then return () else _handler x0obj x1obj 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 QsetModel_h (QUndoView ()) ((QAbstractItemModel t1)) where setModel_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_setModel cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_setModel" qtc_QUndoView_setModel :: Ptr (TQUndoView a) -> Ptr (TQAbstractItemModel t1) -> IO () instance QsetModel_h (QUndoViewSc a) ((QAbstractItemModel t1)) where setModel_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_setModel cobj_x0 cobj_x1 instance QsetSelectionModel_h (QUndoView ()) ((QItemSelectionModel t1)) where setSelectionModel_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_setSelectionModel cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_setSelectionModel" qtc_QUndoView_setSelectionModel :: Ptr (TQUndoView a) -> Ptr (TQItemSelectionModel t1) -> IO () instance QsetSelectionModel_h (QUndoViewSc a) ((QItemSelectionModel t1)) where setSelectionModel_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_setSelectionModel cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> Int -> IO (Int)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView12 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView12_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler12 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> CInt -> IO (CInt) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 let x1int = fromCInt x1 let rv = if (objectIsNull x0obj) then return 0 else _handler x0obj x1int rvf <- rv return (toCInt 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_QUndoView_setHandler12" qtc_QUndoView_setHandler12 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> CInt -> IO (CInt)) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView12 :: (Ptr (TQUndoView x0) -> CInt -> IO (CInt)) -> IO (FunPtr (Ptr (TQUndoView x0) -> CInt -> IO (CInt))) foreign import ccall "wrapper" wrapSetHandler_QUndoView12_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> Int -> IO (Int)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView12 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView12_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler12 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> CInt -> IO (CInt) setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 let x1int = fromCInt x1 let rv = if (objectIsNull x0obj) then return 0 else _handler x0obj x1int rvf <- rv return (toCInt 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 QsizeHintForColumn_h (QUndoView ()) ((Int)) where sizeHintForColumn_h x0 (x1) = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_sizeHintForColumn cobj_x0 (toCInt x1) foreign import ccall "qtc_QUndoView_sizeHintForColumn" qtc_QUndoView_sizeHintForColumn :: Ptr (TQUndoView a) -> CInt -> IO CInt instance QsizeHintForColumn_h (QUndoViewSc a) ((Int)) where sizeHintForColumn_h x0 (x1) = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_sizeHintForColumn cobj_x0 (toCInt x1) instance QsizeHintForRow_h (QUndoView ()) ((Int)) where sizeHintForRow_h x0 (x1) = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_sizeHintForRow cobj_x0 (toCInt x1) foreign import ccall "qtc_QUndoView_sizeHintForRow" qtc_QUndoView_sizeHintForRow :: Ptr (TQUndoView a) -> CInt -> IO CInt instance QsizeHintForRow_h (QUndoViewSc a) ((Int)) where sizeHintForRow_h x0 (x1) = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_sizeHintForRow cobj_x0 (toCInt x1) instance QviewportEvent_h (QUndoView ()) ((QEvent t1)) where viewportEvent_h x0 (x1) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_viewportEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_viewportEvent" qtc_QUndoView_viewportEvent :: Ptr (TQUndoView a) -> Ptr (TQEvent t1) -> IO CBool instance QviewportEvent_h (QUndoViewSc a) ((QEvent t1)) where viewportEvent_h x0 (x1) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_viewportEvent cobj_x0 cobj_x1 instance QcontextMenuEvent_h (QUndoView ()) ((QContextMenuEvent t1)) where contextMenuEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_contextMenuEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_contextMenuEvent" qtc_QUndoView_contextMenuEvent :: Ptr (TQUndoView a) -> Ptr (TQContextMenuEvent t1) -> IO () instance QcontextMenuEvent_h (QUndoViewSc a) ((QContextMenuEvent t1)) where contextMenuEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_contextMenuEvent cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> IO (QSize t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView13 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView13_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler13 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> IO (Ptr (TQSize t0)) setHandlerWrapper x0 = do x0obj <- qUndoViewFromPtr x0 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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_QUndoView_setHandler13" qtc_QUndoView_setHandler13 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> IO (Ptr (TQSize t0))) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView13 :: (Ptr (TQUndoView x0) -> IO (Ptr (TQSize t0))) -> IO (FunPtr (Ptr (TQUndoView x0) -> IO (Ptr (TQSize t0)))) foreign import ccall "wrapper" wrapSetHandler_QUndoView13_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> IO (QSize t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView13 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView13_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler13 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> IO (Ptr (TQSize t0)) setHandlerWrapper x0 = do x0obj <- qUndoViewFromPtr x0 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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 QqminimumSizeHint_h (QUndoView ()) (()) where qminimumSizeHint_h x0 () = withQSizeResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_minimumSizeHint cobj_x0 foreign import ccall "qtc_QUndoView_minimumSizeHint" qtc_QUndoView_minimumSizeHint :: Ptr (TQUndoView a) -> IO (Ptr (TQSize ())) instance QqminimumSizeHint_h (QUndoViewSc a) (()) where qminimumSizeHint_h x0 () = withQSizeResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_minimumSizeHint cobj_x0 instance QminimumSizeHint_h (QUndoView ()) (()) where minimumSizeHint_h x0 () = withSizeResult $ \csize_ret_w csize_ret_h -> withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_minimumSizeHint_qth cobj_x0 csize_ret_w csize_ret_h foreign import ccall "qtc_QUndoView_minimumSizeHint_qth" qtc_QUndoView_minimumSizeHint_qth :: Ptr (TQUndoView a) -> Ptr CInt -> Ptr CInt -> IO () instance QminimumSizeHint_h (QUndoViewSc a) (()) where minimumSizeHint_h x0 () = withSizeResult $ \csize_ret_w csize_ret_h -> withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_minimumSizeHint_qth cobj_x0 csize_ret_w csize_ret_h instance QqsizeHint_h (QUndoView ()) (()) where qsizeHint_h x0 () = withQSizeResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_sizeHint cobj_x0 foreign import ccall "qtc_QUndoView_sizeHint" qtc_QUndoView_sizeHint :: Ptr (TQUndoView a) -> IO (Ptr (TQSize ())) instance QqsizeHint_h (QUndoViewSc a) (()) where qsizeHint_h x0 () = withQSizeResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_sizeHint cobj_x0 instance QsizeHint_h (QUndoView ()) (()) where sizeHint_h x0 () = withSizeResult $ \csize_ret_w csize_ret_h -> withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_sizeHint_qth cobj_x0 csize_ret_w csize_ret_h foreign import ccall "qtc_QUndoView_sizeHint_qth" qtc_QUndoView_sizeHint_qth :: Ptr (TQUndoView a) -> Ptr CInt -> Ptr CInt -> IO () instance QsizeHint_h (QUndoViewSc a) (()) where sizeHint_h x0 () = withSizeResult $ \csize_ret_w csize_ret_h -> withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_sizeHint_qth cobj_x0 csize_ret_w csize_ret_h instance QwheelEvent_h (QUndoView ()) ((QWheelEvent t1)) where wheelEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_wheelEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_wheelEvent" qtc_QUndoView_wheelEvent :: Ptr (TQUndoView a) -> Ptr (TQWheelEvent t1) -> IO () instance QwheelEvent_h (QUndoViewSc a) ((QWheelEvent t1)) where wheelEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_wheelEvent cobj_x0 cobj_x1 instance QchangeEvent_h (QUndoView ()) ((QEvent t1)) where changeEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_changeEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_changeEvent" qtc_QUndoView_changeEvent :: Ptr (TQUndoView a) -> Ptr (TQEvent t1) -> IO () instance QchangeEvent_h (QUndoViewSc a) ((QEvent t1)) where changeEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_changeEvent cobj_x0 cobj_x1 instance QactionEvent_h (QUndoView ()) ((QActionEvent t1)) where actionEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_actionEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_actionEvent" qtc_QUndoView_actionEvent :: Ptr (TQUndoView a) -> Ptr (TQActionEvent t1) -> IO () instance QactionEvent_h (QUndoViewSc a) ((QActionEvent t1)) where actionEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_actionEvent cobj_x0 cobj_x1 instance QcloseEvent_h (QUndoView ()) ((QCloseEvent t1)) where closeEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_closeEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_closeEvent" qtc_QUndoView_closeEvent :: Ptr (TQUndoView a) -> Ptr (TQCloseEvent t1) -> IO () instance QcloseEvent_h (QUndoViewSc a) ((QCloseEvent t1)) where closeEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_closeEvent cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> IO (Int)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView14 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView14_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler14 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> IO (CInt) setHandlerWrapper x0 = do x0obj <- qUndoViewFromPtr x0 let rv = if (objectIsNull x0obj) then return 0 else _handler x0obj rvf <- rv return (toCInt 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_QUndoView_setHandler14" qtc_QUndoView_setHandler14 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> IO (CInt)) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView14 :: (Ptr (TQUndoView x0) -> IO (CInt)) -> IO (FunPtr (Ptr (TQUndoView x0) -> IO (CInt))) foreign import ccall "wrapper" wrapSetHandler_QUndoView14_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> IO (Int)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView14 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView14_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler14 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> IO (CInt) setHandlerWrapper x0 = do x0obj <- qUndoViewFromPtr x0 let rv = if (objectIsNull x0obj) then return 0 else _handler x0obj rvf <- rv return (toCInt 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 QdevType_h (QUndoView ()) (()) where devType_h x0 () = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_devType cobj_x0 foreign import ccall "qtc_QUndoView_devType" qtc_QUndoView_devType :: Ptr (TQUndoView a) -> IO CInt instance QdevType_h (QUndoViewSc a) (()) where devType_h x0 () = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_devType cobj_x0 instance QenterEvent_h (QUndoView ()) ((QEvent t1)) where enterEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_enterEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_enterEvent" qtc_QUndoView_enterEvent :: Ptr (TQUndoView a) -> Ptr (TQEvent t1) -> IO () instance QenterEvent_h (QUndoViewSc a) ((QEvent t1)) where enterEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_enterEvent cobj_x0 cobj_x1 instance QheightForWidth_h (QUndoView ()) ((Int)) where heightForWidth_h x0 (x1) = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_heightForWidth cobj_x0 (toCInt x1) foreign import ccall "qtc_QUndoView_heightForWidth" qtc_QUndoView_heightForWidth :: Ptr (TQUndoView a) -> CInt -> IO CInt instance QheightForWidth_h (QUndoViewSc a) ((Int)) where heightForWidth_h x0 (x1) = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_heightForWidth cobj_x0 (toCInt x1) instance QhideEvent_h (QUndoView ()) ((QHideEvent t1)) where hideEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_hideEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_hideEvent" qtc_QUndoView_hideEvent :: Ptr (TQUndoView a) -> Ptr (TQHideEvent t1) -> IO () instance QhideEvent_h (QUndoViewSc a) ((QHideEvent t1)) where hideEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_hideEvent cobj_x0 cobj_x1 instance QkeyReleaseEvent_h (QUndoView ()) ((QKeyEvent t1)) where keyReleaseEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_keyReleaseEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_keyReleaseEvent" qtc_QUndoView_keyReleaseEvent :: Ptr (TQUndoView a) -> Ptr (TQKeyEvent t1) -> IO () instance QkeyReleaseEvent_h (QUndoViewSc a) ((QKeyEvent t1)) where keyReleaseEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_keyReleaseEvent cobj_x0 cobj_x1 instance QleaveEvent_h (QUndoView ()) ((QEvent t1)) where leaveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_leaveEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_leaveEvent" qtc_QUndoView_leaveEvent :: Ptr (TQUndoView a) -> Ptr (TQEvent t1) -> IO () instance QleaveEvent_h (QUndoViewSc a) ((QEvent t1)) where leaveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_leaveEvent cobj_x0 cobj_x1 instance QmoveEvent_h (QUndoView ()) ((QMoveEvent t1)) where moveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_moveEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_moveEvent" qtc_QUndoView_moveEvent :: Ptr (TQUndoView a) -> Ptr (TQMoveEvent t1) -> IO () instance QmoveEvent_h (QUndoViewSc a) ((QMoveEvent t1)) where moveEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_moveEvent cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> IO (QPaintEngine t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView15 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView15_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler15 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> IO (Ptr (TQPaintEngine t0)) setHandlerWrapper x0 = do x0obj <- qUndoViewFromPtr x0 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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_QUndoView_setHandler15" qtc_QUndoView_setHandler15 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> IO (Ptr (TQPaintEngine t0))) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView15 :: (Ptr (TQUndoView x0) -> IO (Ptr (TQPaintEngine t0))) -> IO (FunPtr (Ptr (TQUndoView x0) -> IO (Ptr (TQPaintEngine t0)))) foreign import ccall "wrapper" wrapSetHandler_QUndoView15_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> IO (QPaintEngine t0)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView15 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView15_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler15 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> IO (Ptr (TQPaintEngine t0)) setHandlerWrapper x0 = do x0obj <- qUndoViewFromPtr x0 let rv = if (objectIsNull x0obj) then return $ objectCast x0obj else _handler x0obj rvf <- rv withObjectPtr rvf $ \cobj_rvf -> return (cobj_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 QpaintEngine_h (QUndoView ()) (()) where paintEngine_h x0 () = withObjectRefResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_paintEngine cobj_x0 foreign import ccall "qtc_QUndoView_paintEngine" qtc_QUndoView_paintEngine :: Ptr (TQUndoView a) -> IO (Ptr (TQPaintEngine ())) instance QpaintEngine_h (QUndoViewSc a) (()) where paintEngine_h x0 () = withObjectRefResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_paintEngine cobj_x0 instance QsetHandler (QUndoView ()) (QUndoView x0 -> Bool -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView16 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView16_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler16 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> CBool -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 let x1bool = fromCBool x1 if (objectIsNull x0obj) then return () else _handler x0obj x1bool 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_QUndoView_setHandler16" qtc_QUndoView_setHandler16 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> CBool -> IO ()) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView16 :: (Ptr (TQUndoView x0) -> CBool -> IO ()) -> IO (FunPtr (Ptr (TQUndoView x0) -> CBool -> IO ())) foreign import ccall "wrapper" wrapSetHandler_QUndoView16_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> Bool -> IO ()) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView16 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView16_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler16 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> CBool -> IO () setHandlerWrapper x0 x1 = do x0obj <- qUndoViewFromPtr x0 let x1bool = fromCBool x1 if (objectIsNull x0obj) then return () else _handler x0obj x1bool 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 QsetVisible_h (QUndoView ()) ((Bool)) where setVisible_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_setVisible cobj_x0 (toCBool x1) foreign import ccall "qtc_QUndoView_setVisible" qtc_QUndoView_setVisible :: Ptr (TQUndoView a) -> CBool -> IO () instance QsetVisible_h (QUndoViewSc a) ((Bool)) where setVisible_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> qtc_QUndoView_setVisible cobj_x0 (toCBool x1) instance QshowEvent_h (QUndoView ()) ((QShowEvent t1)) where showEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_showEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_showEvent" qtc_QUndoView_showEvent :: Ptr (TQUndoView a) -> Ptr (TQShowEvent t1) -> IO () instance QshowEvent_h (QUndoViewSc a) ((QShowEvent t1)) where showEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_showEvent cobj_x0 cobj_x1 instance QtabletEvent_h (QUndoView ()) ((QTabletEvent t1)) where tabletEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_tabletEvent cobj_x0 cobj_x1 foreign import ccall "qtc_QUndoView_tabletEvent" qtc_QUndoView_tabletEvent :: Ptr (TQUndoView a) -> Ptr (TQTabletEvent t1) -> IO () instance QtabletEvent_h (QUndoViewSc a) ((QTabletEvent t1)) where tabletEvent_h x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QUndoView_tabletEvent cobj_x0 cobj_x1 instance QsetHandler (QUndoView ()) (QUndoView x0 -> QObject t1 -> QEvent t2 -> IO (Bool)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView17 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView17_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler17 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> Ptr (TQEvent t2) -> IO (CBool) setHandlerWrapper x0 x1 x2 = do x0obj <- qUndoViewFromPtr x0 x1obj <- qObjectFromPtr x1 x2obj <- objectFromPtr_nf x2 let rv = if (objectIsNull x0obj) then return False else _handler x0obj x1obj x2obj 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_QUndoView_setHandler17" qtc_QUndoView_setHandler17 :: Ptr (TQUndoView a) -> CWString -> Ptr (Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> Ptr (TQEvent t2) -> IO (CBool)) -> Ptr () -> Ptr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO () foreign import ccall "wrapper" wrapSetHandler_QUndoView17 :: (Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> Ptr (TQEvent t2) -> IO (CBool)) -> IO (FunPtr (Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> Ptr (TQEvent t2) -> IO (CBool))) foreign import ccall "wrapper" wrapSetHandler_QUndoView17_d :: (Ptr fun -> Ptr state -> Ptr fun_d -> IO ()) -> IO (FunPtr (Ptr fun -> Ptr state -> Ptr fun_d -> IO ())) instance QsetHandler (QUndoViewSc a) (QUndoView x0 -> QObject t1 -> QEvent t2 -> IO (Bool)) where setHandler _eobj _eid _handler = do funptr <- wrapSetHandler_QUndoView17 setHandlerWrapper stptr <- newStablePtr (Wrap _handler) funptr_d <- wrapSetHandler_QUndoView17_d setHandlerWrapper_d withObjectPtr _eobj $ \cobj_eobj -> withCWString _eid $ \cstr_eid -> qtc_QUndoView_setHandler17 cobj_eobj cstr_eid (toCFunPtr funptr) (castStablePtrToPtr stptr) (toCFunPtr funptr_d) return() where setHandlerWrapper :: Ptr (TQUndoView x0) -> Ptr (TQObject t1) -> Ptr (TQEvent t2) -> IO (CBool) setHandlerWrapper x0 x1 x2 = do x0obj <- qUndoViewFromPtr x0 x1obj <- qObjectFromPtr x1 x2obj <- objectFromPtr_nf x2 let rv = if (objectIsNull x0obj) then return False else _handler x0obj x1obj x2obj 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 QeventFilter_h (QUndoView ()) ((QObject t1, QEvent t2)) where eventFilter_h x0 (x1, x2) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> withObjectPtr x2 $ \cobj_x2 -> qtc_QUndoView_eventFilter cobj_x0 cobj_x1 cobj_x2 foreign import ccall "qtc_QUndoView_eventFilter" qtc_QUndoView_eventFilter :: Ptr (TQUndoView a) -> Ptr (TQObject t1) -> Ptr (TQEvent t2) -> IO CBool instance QeventFilter_h (QUndoViewSc a) ((QObject t1, QEvent t2)) where eventFilter_h x0 (x1, x2) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> withObjectPtr x2 $ \cobj_x2 -> qtc_QUndoView_eventFilter cobj_x0 cobj_x1 cobj_x2