FLTK 1.3.0
|
PostScript graphical backend. More...
#include <Fl_PostScript.H>
PostScript graphical backend.
PostScript text uses vectorial fonts for the latin alphabet (exactly: all unicode characters between U+0020 and U+017F, that is, ASCII, Latin-1 Supplement and Latin Extended-A charts) plus a few other characters:
Char | Codepoint | Name | Char | Codepoint | Name | Char | Codepoint | Name |
---|---|---|---|---|---|---|---|---|
ƒ | U+0192 | florin | ‚ | U+201A | quotesinglbase | ™ | U+2122 | trademark |
ˆ | U+02C6 | circumflex | “ | U+201C | quotedblleft | ∂ | U+2202 | partialdiff |
ˇ | U+02C7 | caron | ” | U+201D | quotedblright | Δ | U+2206 | Delta |
˘ | U+02D8 | breve | „ | U+201E | quotedblbase | ∑ | U+2211 | summation |
˙ | U+02D9 | dotaccent | † | U+2020 | dagger | √ | U+221A | radical |
˚ | U+02DA | ring | ‡ | U+2021 | daggerdbl | ∞ | U+221E | infinity |
˛ | U+02DB | ogonek | • | U+2022 | bullet | ≠ | U+2260 | notequal |
˜ | U+02DC | tilde | … | U+2026 | ellipsis | ≤ | U+2264 | lessequal |
˝ | U+02DD | hungarumlaut | ‰ | U+2030 | perthousand | ≥ | U+2265 | greaterequal |
– | U+2013 | endash | ‹ | U+2039 | guilsinglleft | ◊ | U+25CA | lozenge |
— | U+2014 | emdash | › | U+203A | guilsinglright | fi | U+FB01 | fi |
‘ | U+2018 | quoteleft | / | U+2044 | fraction | fl | U+FB02 | fl |
’ | U+2019 | quoteright | € | U+20AC | Euro | | U+F8FF | apple (Mac OS only) |
All other unicode characters are output as a bitmap.
FLTK standard fonts are output using PostScript standard fonts: Helvetica, Courier, Times (and their bold, oblique, italic variants).
The destructor.
void Fl_PostScript_Graphics_Driver::arc | ( | double | x, |
double | y, | ||
double | r, | ||
double | start, | ||
double | end | ||
) | [virtual] |
see fl_arc(double x, double y, double r, double start, double end).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::arc | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
double | a1, | ||
double | a2 | ||
) | [virtual] |
see fl_arc(int x, int y, int w, int h, double a1, double a2).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::begin_complex_polygon | ( | ) | [inline, virtual] |
see fl_begin_complex_polygon().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::begin_line | ( | ) | [virtual] |
see fl_begin_line().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::begin_loop | ( | ) | [virtual] |
see fl_begin_loop().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::begin_points | ( | ) | [virtual] |
see fl_begin_points().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::begin_polygon | ( | ) | [virtual] |
see fl_begin_polygon().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::circle | ( | double | x, |
double | y, | ||
double | r | ||
) | [virtual] |
see fl_circle(double x, double y, double r).
Reimplemented from Fl_Graphics_Driver.
const char* Fl_PostScript_Graphics_Driver::class_name | ( | ) | [inline, virtual] |
Returns the name of the class of this object.
Use of the class_name() function is discouraged because it will be removed from future FLTK versions.
The class of an instance of an Fl_Device subclass can be checked with code such as:
if ( instance->class_name() == Fl_Printer::class_id ) { ... }
Reimplemented from Fl_Graphics_Driver.
int Fl_PostScript_Graphics_Driver::clip_box | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
int & | X, | ||
int & | Y, | ||
int & | W, | ||
int & | H | ||
) | [virtual] |
see fl_clip_box(int x, int y, int w, int h, int &X, int &Y, int &W, int &H).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::color | ( | Fl_Color | c | ) | [virtual] |
see fl_color(Fl_Color c).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::color | ( | uchar | r, |
uchar | g, | ||
uchar | b | ||
) | [virtual] |
see fl_color(uchar r, uchar g, uchar b).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::curve | ( | double | X0, |
double | Y0, | ||
double | X1, | ||
double | Y1, | ||
double | X2, | ||
double | Y2, | ||
double | X3, | ||
double | Y3 | ||
) | [virtual] |
int Fl_PostScript_Graphics_Driver::descent | ( | ) | [virtual] |
see fl_descent().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw | ( | const char * | str, |
int | n, | ||
int | x, | ||
int | y | ||
) | [inline, virtual] |
see fl_draw(const char *str, int n, int x, int y).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw | ( | int | angle, |
const char * | str, | ||
int | n, | ||
int | x, | ||
int | y | ||
) | [virtual] |
see fl_draw(int angle, const char *str, int n, int x, int y).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw | ( | Fl_Pixmap * | pxm, |
int | XP, | ||
int | YP, | ||
int | WP, | ||
int | HP, | ||
int | cx, | ||
int | cy | ||
) | [virtual] |
Draws an Fl_Pixmap object to the device.
Specifies a bounding box for the image, with the origin (upper left-hand corner) of the image offset by the cx and cy arguments.
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw | ( | Fl_Bitmap * | bm, |
int | XP, | ||
int | YP, | ||
int | WP, | ||
int | HP, | ||
int | cx, | ||
int | cy | ||
) | [virtual] |
Draws an Fl_Bitmap object to the device.
Specifies a bounding box for the image, with the origin (upper left-hand corner) of the image offset by the cx and cy arguments.
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw | ( | Fl_RGB_Image * | rgb, |
int | XP, | ||
int | YP, | ||
int | WP, | ||
int | HP, | ||
int | cx, | ||
int | cy | ||
) | [virtual] |
Draws an Fl_RGB_Image object to the device.
Specifies a bounding box for the image, with the origin (upper left-hand corner) of the image offset by the cx and cy arguments.
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw_image | ( | const uchar * | buf, |
int | X, | ||
int | Y, | ||
int | W, | ||
int | H, | ||
int | D = 3 , |
||
int | L = 0 |
||
) | [virtual] |
see fl_draw_image(const uchar* buf, int X,int Y,int W,int H, int D, int L).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw_image | ( | Fl_Draw_Image_Cb | cb, |
void * | data, | ||
int | X, | ||
int | Y, | ||
int | W, | ||
int | H, | ||
int | D = 3 |
||
) | [virtual] |
see fl_draw_image(Fl_Draw_Image_Cb cb, void* data, int X,int Y,int W,int H, int D).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw_image_mono | ( | const uchar * | buf, |
int | X, | ||
int | Y, | ||
int | W, | ||
int | H, | ||
int | D = 1 , |
||
int | L = 0 |
||
) | [virtual] |
see fl_draw_image_mono(const uchar* buf, int X,int Y,int W,int H, int D, int L).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::draw_image_mono | ( | Fl_Draw_Image_Cb | cb, |
void * | data, | ||
int | X, | ||
int | Y, | ||
int | W, | ||
int | H, | ||
int | D = 1 |
||
) | [virtual] |
see fl_draw_image_mono(Fl_Draw_Image_Cb cb, void* data, int X,int Y,int W,int H, int D).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::end_complex_polygon | ( | ) | [inline, virtual] |
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::end_line | ( | ) | [virtual] |
see fl_end_line().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::end_loop | ( | ) | [virtual] |
see fl_end_loop().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::end_points | ( | ) | [virtual] |
see fl_end_points().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::end_polygon | ( | ) | [virtual] |
see fl_end_polygon().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::font | ( | int | face, |
int | fsize | ||
) | [virtual] |
see fl_font(Fl_Font face, Fl_Fontsize size).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::gap | ( | ) | [inline, virtual] |
see fl_gap().
Reimplemented from Fl_Graphics_Driver.
int Fl_PostScript_Graphics_Driver::height | ( | ) | [virtual] |
see fl_height().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::line | ( | int | x, |
int | y, | ||
int | x1, | ||
int | y1 | ||
) | [virtual] |
see fl_line(int x, int y, int x1, int y1).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::line | ( | int | x, |
int | y, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 | ||
) | [virtual] |
see fl_line(int x, int y, int x1, int y1, int x2, int y2).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::line_style | ( | int | style, |
int | width = 0 , |
||
char * | dashes = 0 |
||
) | [virtual] |
see fl_line_style(int style, int width, char* dashes).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::loop | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 | ||
) | [virtual] |
see fl_loop(int x0, int y0, int x1, int y1, int x2, int y2).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::loop | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | x3, | ||
int | y3 | ||
) | [virtual] |
see fl_loop(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3).
Reimplemented from Fl_Graphics_Driver.
int Fl_PostScript_Graphics_Driver::not_clipped | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) | [virtual] |
see fl_not_clipped(int x, int y, int w, int h).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::pie | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
double | a1, | ||
double | a2 | ||
) | [virtual] |
see fl_pie(int x, int y, int w, int h, double a1, double a2).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::point | ( | int | x, |
int | y | ||
) | [virtual] |
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::polygon | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 | ||
) | [virtual] |
see fl_polygon(int x0, int y0, int x1, int y1, int x2, int y2).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::polygon | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2, | ||
int | x3, | ||
int | y3 | ||
) | [virtual] |
see fl_polygon(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::pop_clip | ( | ) | [virtual] |
see fl_pop_clip().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::push_clip | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) | [virtual] |
see fl_push_clip(int x, int y, int w, int h).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::push_no_clip | ( | ) | [virtual] |
see fl_push_no_clip().
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::rect | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) | [virtual] |
see fl_rect(int x, int y, int w, int h).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::rectf | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) | [virtual] |
see fl_rectf(int x, int y, int w, int h).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::rtl_draw | ( | const char * | str, |
int | n, | ||
int | x, | ||
int | y | ||
) | [virtual] |
see fl_rtl_draw(const char *str, int n, int x, int y).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::text_extents | ( | const char * | t, |
int | n, | ||
int & | dx, | ||
int & | dy, | ||
int & | w, | ||
int & | h | ||
) | [virtual] |
see fl_text_extents(const char*, int n, int& dx, int& dy, int& w, int& h).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::transformed_vertex | ( | double | xf, |
double | yf | ||
) | [virtual] |
see fl_transformed_vertex(double xf, double yf).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::vertex | ( | double | x, |
double | y | ||
) | [virtual] |
see fl_vertex(double x, double y).
Reimplemented from Fl_Graphics_Driver.
double Fl_PostScript_Graphics_Driver::width | ( | const char * | str, |
int | n | ||
) | [virtual] |
see fl_width(const char *str, int n).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::xyline | ( | int | x, |
int | y, | ||
int | x1 | ||
) | [virtual] |
see fl_xyline(int x, int y, int x1).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::xyline | ( | int | x, |
int | y, | ||
int | x1, | ||
int | y2 | ||
) | [virtual] |
see fl_xyline(int x, int y, int x1, int y2).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::xyline | ( | int | x, |
int | y, | ||
int | x1, | ||
int | y2, | ||
int | x3 | ||
) | [virtual] |
see fl_xyline(int x, int y, int x1, int y2, int x3).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::yxline | ( | int | x, |
int | y, | ||
int | y1 | ||
) | [virtual] |
see fl_yxline(int x, int y, int y1).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::yxline | ( | int | x, |
int | y, | ||
int | y1, | ||
int | x2 | ||
) | [virtual] |
see fl_yxline(int x, int y, int y1, int x2).
Reimplemented from Fl_Graphics_Driver.
void Fl_PostScript_Graphics_Driver::yxline | ( | int | x, |
int | y, | ||
int | y1, | ||
int | x2, | ||
int | y3 | ||
) | [virtual] |
see fl_yxline(int x, int y, int y1, int x2, int y3).
Reimplemented from Fl_Graphics_Driver.
const char * Fl_PostScript_Graphics_Driver::class_id = "Fl_PostScript_Graphics_Driver" [static] |
A string that identifies each subclass of Fl_Device.
Function class_name() applied to a device of this class returns this string.
Reimplemented from Fl_Graphics_Driver.