ark::gui::GuiApplication

Defined in header “ark/gui/gui_application.hh”.


This is a graphical user interface application, allowing you to construct the basic window/frame, and then add in plugins, before turning control over to the main message pump.

It is roughly the equivalent of pipelines and executors, for GUIs.

Methods

  • GuiApplication(const std::string & name, int argc, const char ** argv)
    Constructor. Initializes the application with the given name.

  • GuiApplication(const GuiApplicationConfig & config, int argc, const char ** argv)
    Constructor. Initializes the application with the given config.

  • ~GuiApplication()
    Destructor. Implemented privately to hide details.

  • void register_plugin(auto… args)
    Adds a plugin to this application. It will not be displayed by default.

  • void register_right_plugin(auto… args)
    Adds a plugin to this application. It will be displayed on the righthand side of the application.

  • void register_bottom_plugin(auto… args)
    Adds a plugin to this application. It will be displayed on the bottom side of the application.

  • void register_central_plugin(auto… args)
    Adds a plugin to this application. It will be displayed on the central panel of the application.

  • int execute()
    Executes the application, turning control over to the message pump. It’s assumed you return from main() once this has been invoked.