Safe Haskell | None |
---|
Graphics.QML.Engine
Description
Functions for starting QML engines, displaying content in a window.
- data InitialWindowState
- data EngineConfig a = EngineConfig {}
- defaultEngineConfig :: EngineConfig a
- createEngine :: Object a => EngineConfig a -> IO ()
- runEngines :: IO ()
- filePathToURI :: FilePath -> URI
Documentation
data InitialWindowState Source
Specifies the intial state of the display window.
Constructors
ShowWindow | A visible window should be created for the initial document with a default title. |
ShowWindowWithTitle String | A visible window should be created for the initial document with the given title. |
HideWindow | A window should be created for the initial document, but it will remain hidden until made visible by the QML script. |
data EngineConfig a Source
Holds parameters for configuring a QML runtime engine.
Constructors
EngineConfig | |
Fields
|
defaultEngineConfig :: EngineConfig aSource
Default engine configuration. Loads "main.qml"
from the current
working directory into a visible window with no context object.
createEngine :: Object a => EngineConfig a -> IO ()Source
Create a QML engine from a specification of its configuration.
runEngines :: IO ()Source
Enters the Qt event loop and runs until all engines have terminated.
filePathToURI :: FilePath -> URISource
Convenience function for converting local file paths into URIs.