mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 22:04:26 +08:00
Fixed Fl_X for Pico
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+18
-18
@@ -47,24 +47,24 @@ inline void fl_open_callback(void (*)(const char *)) {}
|
|||||||
|
|
||||||
// This object contains all platform-specific stuff about a window:
|
// This object contains all platform-specific stuff about a window:
|
||||||
// WARNING: this object is highly subject to change!
|
// WARNING: this object is highly subject to change!
|
||||||
class Fl_X {
|
//class Fl_X {
|
||||||
public:
|
//public:
|
||||||
Window xid; // pointer to the native window object (FLWindow*)
|
// Window xid; // pointer to the native window object (FLWindow*)
|
||||||
Fl_Offscreen other_xid; // pointer for offscreen bitmaps (overlay window)
|
// Fl_Offscreen other_xid; // pointer for offscreen bitmaps (overlay window)
|
||||||
Fl_Window *w; // FLTK window for
|
// Fl_Window *w; // FLTK window for
|
||||||
Fl_Region region;
|
// Fl_Region region;
|
||||||
Fl_X *next; // chain of mapped windows
|
// Fl_X *next; // chain of mapped windows
|
||||||
int wait_for_expose;
|
// int wait_for_expose;
|
||||||
static Fl_X* first;
|
// static Fl_X* first;
|
||||||
static Fl_X* i(const Fl_Window* w) {return w->i;}
|
// static Fl_X* i(const Fl_Window* w) {return w->i;}
|
||||||
static int fake_X_wm(const Fl_Window*,int&,int&,int&,int&,int&);
|
// static int fake_X_wm(const Fl_Window*,int&,int&,int&,int&,int&);
|
||||||
static Fl_X* make(Fl_Window*);
|
// static Fl_X* make(Fl_Window*);
|
||||||
void flush();
|
// void flush();
|
||||||
static void set_default_icons(const Fl_RGB_Image*[], int);
|
// static void set_default_icons(const Fl_RGB_Image*[], int);
|
||||||
void set_icons();
|
// void set_icons();
|
||||||
int set_cursor(Fl_Cursor);
|
// int set_cursor(Fl_Cursor);
|
||||||
int set_cursor(const Fl_RGB_Image*, int, int);
|
// int set_cursor(const Fl_RGB_Image*, int, int);
|
||||||
};
|
//};
|
||||||
|
|
||||||
extern Window fl_window;
|
extern Window fl_window;
|
||||||
|
|
||||||
|
|||||||
@@ -141,19 +141,19 @@ double Fl_PicoSDL_Screen_Driver::wait(double time_to_wait)
|
|||||||
#include <FL/Fl_Double_Window.H>
|
#include <FL/Fl_Double_Window.H>
|
||||||
#include <FL/Fl_Graphics_Driver.H>
|
#include <FL/Fl_Graphics_Driver.H>
|
||||||
|
|
||||||
int Fl_X::set_cursor(Fl_Cursor) { return 0; }
|
//int Fl_X::set_cursor(Fl_Cursor) { return 0; }
|
||||||
int Fl_X::set_cursor(Fl_RGB_Image const*, int, int) { return 0; }
|
//int Fl_X::set_cursor(Fl_RGB_Image const*, int, int) { return 0; }
|
||||||
|
|
||||||
Window fl_xid(const Fl_Window* w)
|
//Window fl_xid(const Fl_Window* w)
|
||||||
{
|
//{
|
||||||
Fl_X *temp = Fl_X::i(w);
|
// Fl_X *temp = Fl_X::i(w);
|
||||||
return temp ? temp->xid : 0;
|
// return temp ? temp->xid : 0;
|
||||||
}
|
//}
|
||||||
|
|
||||||
Fl_X* Fl_X::make(Fl_Window *w)
|
//Fl_X* Fl_X::make(Fl_Window *w)
|
||||||
{
|
//{
|
||||||
return w->driver()->makeWindow();
|
// return w->driver()->makeWindow();
|
||||||
}
|
//}
|
||||||
|
|
||||||
Window fl_window;
|
Window fl_window;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user