I've searched a bit through the documentation and am trying to find the list of all window properties, and a description of the property value (and its viable format).
So for example our code specifies the "Image" property for some windows. My understanding is that this property has a format that looks something like the following:
"set:SETNAME image:IMAGENAME"
I found this by digging around in some of the tutorials, but have not been able to find the single location where all window properties and their values are documented.
Can you please provide a link or two to the documentation that I must be missing.
Thanks in advance.
Window Properties
Moderators: CEGUI MVP, CEGUI Team
- Dalfy
- CEGUI Team (Retired)
- Posts: 130
- Joined: Tue Oct 11, 2005 16:13
- Location: Paris, FRANCE
- Contact:
The issue with this is that we need to write a tool to dump the supported property for a window/look&feel because some property are created dynamically during the definition of the look&feel. So there is no way to list all property supported by let's say a Window in the API reference just because this is not going to be enough and can vary from one look&feel to another.
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
No, that they have new properties defined within a looknfeel file, next to the hard-codes ones. For example if you look in the Windowslook.looknfeel file, things immediately start at the Button, with the possible different colours per state. Those do not appear in the doxygen api files...
However they are registered to the system when the file gets loaded. If you loop all properties of a window, they do show up:
And we need something like this, but i am not sure how. A very basis script ran from the commandline?, a popup dialog from within our tools?
HTH
However they are registered to the system when the file gets loaded. If you loop all properties of a window, they do show up:
Code: Select all
PropertySet::Iterator propertyIt = (PropertySet*)window->getIterator();
while (!propertyIt.isAtEnd()) {
print("Property [%s: %s]\n", propertyIt.getCurrentKey()).c_str(),
window->getProperty(propertyIt.getCurrentKey()).c_str());
propertyIt++;
}
And we need something like this, but i am not sure how. A very basis script ran from the commandline?, a popup dialog from within our tools?
HTH
- tgraupmann
- Quite a regular
- Posts: 78
- Joined: Thu Aug 18, 2005 00:47
- Contact:
I started filling out a Wiki page for quick reference:
http://www.cegui.org.uk/wiki/index.php/SetProperty
http://www.cegui.org.uk/wiki/index.php/SetProperty
It should be possible to add an export button to my little program, to export in a Wiki format. That export could then be used to update that Wiki page, as an online reference. Something like:
Layout Properties
ID
Font
Text
Static Image Properties
ID
Font
Text
Property Help
ID
Description of this property.
Font
Description of this property.
Text
Description of this property.
Layout Properties
ID
Font
Text
Static Image Properties
ID
Font
Text
Property Help
ID
Description of this property.
Font
Description of this property.
Text
Description of this property.
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Very nice utility
I like the export idea. On a new release or a new official .skin we could add it to a reference page on the wiki indeed!
And maybe also split default- and falagard properties, as i suggested here:
http://www.cegui.org.uk/phpBB2/viewtopic.php?p=11676
I like the export idea. On a new release or a new official .skin we could add it to a reference page on the wiki indeed!
And maybe also split default- and falagard properties, as i suggested here:
http://www.cegui.org.uk/phpBB2/viewtopic.php?p=11676
Who is online
Users browsing this forum: No registered users and 5 guests