File: packbox.ads

package info (click to toggle)
libgtkada 2.24.4dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 12,208 kB
  • ctags: 1,676
  • sloc: ada: 119,686; ansic: 4,719; sh: 3,003; makefile: 690; xml: 338; perl: 70
file content (33 lines) | stat: -rw-r--r-- 990 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
with Glib; use Glib;
with Gtk.Widget;
with Gtk.Box;
with Gtk.Handlers;

package Packbox is

   function Delete_Event
     (Widget : access Gtk.Widget.Gtk_Widget_Record'Class) return Boolean;
   --  "delete_event" handler.
   --  Quit the main loop.

   function Make_Box
     (Homogeneous : Boolean;
      Spacing     : Gint;
      Expand      : Boolean;
      Fill        : Boolean;
      Padding     : Guint) return Gtk.Box.Gtk_Hbox;
   --  Make a new hbox filled with button-labels. Arguments for the
   --  variables we're interested are passed in to this function.
   --  We do not show the box, but do show everything inside.

   procedure Quit (Widget : access Gtk.Widget.Gtk_Widget_Record'Class);
   --  Quit button handler ("clicked" signal).
   --  Quit the main loop.

   package Handlers is new Gtk.Handlers.Callback
     (Gtk.Widget.Gtk_Widget_Record);

   package Return_Handlers is new Gtk.Handlers.Return_Callback
     (Gtk.Widget.Gtk_Widget_Record, Boolean);

end Packbox;