Big changes to TinyWindow

Starting from the 14th of February, I have made a large number of changes to TinyWindow which includes adding CMake, and making TinyWindow use more c++ features.

starting from the 14th of february, here are the changes to TinyWindow up to this point:

  • Feb 14th –
    • moved example code to seperate folder and added CMakeLists to example folder.
    • compressed documentation to a single zip file
  • Feb 17th –
    • Updated TinyWindow based on feedback. Special thanks to James Mitchell
    • renamed FOUNDATION_ERROR and FOUNDATION_OK to TINYWINDOW_””
    • removed magic numbers in WNDPROC
    • changed windows storage from std::list to std::vector
    • removed GetWindowInList functions
    • fixed in-code documentation relating to X11 Atoms being mistakenly referred to Atomics
    • swapped out #define for const declarations
    • replaced for each loops with C++11 range based for loops
  • Feb 22nd –
    • removed useless windowproc function declaration
    • swapped out const int variables definitions with enums.
    • added error for invalid icon path
    • added forward declaration for window_t to allow its use in public functions
    • window_t now uses default values for it’s consturctor
    • changed GCC flags to strictest warning settings
    • added keypress event to Example for debugging purposes
    • replaced C style function pointers with std::function
  • Feb 23rd –
    • added Platform_ private functions to better organize code
  • Feb 24th –
    • replaced most enums with class enums to prevent name clashes as well as type safety

The next upcoming changes to TinyWindow include:

  • using std::error/std::error_category for error management
  • implement std::unique_ptr
  • update documentation

With these updates, TinyWindow will move from 0.3 to 0.4

 

More information on future updates and features can be found here