mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 07:26:57 +08:00
Set more accurately the protections of the members of class Fl_Display_Device.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+2
-5
@@ -77,14 +77,11 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
A display to which the computer can draw.
|
A display to which the computer can draw.
|
||||||
When the program begins running, an Fl_Display_Device instance has been created and made the current drawing surface.
|
When the program begins running, an object of class Fl_Display_Device has been created and made the current drawing surface.
|
||||||
There is no need to create any other object of this class.
|
|
||||||
*/
|
*/
|
||||||
class FL_EXPORT Fl_Display_Device : public Fl_Surface_Device {
|
class FL_EXPORT Fl_Display_Device : public Fl_Surface_Device {
|
||||||
friend class Fl_Graphics_Driver;
|
|
||||||
static Fl_Display_Device *_display; // the platform display device
|
|
||||||
public:
|
|
||||||
Fl_Display_Device(Fl_Graphics_Driver *graphics_driver);
|
Fl_Display_Device(Fl_Graphics_Driver *graphics_driver);
|
||||||
|
public:
|
||||||
static Fl_Display_Device *display_device();
|
static Fl_Display_Device *display_device();
|
||||||
static bool high_resolution();
|
static bool high_resolution();
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-5
@@ -72,7 +72,7 @@ Fl_Display_Device::Fl_Display_Device(Fl_Graphics_Driver *graphics_driver) : Fl_S
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** Returns the platform display device. */
|
/** Returns a pointer to the unique display device */
|
||||||
Fl_Display_Device *Fl_Display_Device::display_device() {
|
Fl_Display_Device *Fl_Display_Device::display_device() {
|
||||||
static Fl_Display_Device *display = new Fl_Display_Device(Fl_Graphics_Driver::newMainGraphicsDriver());
|
static Fl_Display_Device *display = new Fl_Display_Device(Fl_Graphics_Driver::newMainGraphicsDriver());
|
||||||
return display;
|
return display;
|
||||||
@@ -89,10 +89,6 @@ Fl_Surface_Device *Fl_Surface_Device::default_surface()
|
|||||||
return Fl_Display_Device::display_device();
|
return Fl_Display_Device::display_device();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Fl_Display_Device *Fl_Display_Device::_display;
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id$".
|
// End of "$Id$".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user