fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("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.

Macros

#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 ()
 
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)
 
void fl_push_matrix ()
 
void fl_pop_matrix ()
 
void fl_scale (double x, double y)
 
void fl_scale (double x)
 
void fl_translate (double x, double y)
 
void fl_rotate (double d)
 
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 ()
 
double fl_transform_x (double x, double y)
 
double fl_transform_y (double x, double y)
 
double fl_transform_dx (double x, double y)
 
double fl_transform_dy (double x, double y)
 
void fl_transformed_vertex (double xf, double yf)
 
void fl_font (Fl_Font face, Fl_Fontsize fsize)
 
Fl_Font fl_font ()
 
Fl_Fontsize fl_size ()
 
int fl_height ()
 
FL_EXPORT int fl_height (int font, int size)
 
int fl_descent ()
 
FL_EXPORT double fl_width (const char *txt)
 
double fl_width (const char *txt, int n)
 
double fl_width (unsigned int c)
 
FL_EXPORT 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)
 
const FL_EXPORT char * fl_latin1_to_local (const char *t, int n=-1)
 
const FL_EXPORT char * fl_local_to_latin1 (const char *t, int n=-1)
 
const FL_EXPORT char * fl_mac_roman_to_local (const char *t, int n=-1)
 
const FL_EXPORT 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)
 
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)
 
const FL_EXPORT char * fl_shortcut_label (unsigned int shortcut)
 
const FL_EXPORT 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_EXPORT void fl_cursor (Fl_Cursor, Fl_Color fg, Fl_Color bg=FL_WHITE)
 
const FL_EXPORT 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
 

Detailed Description

utility header to pull drawing functions together

Definition in file fl_draw.H.

Variable Documentation

◆ fl_draw_shortcut

FL_EXPORT char fl_draw_shortcut