#GUI Project Layout

4 messages · Page 1 of 1 (latest)

heavy canyon
#

Hello everyone, more of a general question either than a problem so if this is in the wrong channel please say and i will move this.

I am working on a little GUI framework in C++ and was wondering what people thought would be a suitable project structure.
Right now, as you see in photo one, you will see the main C++ file of the example project where you define the Update function (declared in the PheonApplication.h header file) in your own project.

Im thinking of changing this to use a subclass which overrides the Update function but was just asking if people have any other ideas. Again if there is a specific channel in the discord i should use, please let me know, kinda new here!!!!! 😜

copper fableBOT
#

When your question is answered use !solved or the button below to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

verbal zinc
#

Start with the basic subclass pattern, get it working, and see how it feels to actually use. You can always refine the API later based on real usage. The important thing is that it's intuitive for people using your framework, and honestly, the subclass pattern is what most C++ devs would expect to see anyway. Good luck with it, sounds like a good project

heavy canyon
#

Thanks for the advice, i have implemented it and its working perfectly, obviously I'm biased because i made it, but it seems simple to use too!!