Core & Miscellaneous Overview
The Core module in ProGUI provides the essential functions required to initialize, configure, and safely shut down the graphical user interface framework. It also includes miscellaneous utility functions that operate at the application level rather than on specific UI elements.
Key functionalities include:
- Initialization & Teardown: StartProGUI() must be called before using any other ProGUI functions. It initializes the rendering subsystems (Direct2D/Cairo), skinning engine, and internal event threads. Conversely, StopProGUI() ensures that resources, threads, and hooks are properly released when the application exits.
- Event Routing: RegisterDummyWindow() is used to
link ProGUI’s internal messaging with PureBasic’s standard event loop,
allowing seamless integration of ProGUI events within a typical
PureBasic application. This is done automatically by the include wrapper
ProGUI_PB.pbi. - System Information: Utility functions like GetCurrentProcessFilePath() provide application-level paths necessary for loading resources, skins, and dynamic assets relative to the executable.