00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __WINGUI__
00023 #define __WINGUI__
00024
00025 #include "jed_defs.h"
00026
00027
00028 #include "framework/gui/jed_gui.h"
00029
00030 #if PLATAFORMA == i386_WIN32_VC
00031 #define WIDGET HWND
00032 #endif
00033
00034 class JED_MSWIN32SDK_INTERFACE : public JED_INTERFACE {
00035 public:
00036 JED_MSWIN32SDK_INTERFACE();
00037 virtual ~JED_MSWIN32SDK_INTERFACE();
00038
00039 BOOLEAN crear(int *Argc, char *argv[],
00040 int x_tam = 320, int y_tam = 200, char *nombre = "AQUYNZA");
00041 void finalizar(void);
00042 void ejecutar(void);
00043 void solicitar_repintado(void);
00044 void set_draw_callback( void (*p)(int context_id) );
00045 void set_tick_callback( int (*p)(int context_id) );
00046 void set_ejecutor( int (*p)(int idc, int context_id) );
00047 void set_mouse_callback( int (*p)(EVENTO_GUI *e, int context_id) );
00048 void set_keyboard_callback( int (*p)(EVENTO_GUI *e, int context_id) );
00049 void set_resize_callback(void (*p)(int x_tam, int y_tam, int context_id));
00050 void set_multiview_callback
00051 ( void (*p)(int operacion, int id_vista, char *detalles,
00052 char *menu, char *botonera) );
00053 #if PLATAFORMA == i386_WIN32_VC
00054 LONG WINAPI ejecutor(WIDGET w, UINT tipo_mensaje, UINT uParam, LONG lParam);
00055 #endif
00056 BOOLEAN
00057 anexar_controles(LISTA <CONTROL_GUI *> *Controles,
00058 REPOSITORIO_DE_ENTIDADES *Repositorio);
00059 };
00060
00061 #if PLATAFORMA == i386_WIN32_VC
00062 extern HGLRC CONTEXTO_glw;
00063 #endif
00064
00065 #endif // __WINGUI__
00066
00067
00068
00069
00070