FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Attributes
Fl_GDI_Graphics_Driver Class Reference

The MSWindows-specific graphics class. More...

`#include <Fl_Device.H>`

Inheritance diagram for Fl_GDI_Graphics_Driver:

List of all members.

## Public Member Functions
const char * | class_name ()
| Returns the name of the class of this object.
void | color (Fl_Color c)
| see fl_color(Fl_Color c).
void | color (uchar r, uchar g, uchar b)
| see fl_color(uchar r, uchar g, uchar b).
void | copy_offscreen (int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy)
| see fl_copy_offscreen()
int | descent ()
| see fl_descent().
void | draw (const char *str, int n, int x, int y)
| see fl_draw(const char *str, int n, int x, int y).
void | draw (int angle, const char *str, int n, int x, int y)
| see fl_draw(int angle, const char *str, int n, int x, int y).
void | draw (Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy)
| Draws an Fl_Pixmap object to the device.
void | draw (Fl_Bitmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy)
| Draws an Fl_Bitmap object to the device.
void | draw (Fl_RGB_Image *img, int XP, int YP, int WP, int HP, int cx, int cy)
| Draws an Fl_RGB_Image object to the device.
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).
void | draw_image (Fl_Draw_Image_Cb cb, void *data, int X, int Y, int W, int H, int D=3)
| see fl_draw_image(Fl_Draw_Image_Cb cb, void* data, int X,int Y,int W,int H, int D).
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).
void | draw_image_mono (Fl_Draw_Image_Cb cb, void *data, int X, int Y, int W, int H, int D=1)
| see fl_draw_image_mono(Fl_Draw_Image_Cb cb, void* data, int X,int Y,int W,int H, int D).
void | font (Fl_Font face, Fl_Fontsize size)
| see fl_font(Fl_Font face, Fl_Fontsize size).
int | height ()
| see fl_height().
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).
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).
double | width (const char *str, int n)
| see fl_width(const char *str, int n).
double | width (unsigned int c)
| see fl_width(unsigned int n).
## Static Public Attributes
static const char * | class_id = "Fl_GDI_Graphics_Driver"
| A string that identifies each subclass of Fl_Device.

## Detailed Description

The MSWindows-specific graphics class.

This class is implemented only on the MSWindows platform.

## Member Function Documentation

const char* Fl_GDI_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.

Reimplemented in Fl_GDI_Printer_Graphics_Driver.

void Fl_GDI_Graphics_Driver::color | ( | Fl_Color | c | ) | `[virtual]`

see fl_color(Fl_Color c).

Reimplemented from Fl_Graphics_Driver.

void Fl_GDI_Graphics_Driver::color | ( | uchar | r,
|  | uchar | g,
|  | uchar | b
| ) |  | `[virtual]`

see fl_color(uchar r, uchar g, uchar b).

Reimplemented from Fl_Graphics_Driver.

int Fl_GDI_Graphics_Driver::descent | ( |  | ) | `[virtual]`

see fl_descent().

Reimplemented from Fl_Graphics_Driver.

void Fl_GDI_Graphics_Driver::draw | ( | const char * | str,
|  | int | n,
|  | int | x,
|  | int | y
| ) |  | `[virtual]`

see fl_draw(const char *str, int n, int x, int y).

Reimplemented from Fl_Graphics_Driver.

void Fl_GDI_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_GDI_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.

Reimplemented in Fl_GDI_Printer_Graphics_Driver.

void Fl_GDI_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_GDI_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_GDI_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_GDI_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_GDI_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_GDI_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_GDI_Graphics_Driver::font | ( | Fl_Font | face,
|  | Fl_Fontsize | fsize
| ) |  | `[virtual]`

see fl_font(Fl_Font face, Fl_Fontsize size).

Reimplemented from Fl_Graphics_Driver.

int Fl_GDI_Graphics_Driver::height | ( |  | ) | `[virtual]`

see fl_height().

Reimplemented from Fl_Graphics_Driver.

void Fl_GDI_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_GDI_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.

double Fl_GDI_Graphics_Driver::width | ( | const char * | str,
|  | int | n
| ) |  | `[virtual]`

see fl_width(const char *str, int n).

Reimplemented from Fl_Graphics_Driver.

double Fl_GDI_Graphics_Driver::width | ( | unsigned int | c | ) | `[virtual]`

see fl_width(unsigned int n).

Reimplemented from Fl_Graphics_Driver.

## Member Data Documentation

const char * Fl_GDI_Graphics_Driver::class_id = "Fl_GDI_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.

Reimplemented in Fl_GDI_Printer_Graphics_Driver.

The documentation for this class was generated from the following files:

- Fl_Device.H
- fl_color_win32.cxx
- Fl_Device.cxx
- fl_draw_image_win32.cxx