Page 1 of 1

Complete property reference

Posted: Tue Jan 13, 2015 00:33
by tasulife
Is there a master list of all the widget properties, and their allowed values in the case of strings/enums?

Here are some questions I have not been able to answer myself using all the documentation:
First, in the example TextDemo.layout (in the samples), specifies a Static Text property "VertFormatting". When I look at the reference file, it does not specify the values:
http://static.cegui.org.uk/static/Tahar ... Formatting
How can I learn the values for these missing properties?

Second, in the same TextDemo.layout file, there are completely undocumented properties like "MaxSize". Is this an alias for UnifiedMaxSize, which is documented? Where is the list of aliases?

Thank you for the help! :D

Re: Complete property reference

Posted: Tue Jan 13, 2015 10:13
by Kulik
IMO the best way to get fresh and correct property lists with docs is to use CEED.

CEED queries the widgets for properties so it gets properties from the C++ classes and LNF WidgetLooks. It even works for custom skins that you created.

It would be a pretty cool little project to write a small script that would generate property lists for all the themes we ship. Especially if it were something we kept in the repo and ran on jenkins.

Re: Complete property reference

Posted: Wed Jan 14, 2015 15:24
by Ident
Kulik wrote:It would be a pretty cool little project to write a small script that would generate property lists for all the themes we ship. Especially if it were something we kept in the repo and ran on jenkins.

The Widget sample I wrote for GSOC2012 does this already for all loaded widgets. It should be easy to modify in a way it writes out the properties.