{-# LANGUAGE FlexibleContexts, FlexibleInstances, ForeignFunctionInterface, MonoLocalBinds, MultiParamTypeClasses, ScopedTypeVariables, TypeSynonymInstances, UndecidableInstances #-} ---------- GENERATED FILE, EDITS WILL BE LOST ---------- {-# LANGUAGE NoMonomorphismRestriction #-} module Graphics.UI.Qtah.Gui.QFileOpenEvent ( QFileOpenEventValue (..), QFileOpenEventConstPtr (..), QFileOpenEventPtr (..), QFileOpenEventConst, QFileOpenEvent, castConst, cast, downCastConst, downCast, file, openFile, ) where import qualified Foreign.Hoppy.Runtime as QtahFHR import qualified Graphics.UI.Qtah.Event as QtahEvent import Graphics.UI.Qtah.Generated.Gui.QFileOpenEvent import qualified Graphics.UI.Qtah.SceneEvent as QtahSceneEvent import Prelude (($), (==)) import qualified Prelude as QtahP castConst = toQFileOpenEventConst cast = toQFileOpenEvent downCastConst = downToQFileOpenEventConst downCast = downToQFileOpenEvent instance QtahEvent.Event QFileOpenEvent where onEvent receiver' handler' = QtahEvent.onAnyEvent receiver' $ \_ qevent' -> let event' = downCast qevent' in if event' == QtahFHR.nullptr then QtahP.return QtahP.False else handler' event' instance QtahSceneEvent.SceneEvent QFileOpenEvent where onSceneEvent receiver' handler' = QtahSceneEvent.onAnySceneEvent receiver' $ \_ qevent' -> let event' = downCast qevent' in if event' == QtahFHR.nullptr then QtahP.return QtahP.False else handler' event'