----------------------------------------------- Generic package for record types properties -- ----------------------------------------------- This package should be used to implement the Get_Property and Set_Property subprograms for all properties related to record type, like Gdk_Color and Gdk_Rectangle. This should be used only for types defined in GtkAda or gtk+ themselves, not for types that you define yourself.
type Boxed_Type is private;
function Get_Property
(Object : access Glib.Object.GObject_Record'Class;
Name : Property) return Boxed_Type
function Get_Property
(Object : access Glib.Object.GObject_Record'Class;
Name : Property_RO) return Boxed_Type
Get a property from Object. Unset_Value is raised if the property is not set
function Get_Type return Glib.GType
function Get_Value (Value : Glib.Values.GValue) return Boxed_Type
Get the value stored in Value. Reference counting is automatically handled, and the returned value has been properly referenced. Unset_Value is raised if Value contains no data
type Property is new Glib.Property;
type Property_RO is new Glib.Property;
procedure Set_Property
(Object : access Glib.Object.GObject_Record'Class;
Name : Property;
Value : Boxed_Type)
Set a property of Object based on Enumeration_Type.
procedure Set_Value
(Value : in out Glib.Values.GValue;
Val : Boxed_Type)
Store Val in Value. The latter is properly initialized, and reference counting is handled automatically. You must Unset Value when you are done using it.
function To_Address
(B : Boxed_Type; Default : System.Address) return System.Address
Convert B into an address that can be passed to gtk+. Default is the address of the parameters passed by the user (since this function cannot return B'Address, where B might be passed by copy).