Glib.Generic_Properties.Generic_Enumeration_Property

Entities

Generic formal parameters

Simple Types

Subprograms

Generic Instantiations

Description

--------------- Properties -- ---------------

Enumeration

type Enumeration is (<>);

Get_Enum

function Get_Enum (Value : Glib.Values.GValue) return Enumeration

Return the enumeration contained in Value, assuming it is of type Enumeration

Parameters
Value
Return Value

Get_Type

function Get_Type return Glib.GType

Return the internal gtk+ type associated with the Ada enumeration Enumeration. You don't need to use such a function for the types defined in standard in GtkAda. Use Glib.Type_From_Name instead.

Return Value

Gnew_Enum

function Gnew_Enum
  (Name, Nick, Blurb   : String;
   Default             : Enumeration := Enumeration'First;
   Flags : Param_Flags := Param_Readable or Param_Writable)
   return Param_Spec

Create a new param_spec (to describe properties), based on the Ada enumeration type Enumeration. This function is used when creating the property with Install_Property on an object. Name, Nick and Blurb should describe the property, not its type.

Parameters
Name
Nick
Blurb
Default
Flags
Return Value

Name

Name : String;

Properties

package Properties is new Generic_Internal_Discrete_Property
  (Enumeration);

Property

type Property    is new Properties.Property;

Property_RO

type Property_RO is new Properties.Property_RO;

Set_Enum

procedure Set_Enum
  (Value : in out Glib.Values.GValue; Enum : Enumeration)

Set the enumeration value for Value. This properly initializes the type of Value, so you don't need to call Init yourself.

Parameters
Value
Enum