<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Fl_Draw Binding Map</title> <link href="map.css" rel="stylesheet"> </head> <body> <h2>Fl_Draw Binding Map</h2> <a href="index.html">Back to Index</a> <table class="package"> <tr><th colspan="2">Package name</th></tr> <tr> <td>Fl_Draw</td> <td>FLTK.Draw</td> </tr> </table> <table class="type"> <tr><th colspan="2">Types</th></tr> <tr> <td>Fl_Line</td> <td>Line_Kind</td> </tr> <tr> <td> </td> <td>Cap_Kind</td> </tr> <tr> <td> </td> <td>Join_Kind</td> </tr> <tr> <td> </td> <td>Dash_Length</td> </tr> <tr> <td> </td> <td>Dash_Gap</td> </tr> <tr> <td> </td> <td>Dash_Gap_Array</td> </tr> <tr> <td> </td> <td>Text_Draw_Function</td> </tr> <tr> <td> </td> <td>Symbol_Draw_Function</td> </tr> <tr> <td> </td> <td>Area_Draw_Function</td> </tr> <tr> <td> </td> <td>Draw_Error</td> </tr> </table> <table class="function"> <tr><th colspan="2">Functions and Procedures</th></tr> <tr> <td><pre> int fl_add_symbol(const char *name, void(*drawit)(Fl_Color), int scalable); </pre></td> <td><pre> procedure Add_Symbol (Text : in String; Func : in Symbol_Drawing_Function; Scalable : in Boolean); </pre></td> </tr> <tr> <td><pre> void fl_arc(double x, double y, double r, double start, double end); </pre></td> <td><pre> procedure Arc (X, Y, R, Start, Finish : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_arc(int x, int y, int w, int h, double a1, double a2); </pre></td> <td><pre> procedure Arc (X, Y, W, H : in Integer; Start, Finish : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_begin_complex_polygon(); </pre></td> <td><pre> procedure Begin_Complex_Polygon; </pre></td> </tr> <tr> <td><pre> void fl_begin_line(); </pre></td> <td><pre> procedure Begin_Line; </pre></td> </tr> <tr> <td><pre> void fl_begin_loop(); </pre></td> <td><pre> procedure Begin_Loop; </pre></td> </tr> <tr> <td><pre> void fl_begin_points(); </pre></td> <td><pre> procedure Begin_Points; </pre></td> </tr> <tr> <td><pre> void fl_begin_polygon(); </pre></td> <td><pre> procedure Begin_Polygon; </pre></td> </tr> <tr> <td><pre> char fl_can_do_alpha_blending(); </pre></td> <td><pre> function Can_Do_Alpha_Blending return Boolean; </pre></td> </tr> <tr> <td><pre> void fl_chord(int x, int y, int w, int h, double a1, double a2); </pre></td> <td><pre> procedure Chord (X, Y, W, H : in Integer; Angle1, Angle2 : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_circle(double x, double y, double r); </pre></td> <td><pre> procedure Circle (X, Y, R : in Long_Float); </pre></td> </tr> <tr> <td><pre> int fl_clip_box(int x, int y, int w, int h, int &X, int &Y, int &W, int &H); </pre></td> <td><pre> function Clip_Box (X, Y, W, H : in Integer; BX, BY, BW, BH : out Integer) return Boolean; </pre></td> </tr> <tr> <td><pre> Fl_Region fl_clip_region(); </pre></td> <td>Left unbound due to being OS-specific</td> </tr> <tr> <td><pre> void fl_clip_region(Fl_Region r); </pre></td> <td>Left unbound due to being OS-specific</td> </tr> <tr> <td><pre> Fl_Color fl_color(); </pre></td> <td><pre> function Get_Color return Color; </pre></td> </tr> <tr> <td><pre> void fl_color(Fl_Color c); </pre></td> <td><pre> procedure Set_Color (To : in Color); </pre></td> </tr> <tr> <td><pre> void fl_color(int c); </pre></td> <td>Not applicable; original is deprecated.</td> </tr> <tr> <td><pre> void fl_color(uchar r, uchar g, uchar b); </pre></td> <td><pre> procedure Set_Color (R, G, B : in Color_Component); </pre></td> </tr> <tr> <td><pre> void fl_cursor(Fl_Cursor); </pre></td> <td><pre> procedure Set_Cursor (To : in Mouse_Cursor); </pre></td> </tr> <tr> <td><pre> void fl_cursor(Fl_Cursor, Fl_Color fg, Fl_Color bg=FL_WHITE); </pre></td> <td><pre> procedure Set_Cursor (To : in Mouse_Cursor; Fore : in Color; Back : in Color := White_Color); </pre></td> </tr> <tr> <td><pre> void fl_curve(double X0, double Y0, double X1, double Y1, double X2, double Y2, double X3, double Y3); </pre></td> <td><pre> procedure Curve (X0, Y0 : in Long_Float; X1, Y1 : in Long_Float; X2, Y2 : in Long_Float; X3, Y3 : in Long_Float); </pre></td> </tr> <tr> <td><pre> int fl_descent(); </pre></td> <td><pre> function Font_Descent return Integer; </pre></td> </tr> <tr> <td><pre> void fl_draw(const char *str, int n, int x, int y); void fl_draw(const char *str, int x, int y); </pre></td> <td><pre> procedure Draw_Text (X, Y : in Integer; Text : in String); with Pre => Text'Length > 0; </pre></td> </tr> <tr> <td><pre> void fl_draw(const char *str, int x, int y, int w, int h, Fl_Align align, Fl_Image *img=0, int draw_symbols=1); </pre></td> <td><pre> procedure Draw_Text (X, Y, W, H : in Integer; Text : in String; Align : in Alignment; Symbols : in Boolean := True); procedure Draw_Text (X, Y, W, H : in Integer; Text : in String; Align : in Alignment; Picture : in FLTK.Images.Image'Class; Symbols : in Boolean := True); </pre></td> </tr> <tr> <td><pre> void fl_draw(const char *str, int x, int y, int w, int h, Fl_Align align, void (*callthis)(const char *, int, int, int), Fl_Image *img=0, int draw_symbols=1); </pre></td> <td><pre> procedure Draw_Text (X, Y, W, H : in Integer; Text : in String; Align : in Alignment; Func : in Text_Drawing_Function; Symbols : in Boolean := True); procedure Draw_Text (X, Y, W, H : in Integer; Text : in String; Align : in Alignment; Func : in Text_Drawing_Function; Picture : in FLTK.Images.Image'Class; Symbols : in Boolean := True); </pre></td> </tr> <tr> <td><pre> void fl_draw(int angle, const char *str, int n, int x, int y); void fl_draw(int angle, const char *str, int x, int y); </pre></td> <td><pre> procedure Draw_Text (X, Y : in Integer; Text : in String; Angle : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_draw_box(Fl_Boxtype, int x, int y, int w, int h, Fl_Color); </pre></td> <td><pre> procedure Draw_Box (X, Y, W, H : in Integer; Kind : in Box_Kind; Hue : in Color); </pre></td> </tr> <tr> <td><pre> void fl_draw_image(const uchar *buf, int X, int Y, int W, int H, int D=3, int L=0); </pre></td> <td><pre> 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); </pre></td> </tr> <tr> <td><pre> void fl_draw_image(Fl_Draw_Image_Cb cb, void *data, int X, int Y, int W, int H, int D=3); </pre></td> <td><pre> procedure Draw_Image (X, Y, W, H : in Integer; Callback : in Image_Draw_Function; Depth : in Positive := 3); </pre></td> </tr> <tr> <td><pre> void fl_draw_image_mono(const uchar *buf, int X, int Y, int W, int H, int D=1, int L=0); </pre></td> <td><pre> 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); </pre></td> </tr> <tr> <td><pre> void fl_draw_image_mono(Fl_Draw_Image_Cb cb, void *data, int X, int Y, int W, int H, int D=1); </pre></td> <td><pre> procedure Draw_Image_Mono (X, Y, W, H : in Integer; Callback : in Image_Draw_Function; Depth : in Positive := 1); </pre></td> </tr> <tr> <td><pre> int fl_draw_pixmap(char * const *data, int x, int y, Fl_Color=FL_GRAY); </pre></td> <td><pre> </pre></td> </tr> <tr> <td><pre> int fl_draw_pixmap(const char * const *cdata, int x, int y, Fl_Color=FL_GRAY); </pre></td> <td><pre> </pre></td> </tr> <tr> <td><pre> int fl_draw_symbol(const char *label, int x, int y, int w, int h, Fl_Color); </pre></td> <td><pre> procedure Draw_Symbol (X, Y, W, H : in Integer; Name : in String; Hue : in Color); </pre></td> </tr> <tr> <td><pre> void fl_end_complex_polygon(); </pre></td> <td><pre> procedure End_Complex_Polygon; </pre></td> </tr> <tr> <td><pre> void fl_end_line(); </pre></td> <td><pre> procedure End_Line; </pre></td> </tr> <tr> <td><pre> void fl_end_loop(); </pre></td> <td><pre> procedure End_Loop; </pre></td> </tr> <tr> <td><pre> void fl_end_points(); </pre></td> <td><pre> procedure End_Points; </pre></td> </tr> <tr> <td><pre> void fl_end_polygon(); </pre></td> <td><pre> procedure End_Polygon; </pre></td> </tr> <tr> <td><pre> const char * fl_expand_text(const char *from, char *buf, int maxbuf, double maxw, int &n, double &width, int wrap, int draw_symbols=0); </pre></td> <td><pre> </pre></td> </tr> <tr> <td><pre> Fl_Font fl_font(); </pre></td> <td><pre> function Get_Font return Font_Kind; </pre></td> </tr> <tr> <td><pre> void fl_font(Fl_Font face, Fl_Fontsize fsize); </pre></td> <td><pre> procedure Set_Font (Kind : in Font_Kind; Size : in Font_Size); </pre></td> </tr> <tr> <td><pre> void fl_frame(const char *s, int x, int y, int w, int h); void fl_frame2(const char *s, int x, int y, int w, int h); </pre></td> <td><pre> procedure Frame (X, Y, W, H : in Integer; Top, Left, Bottom, Right : in Greyscale); </pre></td> </tr> <tr> <td><pre> void fl_gap(); </pre></td> <td><pre> procedure Gap; </pre></td> </tr> <tr> <td><pre> int fl_height(); </pre></td> <td><pre> function Font_Line_Spacing return Integer; </pre></td> </tr> <tr> <td><pre> int fl_height(int font, int size); </pre></td> <td><pre> function Font_Height (Kind : in Font_Kind; Size : in Font_Size) return Natural; </pre></td> </tr> <tr> <td><pre> const char * fl_latin1_to_local(const char *t, int n=-1); </pre></td> <td><pre> function Latin1_To_Local (From : in String) return String; </pre></td> </tr> <tr> <td><pre> void fl_line(int x, int y, int x1, int y1); </pre></td> <td><pre> procedure Line (X0, Y0 : in Integer; X1, Y1 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_line(int x, int y, int x1, int y1, int x2, int y2); </pre></td> <td><pre> procedure Line (X0, Y0 : in Integer; X1, Y1 : in Integer; X2, Y2 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_line_style(int style, int width=0, char *dashes=0); </pre></td> <td><pre> procedure Set_Line_Style (Line : in Line_Kind := Solid_Line; Cap : in Cap_Kind := Default_Cap; Join : in Join_Kind := Default_Join; Width : in Natural := 0; Dashes : in Dash_Gap_Array := Empty_Dashes); </pre></td> </tr> <tr> <td><pre> const char * fl_local_to_latin1(const char *t, int n=-1); </pre></td> <td><pre> function Local_To_Latin1 (From : in String) return String; </pre></td> </tr> <tr> <td><pre> const char * fl_local_to_mac_roman(const char *t, int n=-1); </pre></td> <td><pre> function Local_To_Mac_Roman (From : in String) return String; </pre></td> </tr> <tr> <td><pre> void fl_loop(int x, int y, int x1, int y1, int x2, int y2); </pre></td> <td><pre> procedure Outline (X0, Y0 : in Integer; X1, Y1 : in Integer; X2, Y2 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_loop(int x, int y, int x1, int y1, int x2, int y2, int x3, int y3); </pre></td> <td><pre> procedure Outline (X0, Y0 : in Integer; X1, Y1 : in Integer; X2, Y2 : in Integer; X3, Y3 : in Integer); </pre></td> </tr> <tr> <td><pre> const char * fl_mac_roman_to_local(const char *t, int n=-1); </pre></td> <td><pre> function Mac_Roman_To_Local (From : in String) return String; </pre></td> </tr> <tr> <td><pre> void fl_measure(const char *str, int &x, int &y, int draw_symbols=1); </pre></td> <td><pre> procedure Measure (Text : in String; W, H : out Natural; Symbols : in Boolean := True; Wrap : in Natural := 0); </pre></td> </tr> <tr> <td><pre> int fl_measure_pixmap(char *const *data, int &w, int &h); </pre></td> <td><pre> </pre></td> </tr> <tr> <td><pre> int fl_measure_pixmap(const char *const *cdata, int &w, int &h); </pre></td> <td><pre> </pre></td> </tr> <tr> <td><pre> void fl_mult_matrix(double a, double b, double c, double d, double x, double y); </pre></td> <td><pre> procedure Mult_Matrix (A, B, C, D, X, Y : in Long_Float); </pre></td> </tr> <tr> <td><pre> int fl_not_clipped(int x, int y, int w, int h); </pre></td> <td><pre> function Clip_Intersects (X, Y, W, H : in Integer) return Boolean; </pre></td> </tr> <tr> <td><pre> unsigned int fl_old_shortcut(const char *s); </pre></td> <td>Not applicable; original is legacy.</td> </tr> <tr> <td><pre> void fl_overlay_clear(); </pre></td> <td><pre> procedure Overlay_Clear(); </pre></td> </tr> <tr> <td><pre> void fl_overlay_rect(int x, int y, int w, int h); </pre></td> <td><pre> procedure Overlay_Rect (X, Y, W, H : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_pie(int x, int y, int w, int h, double a1, double a2); </pre></td> <td><pre> procedure Pie (X, Y, W, H : in Integer; Angle1, Angle2 : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_point(int x, int y); </pre></td> <td><pre> procedure Point (X, Y : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_polygon(int x, int y, int x1, int y1, int x2, int y2); </pre></td> <td><pre> procedure Polygon (X0, Y0 : in Integer; X1, Y1 : in Integer; X2, Y2 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_polygon(int x, int y, int x1, int y1, int x2, int y2, int x3, int y3); </pre></td> <td><pre> procedure Polygon (X0, Y0 : in Integer; X1, Y1 : in Integer; X2, Y2 : in Integer; X3, Y3 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_pop_clip(); </pre></td> <td><pre> procedure Pop_Clip(); </pre></td> </tr> <tr> <td><pre> void fl_pop_matrix(); </pre></td> <td><pre> procedure Pop_Matrix; </pre></td> </tr> <tr> <td><pre> void fl_push_clip(int x, int y, int w, int h); </pre></td> <td><pre> procedure Push_Clip (X, Y, W, H : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_push_matrix(); </pre></td> <td><pre> procedure Push_Matrix; </pre></td> </tr> <tr> <td><pre> void fl_push_no_clip(); </pre></td> <td><pre> procedure Push_No_Clip; </pre></td> </tr> <tr> <td><pre> uchar * fl_read_image(uchar *p, int X, int Y, int W, int H, int alpha=0); </pre></td> <td><pre> 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); </pre></td> </tr> <tr> <td><pre> void fl_rect(int x, int y, int w, int h); </pre></td> <td><pre> procedure Rect (X, Y, W, H : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_rect(int x, int y, int w, int h, Fl_Color c); </pre></td> <td><pre> procedure Rect (X, Y, W, H : in Integer; Hue : in Color); </pre></td> </tr> <tr> <td><pre> void fl_rectf(int x, int y, int w, int h); </pre></td> <td><pre> procedure Rect_Fill (X, Y, W, H : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_rectf(int x, int y, int w, int h, Fl_Color c); </pre></td> <td><pre> procedure Rect_Fill (X, Y, W, H : in Integer; Hue : in Color); </pre></td> </tr> <tr> <td><pre> void fl_rectf(int x, int y, int w, int h, uchar r, uchar g, uchar b); </pre></td> <td><pre> procedure Rect_Fill (X, Y, W, H : in Integer; R, G, B : in Color_Component); </pre></td> </tr> <tr> <td><pre> void fl_reset_spot(); </pre></td> <td><pre> procedure Reset_Spot; </pre></td> </tr> <tr> <td><pre> void fl_restore_clip(); </pre></td> <td><pre> procedure Restore_Clip; </pre></td> </tr> <tr> <td><pre> void fl_rotate(double d); </pre></td> <td><pre> procedure Rotate (Angle : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_rtl_draw(const char *str, int n, int x, int y); </pre></td> <td><pre> procedure Draw_Text_Right_Left (X, Y : in Integer; Text : in String); </pre></td> </tr> <tr> <td><pre> void fl_scale(double x); </pre></td> <td><pre> procedure Scale (Factor : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_scale(double x, double y); </pre></td> <td><pre> procedure Scale (Factor_X, Factor_Y : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_scroll(int X, int Y, int W, int H, int dx, int dy, void(*draw_area)(void *, int, int, int, int), void *data); </pre></td> <td><pre> procedure Scroll (X, Y, W, H : in Integer; DX, DY : in Integer; Callback : in Area_Draw_Function); </pre></td> </tr> <tr> <td><pre> void fl_set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win=0); </pre></td> <td><pre> procedure Set_Spot (X, Y, W, H : in Integer; Font : in Font_Kind; Size : in Font_Size); procedure Set_Spot (X, Y, W, H : in Integer; Font : in Font_Kind; Size : in Font_Size; Pane : in FLTK.Widgets.Groups.Windows.Window'Class); </pre></td> </tr> <tr> <td><pre> void fl_set_status(int X, int Y, int W, int H); </pre></td> <td><pre> procedure Set_Status (X, Y, W, H : in Integer); </pre></td> </tr> <tr> <td><pre> const char * fl_shortcut_label(unsigned int shortcut); const char * fl_shortcut_label(unsigned int shortcut, const char **eom); </pre></td> <td><pre> function Shortcut_Label (Keys : in Key_Combo) return String; </pre></td> </tr> <tr> <td><pre> Fl_Fontsize fl_size(); </pre></td> <td><pre> function Get_Font_Size return Font_Size; </pre></td> </tr> <tr> <td><pre> 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); </pre></td> <td><pre> procedure Text_Extents (Text : in String; DX, DY, W, H : out Integer); </pre></td> </tr> <tr> <td><pre> double fl_transform_dx(double x, double y); </pre></td> <td><pre> function Transform_DX (X, Y : in Long_Float) return Long_Float; </pre></td> </tr> <tr> <td><pre> double fl_transform_dy(double x, double y); </pre></td> <td><pre> function Transform_DY (X, Y : in Long_Float) return Long_Float; </pre></td> </tr> <tr> <td><pre> double fl_transform_x(double x, double y); </pre></td> <td><pre> function Transform_X (X, Y : in Long_Float) return Long_Float; </pre></td> </tr> <tr> <td><pre> double fl_transform_y(double x, double y); </pre></td> <td><pre> function Transform_Y (X, Y : in Long_Float) return Long_Float; </pre></td> </tr> <tr> <td><pre> void fl_transformed_vertex(double xf, double yf); </pre></td> <td><pre> procedure Transformed_Vertex (XF, YF : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_translate(double x, double y); </pre></td> <td><pre> procedure Translate (X, Y : in Long_Float); </pre></td> </tr> <tr> <td><pre> void fl_vertex(double x, double y); </pre></td> <td><pre> procedure Vertex (X, Y : in Long_Float); </pre></td> </tr> <tr> <td><pre> double fl_width(const char *txt); double fl_width(const char *txt, int n); </pre></td> <td><pre> function Width (Text : in String) return Long_Float; </pre></td> </tr> <tr> <td><pre> double fl_width(unsigned int c); </pre></td> <td><pre> function Width (Glyph : in Character) return Long_Float; function Width (Glyph : in Wide_Character) return Long_Float; function Width (Glyph : in Wide_Wide_Character) return Long_Float; </pre></td> </tr> <tr> <td><pre> void fl_xyline(int x, int y, int x1); </pre></td> <td><pre> procedure Ecks_Why_Line (X0, Y0, X1 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_xyline(int x, int y, int x1, int y2); </pre></td> <td><pre> procedure Ecks_Why_Line (X0, Y0, X1, Y2 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_xyline(int x, int y, int x1, int y2, int x3); </pre></td> <td><pre> procedure Ecks_Why_Line (X0, Y0, X1, Y2, X3 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_yxline(int x, int y, int y1); </pre></td> <td><pre> procedure Why_Ecks_Line (X0, Y0, Y1 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_yxline(int x, int y, int y1, int x2); </pre></td> <td><pre> procedure Why_Ecks_Line (X0, Y0, Y1, X2 : in Integer); </pre></td> </tr> <tr> <td><pre> void fl_yxline(int x, int y, int y1, int x2, int y3); </pre></td> <td><pre> procedure Why_Ecks_Line (X0, Y0, Y1, X2, Y3 : in Integer); </pre></td> </tr> </table> </body> </html>