fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

fl_draw.H File Reference

utility header to pull drawing functions together More...

#include <FL/x.H>
#include <FL/Enumerations.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Device.H>
Include dependency graph for fl_draw.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define fl_clip   fl_push_clip

Enumerations

enum  {
  FL_SOLID = 0, FL_DASH = 1, FL_DOT = 2, FL_DASHDOT = 3,
  FL_DASHDOTDOT = 4, FL_CAP_FLAT = 0x100, FL_CAP_ROUND = 0x200, FL_CAP_SQUARE = 0x300,
  FL_JOIN_MITER = 0x1000, FL_JOIN_ROUND = 0x2000, FL_JOIN_BEVEL = 0x3000
}

Functions

void fl_color (Fl_Color c)
void fl_color (int c)
void fl_color (uchar r, uchar g, uchar b)
Fl_Color fl_color ()
void fl_push_clip (int x, int y, int w, int h)
void fl_push_no_clip ()
void fl_pop_clip ()
int fl_not_clipped (int x, int y, int w, int h)
int fl_clip_box (int x, int y, int w, int h, int &X, int &Y, int &W, int &H)
void fl_restore_clip ()
FL_EXPORT void fl_clip_region (Fl_Region r)
Fl_Region fl_clip_region ()
void fl_point (int x, int y)
void fl_line_style (int style, int width=0, char *dashes=0)
void fl_rect (int x, int y, int w, int h)
void fl_rect (int x, int y, int w, int h, Fl_Color c)
void fl_rectf (int x, int y, int w, int h)
void fl_rectf (int x, int y, int w, int h, Fl_Color c)
FL_EXPORT void fl_rectf (int x, int y, int w, int h, uchar r, uchar g, uchar b)
void fl_line (int x, int y, int x1, int y1)
void fl_line (int x, int y, int x1, int y1, int x2, int y2)
void fl_loop (int x, int y, int x1, int y1, int x2, int y2)
void fl_loop (int x, int y, int x1, int y1, int x2, int y2, int x3, int y3)
void fl_polygon (int x, int y, int x1, int y1, int x2, int y2)
void fl_polygon (int x, int y, int x1, int y1, int x2, int y2, int x3, int y3)
void fl_xyline (int x, int y, int x1)
void fl_xyline (int x, int y, int x1, int y2)
void fl_xyline (int x, int y, int x1, int y2, int x3)
void fl_yxline (int x, int y, int y1)
void fl_yxline (int x, int y, int y1, int x2)
void fl_yxline (int x, int y, int y1, int x2, int y3)
void fl_arc (int x, int y, int w, int h, double a1, double a2)
void fl_pie (int x, int y, int w, int h, double a1, double a2)
FL_EXPORT void fl_chord (int x, int y, int w, int h, double a1, double a2)
FL_EXPORT void fl_push_matrix ()
FL_EXPORT void fl_pop_matrix ()
FL_EXPORT void fl_scale (double x, double y)
FL_EXPORT void fl_scale (double x)
FL_EXPORT void fl_translate (double x, double y)
FL_EXPORT void fl_rotate (double d)
FL_EXPORT void fl_mult_matrix (double a, double b, double c, double d, double x, double y)
void fl_begin_points ()
void fl_begin_line ()
void fl_begin_loop ()
void fl_begin_polygon ()
void fl_vertex (double x, double y)
void fl_curve (double X0, double Y0, double X1, double Y1, double X2, double Y2, double X3, double Y3)
void fl_arc (double x, double y, double r, double start, double end)
void fl_circle (double x, double y, double r)
void fl_end_points ()
void fl_end_line ()
void fl_end_loop ()
void fl_end_polygon ()
void fl_begin_complex_polygon ()
void fl_gap ()
void fl_end_complex_polygon ()
FL_EXPORT double fl_transform_x (double x, double y)
FL_EXPORT double fl_transform_y (double x, double y)
FL_EXPORT double fl_transform_dx (double x, double y)
FL_EXPORT double fl_transform_dy (double x, double y)
void fl_transformed_vertex (double xf, double yf)
void fl_font (Fl_Font face, Fl_Fontsize size)
Fl_Font fl_font ()
Fl_Fontsize fl_size ()
FL_EXPORT int fl_height ()
FL_EXPORT int fl_height (int font, int size)
FL_EXPORT int fl_descent ()
FL_EXPORT double fl_width (const char *txt)
FL_EXPORT double fl_width (const char *txt, int n)
FL_EXPORT double fl_width (unsigned int)
FL_EXPORT void fl_text_extents (const char *, int &dx, int &dy, int &w, int &h)
FL_EXPORT void fl_text_extents (const char *, int n, int &dx, int &dy, int &w, int &h)
FL_EXPORT const char * fl_latin1_to_local (const char *t, int n=-1)
FL_EXPORT const char * fl_local_to_latin1 (const char *t, int n=-1)
FL_EXPORT const char * fl_mac_roman_to_local (const char *t, int n=-1)
FL_EXPORT const char * fl_local_to_mac_roman (const char *t, int n=-1)
FL_EXPORT void fl_draw (const char *str, int x, int y)
FL_EXPORT void fl_draw (int angle, const char *str, int x, int y)
void fl_draw (const char *str, int n, int x, int y)
void fl_draw (int angle, const char *str, int n, int x, int y)
void fl_rtl_draw (const char *str, int n, int x, int y)
FL_EXPORT void fl_measure (const char *str, int &x, int &y, int draw_symbols=1)
FL_EXPORT 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)
FL_EXPORT 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)
FL_EXPORT void fl_frame (const char *s, int x, int y, int w, int h)
FL_EXPORT void fl_frame2 (const char *s, int x, int y, int w, int h)
FL_EXPORT void fl_draw_box (Fl_Boxtype, int x, int y, int w, int h, Fl_Color)
void fl_draw_image (const uchar *buf, int X, int Y, int W, int H, int D=3, int L=0)
void fl_draw_image_mono (const uchar *buf, int X, int Y, int W, int H, int D=1, int L=0)
void fl_draw_image (Fl_Draw_Image_Cb cb, void *data, int X, int Y, int W, int H, int D=3)
FL_EXPORT void fl_draw_image_mono (Fl_Draw_Image_Cb cb, void *data, int X, int Y, int W, int H, int D=1)
FL_EXPORT char fl_can_do_alpha_blending ()
FL_EXPORT ucharfl_read_image (uchar *p, int X, int Y, int W, int H, int alpha=0)
FL_EXPORT int fl_draw_pixmap (char *const *data, int x, int y, Fl_Color=FL_GRAY)
FL_EXPORT int fl_draw_pixmap (const char *const *cdata, int x, int y, Fl_Color=FL_GRAY)
FL_EXPORT int fl_measure_pixmap (char *const *data, int &w, int &h)
FL_EXPORT int fl_measure_pixmap (const char *const *cdata, int &w, int &h)
FL_EXPORT 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)
FL_EXPORT const char * fl_shortcut_label (unsigned int shortcut)
FL_EXPORT const char * fl_shortcut_label (unsigned int shortcut, const char **eom)
FL_EXPORT unsigned int fl_old_shortcut (const char *s)
FL_EXPORT void fl_overlay_rect (int x, int y, int w, int h)
FL_EXPORT void fl_overlay_clear ()
FL_EXPORT void fl_cursor (Fl_Cursor, Fl_Color fg=FL_BLACK, Fl_Color bg=FL_WHITE)
FL_EXPORT const char * fl_expand_text (const char *from, char *buf, int maxbuf, double maxw, int &n, double &width, int wrap, int draw_symbols=0)
FL_EXPORT void fl_set_status (int X, int Y, int W, int H)
FL_EXPORT void fl_set_spot (int font, int size, int X, int Y, int W, int H, Fl_Window *win=0)
FL_EXPORT void fl_reset_spot (void)
FL_EXPORT int fl_draw_symbol (const char *label, int x, int y, int w, int h, Fl_Color)
FL_EXPORT int fl_add_symbol (const char *name, void(*drawit)(Fl_Color), int scalable)

Variables

FL_EXPORT char fl_draw_shortcut
FL_EXPORT Fl_Color fl_color_
 The current color.
FL_EXPORT Fl_Font fl_font_
 current font index
FL_EXPORT Fl_Fontsize fl_size_
 current font size

Detailed Description

utility header to pull drawing functions together

Definition in file fl_draw.H.


Variable Documentation