Significance of property class

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
ritz
Quite a regular
Quite a regular
Posts: 49
Joined: Wed Jan 12, 2005 12:06

Significance of property class

Postby ritz » Wed Nov 24, 2004 10:37

Hi All,

WHile going through the widget's code i ahve seen property classes associated with each control.

I could not get the usage of creating the property class, as all the proeprty objects are kept private in control class.

can any body please give me some more infor to understand it more.

Thanks,
RitZ

User avatar
gcarlton
Just can't stay away
Just can't stay away
Posts: 149
Joined: Wed Jan 12, 2005 12:06

Significance of property class

Postby gcarlton » Thu Nov 25, 2004 00:06

The properties are a way of data driving the gui elements.

For example, a ProgressBar may have a Progress property that maps the ascii string "progress" to the actual setting of the element's floating point number. This allows it to be specified in xml files.

I'm not sure of the exact mechanism of this as it looks fairly convoluted (especially having to create a class for each property), but thats the gist of it.

User avatar
ritz
Quite a regular
Quite a regular
Posts: 49
Joined: Wed Jan 12, 2005 12:06

Significance of property class

Postby ritz » Thu Nov 25, 2004 03:50

Hello,

Thanks for reply.

Can you please give me any reference or pointer to read about how XML files works in CE system

I am not able to get any consolidated link at this site


Thanks
RitZ

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Significance of property class

Postby CrazyEddie » Thu Nov 25, 2004 12:00

For a brief reference on what's available for XML files in CEGUI, look at the cegui_mk2/XMLRefSchema/ReadMe.txt file.

CE.

User avatar
ritz
Quite a regular
Quite a regular
Posts: 49
Joined: Wed Jan 12, 2005 12:06

Significance of property class

Postby ritz » Thu Nov 25, 2004 13:55

Thanks a Lot.
Ritz


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests