aseprite/src/gen
David Capello 53a925e86d Remove SkinParts enum
Now we generate the list of SkinTheme parts from the skin.xml file using
the gen utility.

Several refactors included in SkinTheme class to simplify code.
2015-08-04 19:38:52 -03:00
..
CMakeLists.txt Add target_link_libraries() for sublibraries 2015-07-13 12:16:55 -03:00
common.h
gen.cpp
LICENSE.txt
pref_types.cpp
pref_types.h
README.md
skin_class.cpp Remove SkinParts enum 2015-08-04 19:38:52 -03:00
skin_class.h
ui_class.cpp
ui_class.h

Aseprite Code Generator

Copyright (C) 2014 David Capello

Distributed under MIT license

This utility generates source code from XML files. Its aim is to convert XML files (dynamic data) to C++ files (static structures) that can be checked in compile-time. There are three areas of interest:

  1. To create ui::Widgets subclasses from data/widgets/*.xml files. In this way we can create wrappers that can access to each XML file directly in a easier way (e.g. one member for each widget with an id parameter on it).
  2. To create configuration wrappers from a special config-metadata.xml file (so we can replace get/set_config_int/bool/string() function calls). There is an ongoing cfg module to replace the whole reading/writing operations of user's settings/preferences.
  3. To create a wrapper class for theme data access. From data/skins/default/ we can create a C++ class with a member function to access each theme slice, color, style, etc.