Glib.Generic_Properties.Generic_Internal_Discrete_Property

Entities

Generic formal parameters

Simple Types

Subprograms

Description

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

Discrete_Type

type Discrete_Type is (<>);

Get_Property

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

Get_Property

function Get_Property
  (Object : access Glib.Object.GObject_Record'Class;
   Name   : Property_RO) return Discrete_Type

Get a property from Object

Parameters
Object
Name
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  : Discrete_Type)

Set a property of Object based on Enumeration_Type.

Parameters
Object
Name
Value