Advertisement

HBox: C++ Box Layouter

Started by March 17, 2015 11:11 PM
1 comment, last by Amr0 9 years, 7 months ago

hbox-ss.png

Hi guys! I'm working on a simple C++ library that can be used to layout boxes for GUI things. It's still work in progress. If you have any questions, ideas, suggestions, or any kind of feedback, I'm looking forward to it. More info here:

http://www.code-section.com/entry/22/hbox-a-c-box-layouter

I would have posted this in 'Your Announcements', but I'm thinking doing that when it's ready is more appropriate. I think there should be a forum called 'WIP' where members can post about what they are working on and get feedback.

Thank you.

How would you tie this to the other GUI frameworks?

Advertisement

Each box has a 'user-data' field, where the user can store, say, a pointer to the GUI framework window. To update the window when the HBox is updated, the user will hook the 'update' event to resize the window associated with the updated HBox. On the other hand, the user will need to update the root HBox when the main window is resized by setting the width and height properties of the root HBox to match the framework window size.

This topic is closed to new replies.

Advertisement