CLayout class - helper class to ease positioning and sizeing the GUI elements
I needed a layout class for my project, and I thought I could share it! It's absolutely free, you can use it, modify it, do everything with it!
You also get my nice gui settings, and an test app with examples
A little info on layouts:
- Layouts are typically expanding containers you can add elements into.
- You don't have to define coordinates and sizes (just minimum sizes, for the slots, if you want to) for the gui elements.
- You can bind layouts and slot to GUI elements, and update them at once.
- There are two types of container layouts: Horizontal (which grows the X+ direction) and vertical (which grows the Y+ direction)
- You can add other layouts into existing layouts, making a parent-child hierarchy.
- There are two special type of layouts: slots and spaces. They cannot have children elements.
- Slots are usually used for buttons, editboxes, scrollbars, and so on.
- Spaces are only used for spacing, they cannot be binded to gui elements.
Here's a screenshot:
Here's the download link!
Cheers,
PI
CLayout class
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
yeah this is seriously cool. i have to check this out further. but i guess i will try to make a gui editor with this.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.