File: child_property.m4

package info (click to toggle)
gtkmm3.0 3.24.10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 11,820 kB
  • sloc: xml: 121,513; cpp: 8,659; makefile: 286; sh: 203; python: 6
file content (37 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
dnl
dnl
dnl  Code generation sections for GtkContainer child properties
dnl
dnl

dnl                       $1         $2            $3          $4           $5        $6
dnl _CHILD_PROPERTY_PROXY(name, name_underscored, cpp_type, proxy_suffix, deprecated, docs)
dnl proxy_suffix could be "", "_WriteOnly" or "_ReadOnly"
dnl The method will be const if the propertyproxy is _ReadOnly.
dnl
define(`_CHILD_PROPERTY_PROXY',`dnl
dnl
dnl Put spaces around the template parameter if necessary.
pushdef(`__PROXY_TYPE__',`dnl
Gtk::ChildPropertyProxy$4< _QUOTE($3) >'dnl
)dnl
/** $6
   *
   * @return A ChildPropertyProxy$4 that allows you to dnl
ifelse($4,_ReadOnly,get,`ifelse($4,_WriteOnly,set,get or set)') the value of the property,
   * or receive notification when the value of the property changes.
   */
  __PROXY_TYPE__ child_property_$2`'(ifelse($4,_ReadOnly,const ,)Gtk::Widget& child) ifelse($4,_ReadOnly, const,);
_PUSH(SECTION_CC_PROPERTYPROXIES)
ifelse(`$5',,,`_DEPRECATE_IFDEF_START
')dnl
__PROXY_TYPE__ __CPPNAME__::child_property_$2`'(ifelse($4,_ReadOnly,const ,)Gtk::Widget& child) ifelse($4,_ReadOnly, const,)
{
  return __PROXY_TYPE__`'(this, child, "$1");
}
ifelse(`$5',,,`_DEPRECATE_IFDEF_END
')dnl

_POP()
popdef(`__PROXY_TYPE__')dnl
')dnl