~ubuntu-branches/ubuntu/quantal/libbonobo/quantal-201207170711

« back to all changes in this revision

Viewing changes to doc/api/html/properties.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-09-04 17:59:13 UTC
  • mto: (3.1.2 lenny) (1.1.25 upstream)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20060904175913-oml3562yozrki3pg
Tags: upstream-2.16.0
Import upstream version 2.16.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
<div class="refentry" lang="en">
30
30
<a name="properties"></a><div class="titlepage"></div>
31
31
<div class="refsect1" lang="en">
32
 
<a name="id2875370"></a><h2>Properties</h2>
 
32
<a name="id2714056"></a><h2>Properties</h2>
33
33
<p>Bonobo component properties, version 0.1 by Michael
34
34
            Meeks &lt;mmeeks@gnu.org&gt;</p>
35
35
<p>A brief discussion of how to use the property API to add
36
36
            a simple to use configuration mechanism to your bonobo
37
37
            component.</p>
38
38
<div class="refsect2" lang="en">
39
 
<a name="id2875387"></a><h3>Properties and bags</h3>
 
39
<a name="id2714073"></a><h3>Properties and bags</h3>
40
40
<p>A property is an attribute that is attached to a
41
41
                Bonobo object.  It can have any type, although the
42
42
                standard types <span class="type">boolean</span>,
48
48
</div>
49
49
<hr>
50
50
<div class="refsect2" lang="en">
51
 
<a name="id2876376"></a><h3>BonoboArgs</h3>
 
51
<a name="id2715062"></a><h3>BonoboArgs</h3>
52
52
<p>A bonobo arg contains the value of a property whilst
53
53
                it is 'in flight' between a property and a
54
54
                requestor. The bonobo arg system is designed to make
75
75
</div>
76
76
<hr>
77
77
<div class="refsect2" lang="en">
78
 
<a name="id2876467"></a><h3>PropertyBag creation</h3>
 
78
<a name="id2715153"></a><h3>PropertyBag creation</h3>
79
79
<p>To add properties to an object first we must create
80
80
                a property bag hence:</p>
81
81
<pre class="synopsis">
98
98
</div>
99
99
<hr>
100
100
<div class="refsect2" lang="en">
101
 
<a name="id2876503"></a><h3>Property Creation</h3>
 
101
<a name="id2715189"></a><h3>Property Creation</h3>
102
102
<p> Each basic property is created by this function: </p>
103
103
<pre class="synopsis">
104
104
void bonobo_property_bag_add (BonoboPropertyBag   *pb,
131
131
</div>
132
132
<hr>
133
133
<div class="refsect2" lang="en">
134
 
<a name="id2876561"></a><h3>Wrapping GObjects</h3>
 
134
<a name="id2715247"></a><h3>Wrapping GObjects</h3>
135
135
<p> If you have already implemented a GObject that
136
136
                has the set of properties that you wish to export as
137
137
                Bonobo properties then it is trivial to add them to
152
152
</div>
153
153
<hr>
154
154
<div class="refsect2" lang="en">
155
 
<a name="id2876584"></a><h3>Using properties in your client application</h3>
 
155
<a name="id2715270"></a><h3>Using properties in your client application</h3>
156
156
<p>There are some fairly typesafe but convenient vararg
157
157
                ways to get remote properties. Example:</p>
158
158
<div class="informalexample"><pre class="programlisting">