From 61eb9377c83d73c19e5561dc8561bb7d956e1ef9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 1 Jul 2010 13:21:32 +0000 Subject: 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 --- FL/Fl_Device.H | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'FL/Fl_Device.H') 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:
The preferred FLTK API for drawing operations is the function collection of the \ref fl_drawings and \ref fl_attributes modules.
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
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. -- cgit v1.2.3