## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Object

- Goto spec source

# Description

    package Gtk.Object is

This package is deprecated and is here for purposes of backwards compatibility.

The handling of flags has been moved to Gtk.Widget, and the rest of the facilities are available through Glib.Object.

Binding from C File version 2.8.17

# Packages

### Object_SList (new Glib.GSlist.Generic_SList)

    package Object_SList is new Glib.GSlist.Generic_SList (Gtk_Object);

### User_Data (generic)

Full description

# Classes

### Gtk_Object_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Object_Record is new Glib.Object.GObject_Record with private;

#### Ancestors:

Glib.Object.GObject_Record

#### Primitive operations:

Destroy

- To API doc
- To spec

Flag_Is_Set

- To API doc
- To spec

Flags

- To API doc
- To spec

Get_Type

- To API doc
- To spec

(overriding Glib.Object.Get_Type)
Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Set_Flags

- To API doc
- To spec

Sink

- To API doc
- To spec

Unset_Flags

- To API doc
- To spec

# Types

### Gtk_Object

- Goto declaration in source

    type Gtk_Object is access all Gtk_Object_Record'Class;

### GObject_Class

- Goto declaration in source

    subtype GObject_Class is Glib.Object.GObject_Class;

### Signal_Parameter_Types

- Goto declaration in source

    subtype Signal_Parameter_Types is Glib.Object.Signal_Parameter_Types;

# Constants & Global variables

### In_Destruction

- Goto declaration in source

    In_Destruction : constant := 2 ** 0;

### Floating

- Goto declaration in source

    Floating       : constant := 2 ** 1;

### Reserved_1

- Goto declaration in source

    Reserved_1     : constant := 2 ** 2;

### Reserved_2

- Goto declaration in source

    Reserved_2     : constant := 2 ** 3;

### Uninitialized_Class

- Goto declaration in source

(Glib.Object.GObject_Class)

    Uninitialized_Class : GObject_Class renames
         Glib.Object.Uninitialized_Class;

### Null_Parameter_Types

- Goto declaration in source

(Glib.Object.Signal_Parameter_Types)

    Null_Parameter_Types : Signal_Parameter_Types renames
         Glib.Object.Null_Parameter_Types;

### User_Data_Property

- Goto declaration in source

(Glib.Properties.Property_Address)

    User_Data_Property : constant Glib.Properties.Property_Address;

### Signal_Destroy

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Destroy : constant Glib.Signal_Name := "destroy";

# Subprograms & Entries

### Destroy

- Goto spec in source

    procedure Destroy (Object: access Gtk_Object_Record);

Destroy the object. This emits a "destroy" signal, calls all your handlers, and then unconnects them all. The object is then unref-ed, and if its reference count goes down to 0, the memory associated with the object and its user data is freed. Note that when you destroy handlers are called, the user_data is still available. When a widget is destroyed, it will break any references it holds to other objects. If the widget is inside a container, the widget will be removed from the container. If the widget is a toplevel (derived from Gtk_Window), it will be removed from the list of toplevels, and the reference GTK+ holds to it will be removed. Removing widget from its container or the list of toplevels results in the widget being finalized, unless you've added additional references to the widget with Ref. In most cases, only toplevel widgets (windows) require explicit destruction, because when you destroy a toplevel its children will be destroyed as well.

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Gtk.Gtk_Type;

Return the internal value associated with a Gtk_Object internally.

### Get_Type

- Goto spec in source

    function Get_Type (Object: access Gtk_Object_Record) return Gtk_Type;

This function is now obsolete, and is temporarily kept for backward compatibility only. Use Glib.Object.Get_Type instead. ???

### Convert

- Goto spec in source

    function Convert (W: Gtk_Object) return System.Address;

### Convert

- Goto spec in source

    function Convert (W: System.Address) return Gtk_Object;

### Flags

- Goto spec in source

    function Flags (Object: access Gtk_Object_Record) return Guint32;

Return the flags that are set for the object, as a binary mask.

### Set_Flags

- Goto spec in source

    procedure Set_Flags (Object: access Gtk_Object_Record;Flags: Guint32);

Set some specific flags for the object. Flags is a mask that will be added to the current flags of the object.

### Unset_Flags

- Goto spec in source

    procedure Unset_Flags (Object: access Gtk_Object_Record;Flags: Guint32);

Unset some specific flags for the object. Flags is a mask that will be deleted from the current flags of the object.

### Flag_Is_Set

- Goto spec in source

    function Flag_Is_Set (Object: access Gtk_Object_Record;Flag: Guint32) return Boolean;

Return True if the specific flag Flag is set for the object.

### In_Destruction_Is_Set

- Goto spec in source

    function In_Destruction_Is_Set (Object: access Gtk_Object_Record'Class) return Boolean;

Test if the Destroyed flag is set for the object.

### Destroyed_Is_Set

- Goto spec in source

    function Destroyed_Is_Set (Object: access Gtk_Object_Record'Class) return Boolean renames In_Destruction_Is_Set;

<doc_ignore>

### Floating_Is_Set

- Goto spec in source

    function Floating_Is_Set (Object: access Gtk_Object_Record'Class) return Boolean;

Test if the Floating flag is set for the object.

### Initialize_Class_Record

- Goto spec in source

    procedure Initialize_Class_Record (Object: access GObject_Record'Class;Signals: Gtkada.Types.Chars_Ptr_Array;Class_Record: in out GObject_Class;Type_Name: String;Parameters: Signal_Parameter_Types := Null_Parameter_Types) renames Glib.Object.Initialize_Class_Record;

### Sink

- Goto spec in source

    procedure Sink (Object: access Gtk_Object_Record);