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.cxx File Reference

#include <FL/fl_utf8.h>
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Image.H>
#include "flstring.h"
#include <ctype.h>
#include <math.h>
Include dependency graph for fl_draw.cxx:

Go to the source code of this file.

Defines

#define min(a, b)   ((a)<(b)?(a):(b))
#define MAXBUF   1024
#define C_IN(c, a, b)   ((c)>=(a) && (c)<=(b))
#define C_UTF8(c)   C_IN(c,0x80,0xBF)

Functions

const char * fl_expand_text (const char *from, char *buf, int maxbuf, double maxw, int &n, double &width, int wrap, int draw_symbols)
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, int draw_symbols)
void fl_draw (const char *str, int x, int y, int w, int h, Fl_Align align, Fl_Image *img, int draw_symbols)
void fl_measure (const char *str, int &w, int &h, int draw_symbols)
int fl_height (int font, int size)

Variables

char fl_draw_shortcut

Define Documentation

#define C_IN (   c,
  a,
  b 
)    ((c)>=(a) && (c)<=(b))

utf8 multibyte char seq. detection an pass-thru routine.

Return values:
falseif no utf8 seq detected, no change made. true if utf8 and d copied with s seq. note that for n bytes copied dest incremented of n, but s of n-1 for compatible loop use see below.

Definition at line 56 of file fl_draw.cxx.

#define C_UTF8 (   c)    C_IN(c,0x80,0xBF)

Definition at line 57 of file fl_draw.cxx.

#define MAXBUF   1024

Definition at line 45 of file fl_draw.cxx.

Referenced by fl_draw(), and fl_measure().


Variable Documentation