windrv.h Source File

Main Page Class Hierarchy Compound List File List Compound Members

# windrv.h

    00001
    00002
    00003 /*
    00004 Program WINDRV.H
    00005 Purpose Window maintaining a double buffer for drawing
    00006 */
    00007
    00008 #ifndef _WIN_DRIVER
    00009 #define _WIN_DRIVER
    00010
    00011 #ifdef __GNUG__
    00012 #pragma interface
    00013 #endif
    00014
    00015 #define NR_PATTERNS 72
    00016
    00017 #include "gdserr.h"
    00018 #include "scrndrv.h"
    00019 #include "lsetup.h"
    00020 #include "gdsii.h"
    00021 #include "mainwin.h"
    00022 #include "wxwin.h"
    00023
    00024 class GDSMainWindow;
    00025
    00027
    00040 class Canvas: public wxWindow
    00041 {
    00042         public:
    00044                 Canvas(GDSMainWindow* parent, int , int , int , int , long , char*);
    00045
    00046                 ~Canvas(void);
    00047
    00049                 bool Pending();
    00050
    00052                 void    OnChar(wxKeyEvent& event);
    00054                 void    OnKeyDown(wxKeyEvent& event);
    00056                 void    OnKeyUp(wxKeyEvent& event);
    00058                 void    OnMouseEvent(wxMouseEvent& event);
    00060                 void    OnPaint(wxPaintEvent&);
    00061
    00063                 void  SetBackGroundColor(long color);
    00064
    00066       wxBitmap* GetCanvasBitmap();
    00067
    00071       void Set_Valid_drawing(bool value);
    00072
    00074       bool Get_Valid_drawing();
    00075
    00079       void Update();
    00080
    00082       void ScrollIt(double xy,bool vertical);
    00083
    00085       void OnSize(wxSizeEvent& event);
    00086
    00088       void AdjustScrollBars(int posx,int dx, int totx,int posy,int dy, int toty);
    00089
    00091       void OnScroll(wxScrollWinEvent& event);
    00092
    00093
    00094         private:
    00095
    00097                 void                            ltowxc(long l,wxColour& color);
    00098
    00100                 wxBitmap*               _backup;
    00101
    00103                 int                                     _w,_h;
    00104
    00106       bool                      m_valid_drawing;
    00107
    00108
    00109         public:
    00110       DECLARE_EVENT_TABLE()
    00111
    00112
    00113 };
    00114
    00115 #endif
    00116

windrv.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page