1 dnl $Id: property.m4 291 2006-05-12 08:08:45Z murrayc $
5 dnl Code generation sections for properties
10 dnl _PROPERTY_PROXY(name, name_underscored, cpp_type, proxy_suffix, docs)
11 dnl proxy_suffix could be "_WriteOnly" or "_ReadOnly"
12 dnl The method will be const if the propertyproxy is _ReadOnly.
14 define(`_PROPERTY_PROXY',`dnl
16 dnl Put spaces around the template parameter if necessary.
17 pushdef(`__PROXY_TYPE__',`dnl
18 Glib::PropertyProxy$4<'ifelse(regexp(_QUOTE($3),`>$'),`-1',_QUOTE($3),` '_QUOTE($3)` ')`>'dnl
20 #ifdef GLIBMM_PROPERTIES_ENABLED
23 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
24 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
25 * the value of the property changes.
27 __PROXY_TYPE__ property_$2`'() ifelse($4,_ReadOnly, const,);
28 #endif //#GLIBMM_PROPERTIES_ENABLED
29 _PUSH(SECTION_CC_PROPERTYPROXIES)
30 #ifdef GLIBMM_PROPERTIES_ENABLED
31 __PROXY_TYPE__ __CPPNAME__::property_$2`'() ifelse($4,_ReadOnly, const,)
33 return __PROXY_TYPE__`'(this, "$1");
35 #endif //GLIBMM_PROPERTIES_ENABLED
38 popdef(`__PROXY_TYPE__')dnl