A tool, inspired from the Curriously Reccuring Template Pattern idiom, that i developed for my student projects this year. We used it to create a derived class which is used to create buttons quickly, efficiently and at the same time have access to functions, easy to use, to personalize them. The idea was to benefit from the advantages of the composite design pattern, to eliminate virtual functions and having only one header, which makes it easy to integrate with existing project.
All examples on how to use this tool and the different functions are provided in commentaries or in test.cpp file.
- Please, download the latest version available of Microsoft Visual Studio.
- You need a compiler who support cpp latest language features and put the language standard on it in "Properties".
- It has been tested on clang 12.0.1 and MSVC 14.29.30037 versions.
- You can include the SFML too, if you want to use the button class
Developed by @dev1ous
Thanks to @Tama-sama for various help( insane programmer ) and @Predatorium for his help to extend the functions in the button class during our student project ( he's a coding machine ).
Under the MIT License, see LICENSE for more information.