From de0f3b8bbb85d9c5d5a226e761f658ee2e0d697b Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 25 Feb 2024 20:00:47 +1300 Subject: A few more Fl_Draw functions bound --- doc/fl_draw.html | 61 ++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 44 insertions(+), 17 deletions(-) (limited to 'doc') diff --git a/doc/fl_draw.html b/doc/fl_draw.html index 71da104..654d586 100644 --- a/doc/fl_draw.html +++ b/doc/fl_draw.html @@ -91,7 +91,8 @@
-int fl_add_symbol(const char *name, void(*drawit)(Fl_Color), int scalable);
+int fl_add_symbol(const char *name, void(*drawit)(Fl_Color),
+    int scalable);
 
 procedure Add_Symbol
@@ -215,18 +216,14 @@ function Clip_Box
 
 Fl_Region fl_clip_region();
 
-
-
-
+Left unbound due to being OS-specific
 void fl_clip_region(Fl_Region r);
 
-
-
-
+Left unbound due to being OS-specific @@ -403,7 +400,13 @@ void fl_draw_image(const uchar *buf, int X, int Y, int W, int H, int D=3, int L=0);
-
+procedure Draw_Image
+       (X, Y, W, H      : in Integer;
+        Data            : in Color_Component_Array;
+        Depth           : in Positive := 3;
+        Line_Data       : in Natural := 0;
+        Flip_Horizontal : in Boolean := False;
+        Flip_Vertical   : in Boolean := False);
 
@@ -413,7 +416,10 @@ void fl_draw_image(Fl_Draw_Image_Cb cb, void *data, int X, int Y, int W, int H, int D=3);
-
+procedure Draw_Image
+       (X, Y, W, H : in Integer;
+        Callback   : in Image_Draw_Function;
+        Depth      : in Positive := 3);
 
@@ -423,7 +429,13 @@ void fl_draw_image_mono(const uchar *buf, int X, int Y, int W, int H, int D=1, int L=0);
-
+procedure Draw_Image_Mono
+       (X, Y, W, H      : in Integer;
+        Data            : in Color_Component_Array;
+        Depth           : in Positive := 1;
+        Line_Data       : in Natural := 0;
+        Flip_Horizontal : Boolean := False;
+        Flip_Vertical   : Boolean := False);
 
@@ -433,7 +445,10 @@ void fl_draw_image_mono(Fl_Draw_Image_Cb cb, void *data, int X, int Y, int W, int H, int D=1);
-
+procedure Draw_Image_Mono
+       (X, Y, W, H : in Integer;
+        Callback   : in Image_Draw_Function;
+        Depth      : in Positive := 1);
 
@@ -674,7 +689,8 @@ procedure Outline
-void fl_loop(int x, int y, int x1, int y1, int x2, int y2, int x3, int y3);
+void fl_loop(int x, int y, int x1, int y1,
+    int x2, int y2, int x3, int y3);
 
 procedure Outline
@@ -870,10 +886,18 @@ procedure Push_No_Clip;
 
   
 
-uchar * fl_read_image(uchar *p, int X, int Y, int W, int H, int alpha=0);
+uchar * fl_read_image(uchar *p, int X, int Y, int W, int H,
+    int alpha=0);
 
-
+function Read_Image
+       (X, Y, W, H : in Integer;
+        Alpha      : in Integer := 0)
+    return Color_Component_Array
+with Post =>
+       (if Alpha = 0
+        then Read_Image'Result'Length = W * H * 3
+        else Read_Image'Result'Length = W * H * 4);
 
@@ -1035,7 +1059,8 @@ procedure Set_Status
 const char * fl_shortcut_label(unsigned int shortcut);
 
-const char * fl_shortcut_label(unsigned int shortcut, const char **eom);
+const char * fl_shortcut_label(unsigned int shortcut,
+    const char **eom);
 
 function Shortcut_Label
@@ -1056,9 +1081,11 @@ function Get_Font_Size
 
   
 
-void fl_text_extents(const char *, int &dx, int &dy, int &w, int &h);
+void fl_text_extents(const char *,
+    int &dx, int &dy, int &w, int &h);
 
-void fl_text_extents(const char *t, int n, int &dx, int &dy, int &w, int &h);
+void fl_text_extents(const char *t, int n,
+    int &dx, int &dy, int &w, int &h);
 
 procedure Text_Extents
-- 
cgit