Glib.Properties

Entities

Simple Types

Subprograms

Generic Instantiations

Description

Definition of the types and subprograms. You can ignore this section.

Char_Properties

package Char_Properties is new
  Generic_Internal_Discrete_Property (Glib.Gchar);

@private

Get_Property

function Get_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name : Property_Address) return System.Address
Parameters
Object
Name
Return Value

Get_Property

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

Get_Property

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

Get_Property

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

Get_Property

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

Get_Property

function Get_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name : Property_Interface) return Glib.Types.GType_Interface
Parameters
Object
Name
Return Value

Get_Property

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

Get_Property

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

Get_Property

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

Get_Property

procedure Get_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : String;
   Value  : in out Glib.Values.GValue)

Get the property. Value must have been initialized first with the expected type for the property, as in:

Value : GValue;
Init (Value, Value_Type (Pspec));
Get_Property (Object, Pspec_Name (Pspec), Value);

If you do not have a Param_Spec, this can be replaced with:

Init (Value, GType_Int);
Get_Property (Object, Property_Name (Property), Value);

Value must be Unset by the caller to free memory

Parameters
Object
Name
Value

Int_Properties

package Int_Properties is new
  Generic_Internal_Discrete_Property (Glib.Gint);

@private

Long_Properties

package Long_Properties is new
  Generic_Internal_Discrete_Property (Glib.Glong);

@private

Property_Address

type Property_Address   is new Glib.Property;

Property_Boolean

type Property_Boolean   is new Glib.Property;

Property_Boxed

type Property_Boxed     is new Glib.Property;

Property_C_Proxy

type Property_C_Proxy   is new Glib.Property;

Property_Char

type Property_Char      is new Char_Properties.Property;

Property_Char_RO

type Property_Char_RO   is new Char_Properties.Property_RO;

Property_Double

type Property_Double    is new Glib.Property;

Property_Enum

type Property_Enum      is new Glib.Property;

Property_Float

type Property_Float     is new Glib.Property;

Property_Int

type Property_Int       is new Int_Properties.Property;

Property_Interface

type Property_Interface is new Glib.Property;

Property_Long

type Property_Long      is new Long_Properties.Property;

Property_Long_RO

type Property_Long_RO   is new Long_Properties.Property_RO;

Property_Object

type Property_Object    is new Glib.Property;

Property_Object_WO

type Property_Object_WO is new Glib.Property;

Property_String

type Property_String    is new Glib.Property;

Property_String_RO

type Property_String_RO is new Glib.Property;

Property_String_WO

type Property_String_WO is new Glib.Property;

Property_Uchar

type Property_Uchar     is new Uchar_Properties.Property;

Property_Uchar_RO

type Property_Uchar_RO  is new Uchar_Properties.Property_RO;

Property_Uint

type Property_Uint      is new Uint_Properties.Property;

Property_Uint_RO

type Property_Uint_RO   is new Uint_Properties.Property_RO;

Property_Ulong

type Property_Ulong     is new Ulong_Properties.Property;

Property_Ulong_RO

type Property_Ulong_RO  is new Ulong_Properties.Property_RO;

Property_Unichar

type Property_Unichar   is new Unichar_Properties.Property;

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_Address;
   Value  : System.Address)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_Boolean;
   Value  : Boolean)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_C_Proxy;
   Value  : C_Proxy)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_Double;
   Value  : Gdouble)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_Float;
   Value  : Gfloat)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_Interface;
   Value  : Glib.Types.GType_Interface)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_Object;
   Value  : access Glib.Object.GObject_Record'Class)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_Object_WO;
   Value  : access Glib.Object.GObject_Record'Class)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name : Property_String;
   Value : String)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name : Property_String_WO;
   Value : String)
Parameters
Object
Name
Value

Set_Property

procedure Set_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : String;
   Value  : in out Glib.Values.GValue)

Get the property. Value must have been initialized first with the expected type for the property, as in:

Value : GValue;
Init (Value, Value_Type (Pspec));
Get_Property (Object, Pspec_Name (Pspec), Value);

If you do not have a Param_Spec, this can be replaced with:

Init (Value, GType_Int);
Get_Property (Object, Property_Name (Property), Value);

Value must be Unset by the caller to free memory

Parameters
Object
Name
Value

Uchar_Properties

package Uchar_Properties is new
  Generic_Internal_Discrete_Property (Glib.Guchar);

@private

Uint_Properties

package Uint_Properties is new
  Generic_Internal_Discrete_Property (Glib.Guint);

@private

Ulong_Properties

package Ulong_Properties is new
  Generic_Internal_Discrete_Property (Glib.Gulong);

@private

Unichar_Properties

package Unichar_Properties is new
  Generic_Internal_Discrete_Property (Glib.Gunichar);

@private