File: lwobjects.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 (25 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (11)
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

with System;

package Lwobjects is

   type Lwobject is private;
   Null_Lwobject : constant Lwobject;

   function Lw_Is_Lwobject (File : String) return Boolean;
   function Lw_Object_Read (File : String) return Lwobject;
   procedure Lw_Object_Free (Object : in out Lwobject);
   procedure Lw_Object_Show (Object : Lwobject);

   function Lw_Object_Radius (Object : Lwobject) return Float;
   procedure Lw_Object_Scale (Object : Lwobject; Scale : Float);

private
   type Lwobject is new System.Address;
   Null_Lwobject : constant Lwobject := Lwobject (System.Null_Address);

   pragma Import (C, Lw_Object_Show, "lw_object_show");
   pragma Import (C, Lw_Object_Radius, "lw_object_radius");
   pragma Import (C, Lw_Object_Scale, "lw_object_scale");

end Lwobjects;