Index

Package: Object

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)

Classes

Gtk_Object_Record

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

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)

Types

Gtk_Object

type Gtk_Object is access all Gtk_Object_Record'Class;

GObject_Class

subtype GObject_Class is Glib.Object.GObject_Class;

Signal_Parameter_Types

subtype Signal_Parameter_Types is Glib.Object.Signal_Parameter_Types;

Constants & Global variables

In_Destruction

In_Destruction : constant := 2 ** 0;

Floating

Floating       : constant := 2 ** 1;

Reserved_1

Reserved_1     : constant := 2 ** 2;

Reserved_2

Reserved_2     : constant := 2 ** 3;

Signal_Destroy (Glib.Signal_Name)

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

Subprograms & Entries

Destroy

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

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with a Gtk_Object internally.

Get_Type

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

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

Convert

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

Flags

function Flags 
(Object: access Gtk_Object_Record) return Guint32;
Return the flags that are set for the object, as a binary mask.

Set_Flags

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

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

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

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

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

Floating_Is_Set

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

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

procedure Sink 
(Object: access Gtk_Object_Record);