Glib.Generic_Properties.Generic_Internal_Boxed_Property

Entities

Generic formal parameters

Simple Types

Subprograms

Description

----------------------------------------------- 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.

Boxed_Type

type Boxed_Type is private;

Get_Property

function Get_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property) return Boxed_Type
Parameters
Object
Name
Return Value

Get_Property

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

Parameters
Object
Name
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Value

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

Parameters
Value
Return Value

Property

type Property    is new Glib.Property;

Property_RO

type Property_RO is new Glib.Property;

Set_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.

Parameters
Object
Name
Value

Set_Value

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.

Parameters
Value
Val

To_Address

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).

Parameters
B
Default
Return Value