File: my_widget.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 (27 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (6)
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
with Glib; use Glib;
with Gdk.GC;
with Gtk.Drawing_Area;

package My_Widget is

   --  A simple widget, that appears as a round target, with two zones.
   --  If prints a different message depending on where you click

   type Target_Widget_Record is new Gtk.Drawing_Area.Gtk_Drawing_Area_Record
     with private;
   type Target_Widget is access all Target_Widget_Record'Class;


   procedure Gtk_New (Widget : out Target_Widget);
   procedure Initialize (Widget : access Target_Widget_Record'Class);

private
   type Target_Widget_Record is new
     Gtk.Drawing_Area.Gtk_Drawing_Area_Record with
   record
      Gc_In  : Gdk.GC.Gdk_GC;
      Gc_Out : Gdk.GC.Gdk_GC;
      Radius : Gint;
   end record;

end My_Widget;