diff options
Diffstat (limited to 'spec/fltk-images-pixmaps.ads')
-rw-r--r-- | spec/fltk-images-pixmaps.ads | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/spec/fltk-images-pixmaps.ads b/spec/fltk-images-pixmaps.ads new file mode 100644 index 0000000..14e3f94 --- /dev/null +++ b/spec/fltk-images-pixmaps.ads @@ -0,0 +1,98 @@ + + +-- Programmed by Jedidiah Barber +-- Released into the public domain + + +package FLTK.Images.Pixmaps is + + + ------------- + -- Types -- + ------------- + + type Pixmap is new Image with private; + + type Pixmap_Reference (Data : not null access Pixmap'Class) is limited null record + with Implicit_Dereference => Data; + + + + + -------------------- + -- Construction -- + -------------------- + + function Copy + (This : in Pixmap; + Width, Height : in Natural) + return Pixmap'Class; + + function Copy + (This : in Pixmap) + return Pixmap'Class; + + + + + -------------- + -- Colors -- + -------------- + + procedure Color_Average + (This : in out Pixmap; + Col : in Color; + Amount : in Blend); + + procedure Desaturate + (This : in out Pixmap); + + + + + ---------------- + -- Activity -- + ---------------- + + procedure Uncache + (This : in out Pixmap); + + + + + --------------- + -- Drawing -- + --------------- + + procedure Draw + (This : in Pixmap; + X, Y : in Integer); + + procedure Draw + (This : in Pixmap; + X, Y, W, H : in Integer; + CX, CY : in Integer := 0); + + +private + + + type Pixmap is new Image with null record; + + overriding procedure Finalize + (This : in out Pixmap); + + + pragma Inline (Color_Average); + pragma Inline (Desaturate); + + + pragma Inline (Uncache); + + + pragma Inline (Copy); + pragma Inline (Draw); + + +end FLTK.Images.Pixmaps; + |