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) 
|
Go to the documentation of this file. 91 #define fl_clip fl_push_clip 227 inline void fl_line(
int x,
int y,
int x1,
int y1,
int x2,
int y2) {
fl_graphics_driver->
line(
x,
y,x1,y1,x2,y2); }
233 inline void fl_loop(
int x,
int y,
int x1,
int y1,
int x2,
int y2) {
fl_graphics_driver->
loop(
x,
y,x1,y1,x2,y2); }
237 inline void fl_loop(
int x,
int y,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3)
244 inline void fl_polygon(
int x,
int y,
int x1,
int y1,
int x2,
int y2) {
fl_graphics_driver->
polygon(
x,
y,x1,y1,x2,y2); }
248 inline void fl_polygon(
int x,
int y,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3)
304 inline void fl_arc(
int x,
int y,
int w,
int h,
double a1,
double a2) {
fl_graphics_driver->
arc(
x,
y,
w,
h,a1,a2); }
317 inline void fl_pie(
int x,
int y,
int w,
int h,
double a1,
double a2) {
fl_graphics_driver->
pie(
x,
y,
w,
h,a1,a2); }
388 inline void fl_curve(
double X0,
double Y0,
double X1,
double Y1,
double X2,
double Y2,
double X3,
double Y3)
634 int draw_symbols = 1);
637 Fl_Image* img=0,
int draw_symbols = 1);
640 void (*callthis)(
const char *,
int,
int,
int),
641 Fl_Image* img=0,
int draw_symbols = 1);
774 void (*draw_area)(
void*,
int,
int,
int,
int),
void*
data);
783 double maxw,
int& n,
double &width,
784 int wrap,
int draw_symbols = 0);
virtual void draw_image(const uchar *buf, int X, int Y, int W, int H, int D=3, int L=0)
see fl_draw_image(const uchar* buf, int X,int Y,int W,int H, int D, int L).
virtual void curve(double X0, double Y0, double X1, double Y1, double X2, double Y2, double X3, double Y3)
see fl_curve(double X0, double Y0, double X1, double Y1, double X2, double Y2, double X3,...
double fl_transform_dx(double x, double y)
virtual void point(int x, int y)
see fl_point(int x, int y).
FL_EXPORT void fl_overlay_rect(int x, int y, int w, int h)
int fl_not_clipped(int x, int y, int w, int h)
void fl_font(Fl_Font face, Fl_Fontsize fsize)
FL_EXPORT double fl_width(const char *txt)
FL_EXPORT unsigned int fl_old_shortcut(const char *s)
virtual void pop_clip()
see fl_pop_clip().
cap style: end wraps end point
void fl_line(int x, int y, int x1, int y1)
void fl_rectf(int x, int y, int w, int h)
const FL_EXPORT char * fl_shortcut_label(unsigned int shortcut)
virtual void line(int x, int y, int x1, int y1)
see fl_line(int x, int y, int x1, int y1).
join style: line join is tidied
void fl_begin_complex_polygon()
const char *const * data() const
Base class for image caching and drawing.
FL_EXPORT void fl_set_spot(int font, int size, int X, int Y, int W, int H, Fl_Window *win=0)
FL_EXPORT char fl_can_do_alpha_blending()
double transform_dx(double x, double y)
see fl_transform_dx(double x, double y).
void fl_color(Fl_Color c)
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)
virtual void font(Fl_Font face, Fl_Fontsize fsize)
see fl_font(Fl_Font face, Fl_Fontsize size).
virtual void end_complex_polygon()
see fl_end_complex_polygon().
void fl_point(int x, int y)
FL_EXPORT void fl_draw(const char *str, int x, int y)
void scale(double x, double y)
see fl_scale(double x, double y).
virtual void end_points()
see fl_end_points().
void fl_transformed_vertex(double xf, double yf)
virtual double width(const char *str, int n)
see fl_width(const char *str, int n).
virtual void push_no_clip()
see fl_push_no_clip().
FL_EXPORT int fl_draw_symbol(const char *label, int x, int y, int w, int h, Fl_Color)
virtual void end_loop()
see fl_end_loop().
void fl_translate(double x, double y)
void rotate(double d)
see fl_rotate(double d).
void fl_draw_image(const uchar *buf, int X, int Y, int W, int H, int D=3, int L=0)
const FL_EXPORT char * fl_local_to_mac_roman(const char *t, int n=-1)
FL_EXPORT void fl_text_extents(const char *, int &dx, int &dy, int &w, int &h)
virtual void pie(int x, int y, int w, int h, double a1, double a2)
see fl_pie(int x, int y, int w, int h, double a1, double a2).
virtual void yxline(int x, int y, int y1)
see fl_yxline(int x, int y, int y1).
virtual void draw(const char *str, int n, int x, int y)
see fl_draw(const char *str, int n, int x, int y).
void fl_circle(double x, double y, double r)
void fl_mult_matrix(double a, double b, double c, double d, double x, double y)
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)
virtual void arc(double x, double y, double r, double start, double end)
see fl_arc(double x, double y, double r, double start, double end).
void fl_xyline(int x, int y, int x1)
void fl_loop(int x, int y, int x1, int y1, int x2, int y2)
virtual void circle(double x, double y, double r)
see fl_circle(double x, double y, double r).
FL_EXPORT int fl_measure_pixmap(char *const *data, int &w, int &h)
FL_EXPORT void fl_chord(int x, int y, int w, int h, double a1, double a2)
FL_EXPORT int fl_add_symbol(const char *name, void(*drawit)(Fl_Color), int scalable)
int fl_clip_box(int x, int y, int w, int h, int &X, int &Y, int &W, int &H)
double transform_dy(double x, double y)
see fl_transform_dy(double x, double y).
virtual void push_clip(int x, int y, int w, int h)
see fl_push_clip(int x, int y, int w, int h).
virtual void color(Fl_Color c)
see fl_color(Fl_Color c).
FL_EXPORT uchar * fl_read_image(uchar *p, int X, int Y, int W, int H, int alpha=0)
join style: line join extends to a point
double fl_transform_dy(double x, double y)
virtual void text_extents(const char *, int n, int &dx, int &dy, int &w, int &h)
see fl_text_extents(const char*, int n, int& dx, int& dy, int& w, int& h).
void fl_curve(double X0, double Y0, double X1, double Y1, double X2, double Y2, double X3, double Y3)
FL_EXPORT void fl_cursor(Fl_Cursor)
FL_EXPORT void fl_measure(const char *str, int &x, int &y, int draw_symbols=1)
void restore_clip()
see fl_restore_clip().
void fl_arc(int x, int y, int w, int h, double a1, double a2)
virtual int clip_box(int x, int y, int w, int h, int &X, int &Y, int &W, int &H)
see fl_clip_box(int x, int y, int w, int h, int &X, int &Y, int &W, int &H).
virtual void begin_loop()
see fl_begin_loop().
void fl_line_style(int style, int width=0, char *dashes=0)
double fl_transform_x(double x, double y)
void fl_draw_image_mono(const uchar *buf, int X, int Y, int W, int H, int D=1, int L=0)
FL_EXPORT void fl_set_status(int X, int Y, int W, int H)
static void cb(Fl_Widget *, void *v)
void fl_push_clip(int x, int y, int w, int h)
void fl_pie(int x, int y, int w, int h, double a1, double a2)
virtual void loop(int x0, int y0, int x1, int y1, int x2, int y2)
see fl_loop(int x0, int y0, int x1, int y1, int x2, int y2).
virtual void xyline(int x, int y, int x1)
see fl_xyline(int x, int y, int x1).
FL_EXPORT char fl_draw_shortcut
void fl_yxline(int x, int y, int y1)
struct flCocoaRegion * Fl_Region
virtual int height()
see fl_height().
FL_EXPORT Fl_Graphics_Driver * fl_graphics_driver
Points to the driver that currently receives all graphics requests.
double transform_y(double x, double y)
see fl_transform_y(double x, double y).
virtual void rectf(int x, int y, int w, int h)
see fl_rectf(int x, int y, int w, int h).
declaration of classes Fl_Device, Fl_Graphics_Driver, Fl_Surface_Device, Fl_Display_Device,...
void mult_matrix(double a, double b, double c, double d, double x, double y)
see fl_mult_matrix(double a, double b, double c, double d, double x, double y).
FL_EXPORT void fl_reset_spot(void)
const FL_EXPORT char * fl_local_to_latin1(const char *t, int n=-1)
FL_EXPORT void fl_draw_box(Fl_Boxtype, int x, int y, int w, int h, Fl_Color)
const FL_EXPORT char * fl_latin1_to_local(const char *t, int n=-1)
FL_EXPORT void fl_overlay_clear()
virtual int descent()
see fl_descent().
double transform_x(double x, double y)
see fl_transform_x(double x, double y).
virtual void end_line()
see fl_end_line().
Fl_Region clip_region()
see fl_clip_region().
virtual void draw_image_mono(const uchar *buf, int X, int Y, int W, int H, int D=1, int L=0)
see fl_draw_image_mono(const uchar* buf, int X,int Y,int W,int H, int D, int L).
FL_EXPORT int fl_draw_pixmap(char *const *data, int x, int y, Fl_Color=FL_GRAY)
void fl_clip_region(Fl_Region r)
virtual void begin_points()
see fl_begin_points().
virtual void vertex(double x, double y)
see fl_vertex(double x, double y).
Fl_Fontsize size()
see fl_size().
virtual void rtl_draw(const char *str, int n, int x, int y)
see fl_rtl_draw(const char *str, int n, int x, int y).
virtual void end_polygon()
see fl_end_polygon().
virtual void transformed_vertex(double xf, double yf)
see fl_transformed_vertex(double xf, double yf).
void(* Fl_Draw_Image_Cb)(void *data, int x, int y, int w, uchar *buf)
join style: line join is rounded
virtual void rect(int x, int y, int w, int h)
see fl_rect(int x, int y, int w, int h).
double fl_transform_y(double x, double y)
virtual void label(Fl_Widget *w)
void pop_matrix()
see fl_pop_matrix().
virtual void polygon(int x0, int y0, int x1, int y1, int x2, int y2)
see fl_polygon(int x0, int y0, int x1, int y1, int x2, int y2).
void fl_vertex(double x, double y)
FL_EXPORT void fl_frame(const char *s, int x, int y, int w, int h)
const FL_EXPORT char * fl_mac_roman_to_local(const char *t, int n=-1)
void fl_end_complex_polygon()
virtual void begin_polygon()
see fl_begin_polygon().
virtual int not_clipped(int x, int y, int w, int h)
see fl_not_clipped(int x, int y, int w, int h).
static int start(Fl_RGB_Image *img, int XP, int YP, int WP, int HP, int w, int h, int &cx, int &cy, int &X, int &Y, int &W, int &H)
virtual void begin_complex_polygon()
see fl_begin_complex_polygon().
void push_matrix()
see fl_push_matrix().
void fl_rtl_draw(const char *str, int n, int x, int y)
virtual void gap()
see fl_gap().
void translate(double x, double y)
see fl_translate(double x, double y).
virtual void line_style(int style, int width=0, char *dashes=0)
see fl_line_style(int style, int width, char* dashes).
virtual void begin_line()
see fl_begin_line().
FL_EXPORT void fl_frame2(const char *s, int x, int y, int w, int h)
void fl_polygon(int x, int y, int x1, int y1, int x2, int y2)
void fl_scale(double x, double y)
void fl_rect(int x, int y, int w, int h)