~ubuntu-branches/ubuntu/intrepid/libgtkada2/intrepid

« back to all changes in this revision

Viewing changes to src/glib-properties.ads

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-08-11 09:46:51 UTC
  • mfrom: (6.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20080811094651-9mjd6acwa98ffw5c
Tags: 2.12.0-2ubuntu1
Add lpia to supported architectures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
with Glib.Generic_Properties; use Glib.Generic_Properties;
68
68
pragma Elaborate_All (Glib.Generic_Properties);
69
69
with System;
 
70
with Glib.Values;
70
71
 
71
72
package Glib.Properties is
72
73
 
119
120
   type Property_Float     is new Glib.Property;
120
121
   type Property_Double    is new Glib.Property;
121
122
 
 
123
   --  General properties getter
 
124
 
 
125
   procedure Set_Property
 
126
     (Object : access Glib.Object.GObject_Record'Class;
 
127
      Name   : String;
 
128
      Value  : in out Glib.Values.GValue);
 
129
   procedure Get_Property
 
130
     (Object : access Glib.Object.GObject_Record'Class;
 
131
      Name   : String;
 
132
      Value  : in out Glib.Values.GValue);
 
133
   --  Get the property. Value must have been initialized first with the
 
134
   --  expected type for the property, as in:
 
135
   --      Value : GValue;
 
136
   --      Init (Value, Value_Type (Pspec));
 
137
   --      Get_Property (Object, Pspec_Name (Pspec), Value);
 
138
   --  If you do not have a Param_Spec, this can be replaced with:
 
139
   --      Init (Value, GType_Int);
 
140
   --      Get_Property (Object, Property_Name (Property), Value);
 
141
   --  Value must be Unset by the caller to free memory
 
142
 
122
143
   --  Special handling of string properties
123
144
 
124
145
   procedure Set_Property