xgeprivate.h

Go to the documentation of this file.
00001 
00002 /* ///////////////////////////////////////////////////////////////////////// */
00003 /* This file is a part of the BSTools package                                */
00004 /* written by Przemyslaw Kiciak                                              */
00005 /* ///////////////////////////////////////////////////////////////////////// */
00006 /* (C) Copyright by Przemyslaw Kiciak, 2007, 2011                            */
00007 /* this package is distributed under the terms of the                        */
00008 /* Lesser GNU Public License, see the file COPYING.LIB                       */
00009 /* ///////////////////////////////////////////////////////////////////////// */
00010 
00011 #define xge_BORDER_WIDTH 2
00012 
00013 typedef struct {
00014     Window     thewindow;
00015     Pixmap     thepixmap;
00016     int        win_rect_num;
00017     xge_widget *win_edr0, *win_edr1;
00018     xge_widget *popup0, *popup1;
00019     Cursor     cursor;
00020     Cursor     cursorstack[xge_FOCUS_DEPTH];
00021     xge_widget *focusstack[xge_FOCUS_DEPTH];
00022     char       fsp;  /* focus stack pointer */
00023     XRectangle thewinrect;
00024   } WinDesc;
00025 
00026 extern WinDesc xge_windesc[xge_MAX_WINDOWS];  /* window descriptors */
00027 
00028 extern int     xge_current_win;
00029 extern boolean xge_notinfocus;
00030 
00031 extern int _xge_argc;
00032 extern char **_xge_argv;
00033 
00034 extern xge_widget    *xge_lastwin;
00035 extern int           xge_usr_msg_key;
00036 extern xge_widget    *xge_errmsg_edr;
00037 extern int           xge_errmsg_win;
00038 extern char          *xge_errmsg_msgtext;
00039 extern char          **xge_info_msgtext;
00040 extern xgecolour_int xge_msgbkcolour;
00041 
00042 extern XID xgeglxpixmap;
00043 
00044 extern int (*xge_callback)(xge_widget*,int,int,short,short);
00045 
00046 extern short xge_cursnum;
00047 
00048 extern xge_widget *_xge_background_widget;
00049 extern xge_widget *_xge_special_widget;
00050 
00051 boolean _xge_background_msg ( xge_widget *er,
00052                              int msg, int key, short x, short y );
00053 void _xge_FindAspect ( void );
00054 
00055 void xge_RemoveErrorMessage ( void );
00056 
00057 boolean xge_InitRectAllocation ( void );
00058 xge_widget *xge_AllocEdRect ( void );
00059 void xge_FreeEdRectangles ( void );
00060 
00061 void xge_SetupEdRect ( char window_num, xge_widget *edr, int en, int id,
00062                        short w, short h, short x, short y,
00063                        boolean (*msgproc) ( xge_widget*, int, int, short, short ),
00064                        void (*redraw) ( xge_widget*, boolean ) );
00065 
00066 #ifdef XGLEDIT_H
00067 void _xgle_MakePalette ( void );
00068 #else
00069 void _xge_MakePalette ( void );
00070 #endif
00071 
00072 boolean xge_CallMsgProc ( xge_widget **last, xge_widget *er,
00073                           int msg, int key, short x, short y );
00074 
00075 void _xge_QuatRotBallDrawCircles ( short xc, short yc, short r, trans3f *tr );
00076