diff options
| author | Manolo Gouy <Manolo> | 2010-07-01 13:21:32 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-07-01 13:21:32 +0000 |
| commit | 61eb9377c83d73c19e5561dc8561bb7d956e1ef9 (patch) | |
| tree | 4edc6092899920b7f57d41c901555a47fdf73cf2 /FL/Fl_Device.H | |
| parent | 737816b18b7b4b0f8f7292fd0f9a6ba26fa28f48 (diff) | |
Renamed global variable from fl_device to fl_graphics_driver to better express its class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Device.H')
| -rw-r--r-- | FL/Fl_Device.H | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 6b52ae674..569f3b178 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -49,7 +49,7 @@ class Fl_Graphics_Driver; class Fl_Display_Device; class Fl_Surface_Device; /** \brief Points to the driver that currently receives all graphics requests */ -extern Fl_Graphics_Driver *fl_device; +extern Fl_Graphics_Driver *fl_graphics_driver; /** \brief Points to the surface that currently receives all graphics requests */ extern Fl_Surface_Device *fl_surface; /** \brief Points to the platform's display */ @@ -97,9 +97,10 @@ public: <br> The preferred FLTK API for drawing operations is the function collection of the \ref fl_drawings and \ref fl_attributes modules. <br> Alternatively, methods of the Fl_Graphics_Driver class can be called - using the global variable Fl_Graphics_Driver * \ref fl_device that points at all time to the single driver - (an instance of an Fl_Graphics_Driver subclass) that's currently receiving graphics requests: - \code fl_device->rect(x, y, w, h); \endcode + using the global variable Fl_Graphics_Driver * \ref fl_graphics_driver that points at all time to + the single driver (an instance of an Fl_Graphics_Driver subclass) that's currently receiving graphics + requests. For example: + \code fl_graphics_driver->rect(x, y, w, h); \endcode <br>Each protected method of the Fl_Graphics_Driver class has the same effect as the function of the \ref fl_drawings and \ref fl_attributes modules which bears the same name prefixed with fl_ and has the same parameter list. |
