From f18ea4474bb4905a00e0b39e7205c177ee994196 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 20 Feb 2024 18:04:23 +1300 Subject: Improved binding for the FLTK.Images package subtree --- doc/fl_image.html | 142 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 119 insertions(+), 23 deletions(-) (limited to 'doc/fl_image.html') diff --git a/doc/fl_image.html b/doc/fl_image.html index 4addc4e..7838289 100644 --- a/doc/fl_image.html +++ b/doc/fl_image.html @@ -56,6 +56,55 @@ + + + + + + + + + + + + + + + + + + +
Errors
ERR_FILE_ACCESSFile_Access_Error
ERR_FORMATFormat_Error
ERR_NO_IMAGENo_Image_Error
+ + + + + + + + + + + + + + + + +
Static Functions and Procedures
+static void RGB_scaling(Fl_RGB_Scaling);
+
+procedure Set_Copy_Algorithm
+       (To : in Scaling_Kind);
+
+static Fl_RGB_Scaling RGB_scaling();
+
+function Get_Copy_Algorithm
+    return Scaling_Kind;
+
+ + + @@ -109,7 +158,20 @@ function Copy + + + + + @@ -127,7 +189,53 @@ function Get_D - + @@ -142,7 +250,8 @@ procedure Desaturate - + - + - - - - - - - - - - -- cgit
Functions and Procedures
 int count() const;
 
+function Get_Data_Count
+       (This : in Image)
+    return Natural;
+
 
+function Get_Data_Size
+       (This : in Image)
+    return Natural;
+
 const char * const * data() const;
 
 
+function Get_Datum
+       (This     : in Image;
+        Data     : in Positive;
+        Position : in Positive)
+    return Color_Component
+with Pre =>
+        Data <= Get_Data_Count (This) and
+        Position <= Get_Data_Size (This);
+
+procedure Set_Datum
+       (This     : in out Image;
+        Data     : in     Positive;
+        Position : in     Positive;
+        Value    : in     Color_Component)
+with Pre =>
+        Data <= Get_Data_Count (This) and
+        Position <= Get_Data_Size (This);
+
+function Get_Data
+       (This     : in Image;
+        Data     : in Positive;
+        Position : in Positive;
+        Count    : in Natural)
+    return Color_Component_Array
+with Pre =>
+        Data <= Get_Data_Count (This) and
+        Position <= Get_Data_Size (This) and
+        Count <= Get_Data_Size (This) - Position + 1;
+
+function All_Data
+       (This : in Image;
+        Data : in Positive)
+    return Color_Component_Array
+with Pre =>
+        Data <= Get_Data_Count (This);
+
+procedure Update_Data
+       (This     : in out Image;
+        Data     : in     Positive;
+        Position : in     Positive;
+        Values   : in     Color_Component_Array)
+with Pre =>
+        Data <= Get_Data_Count (This) and
+        Position <= Get_Data_Size (This) and
+        Values'Length <= Get_Data_Size (This) - Position + 1;
+
-virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0);
+virtual void draw(int X, int Y, int W, int H,
+    int cx=0, int cy=0);
 
 procedure Draw
@@ -210,48 +319,35 @@ procedure Inactive
 
 virtual void label(Fl_Widget *w);
 
 Not applicable as the original is marked as obsolete
 virtual void label(Fl_Menu_Item *m);
 
 Not applicable as the original is marked as obsolete
 int ld() const;
 
 
-static void RGB_scaling(Fl_RGB_Scaling);
-
-procedure Set_Copy_Algorithm
-       (To : in Scaling_Kind);
+function Get_Line_Data
+       (This : in Image)
+    return Natural;
 
-static Fl_RGB_Scaling RGB_scaling();
-
-function Get_Copy_Algorithm
-    return Scaling_Kind;
+virtual void uncache();
 
-virtual void uncache();
+procedure Uncache
+       (This : in out Image);