Index

Package: Glade

Description

package Gtk.Glade is
This package contains high level support for the Glade GUI builder. It provides routines to generate Ada code from an XML definition file. See package Glib.Glade for the low level GUI builder support.

Binding from C File version 2.8.17

Types

Generate_Ptr

type Generate_Ptr is access procedure (N : Node_Ptr; File : File_Type);

Subprograms & Entries

Generic_Ptr

procedure Generic_Ptr 
(N: Node_Ptr;
File: File_Type);
Dummy Generate_Ptr that does nothing.

Get_Gate

function Get_Gate 
(Class: String) return Generate_Ptr;
Return a Generate_Ptr corresponding to a specific Class. If class isn't found, return a pointer to Generic_Ptr.

Generate

procedure Generate 
(File: String);
Parse file File and generate the corresponding Ada code on standard output. Note the .glade file should be passed here and not the .gladep file.

Generate

procedure Generate 
(Project_Name: String;
Window: Node_Ptr);
Generate the Ada code corresponding the creation of the Project and Window and its children on standard output.

Register_Generate

procedure Register_Generate 
(Widget: String;
Generate: Generate_Ptr);
Register Callback as a procedure that knows how to generate code for a given Widget class. Widget is the C string representing the widget, e.g "GnomeCanvas".