Skip to content

GUIFramework settings

Semyon Gritsenko edited this page Oct 27, 2021 · 9 revisions

GUIFramework needs to initialize some variables, so it's read next gui_framework.json settings file

{
  "settings": {
    "usingCreators": true,
    "usingDeserializers": true,
    "threadsCount": 4,
    "usingNotImplementedExceptions": true,
    "usingExtendedExceptions": true,
    "modules": [
      {
        "moduleName": "example.dll",
        "pathToModule": null
      },
      {
        "moduleName": "another_example.dll",
        "pathToModule": "modules"
      }
    ]
  }
}

settings

This section contains main settings for GUIFramework.

  • usingCreators(bool) - GUIFramework has standard creators for all components such as buttons, edit controls, etc. If this settings is on all this creators is loading to GUIFramework class.
  • usingDeserializers(bool) - GUIFramework has standard deserializers for all components such as buttons, edit controls, etc. If this settings is on all this creators is loading to GUIFramework class.
  • threadsCount(int64_t) - GUIFramework class has addTask method for adding tasks in thread pool for doing them asynchronously, so you can set amount of threads to run this tasks. 0 value - takes all available threads, -1 value or if threadsCount setting doesn't exist - off thread pool.
  • usingNotImplementedExceptions(bool) - Some methods not implemented. If this option is true NotImplementedException throwed by methods, if this option is false or not defined NotImplementedException ignored.
  • usingExtendedExceptions(bool) - GUIFramework can get extended information in throwed exceptions. It contains information about method that throwed exception, line, and file name.
  • modules(array) - Contains all modules for load. pathToModule may be null, which means that module is located in same folder as executable.
Clone this wiki locally