From 6284720098cb3682f950db427c95ac87c2a10b3c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 28 Mar 2016 09:25:11 +0000 Subject: Rewrite file src/Fl_arg.cxx under the driver model. Begin giving flesh to the Fl_System_Driver class. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_System_Driver.H | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 81128fdcf..bf11d440c 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -54,9 +54,22 @@ typedef struct _XRegion *Fl_Region; \brief A base class for platform specific window handling code. */ class FL_EXPORT Fl_System_Driver { -public: +protected: Fl_System_Driver(); +public: virtual ~Fl_System_Driver(); + static Fl_System_Driver *driver(); + static const int flNoValue; + static const int flWidthValue; + static const int flHeightValue; + static const int flXValue; + static const int flYValue; + static const int flXNegative; + static const int flYNegative; + virtual int single_arg(const char *arg) { return 0; } + virtual int arg_and_value(const char *name, const char *value) { return 0; } + virtual void display_arg(const char *arg) { } + virtual int XParseGeometry(const char*, int*, int*, unsigned int*, unsigned int*); }; #endif // FL_SYSTEM_DRIVER_H -- cgit v1.2.3