------------------------------------------------ Generic package for discrete type properties -- ------------------------------------------------ This package should be used to implement the Get_Property and Set_Property subprograms for all properties related to enumeration types and simple types. This should be used only for types defined in GtkAda or gtk+ themselves, not for types that you define yourself. Use Generic_Discrete_Type instead.
type Discrete_Type is (<>);
function Get_Property
(Object : access Glib.Object.GObject_Record'Class;
Name : Property) return Discrete_Type
function Get_Property
(Object : access Glib.Object.GObject_Record'Class;
Name : Property_RO) return Discrete_Type
Get a property from Object
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 : Discrete_Type)
Set a property of Object based on Enumeration_Type.