source: tags/initial/TESTAWT/tb_extern.hxx

Last change on this file was 2, checked in by oldcode, 24 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* -----------------------------------------------------------------
2 * Module:                        TESTBED/tb_extern.hxx
3 *
4 * Dependencies:                  uses AWT and WINDOW stuff
5 *
6 * Description: demonstration of AWT and WINDOW functions,
7 *              testbed for the zoomtext functions
8 * -----------------------------------------------------------------
9 */
10
11/*
12 * $Header$
13 *
14 * $Log$
15 * Revision 1.1  2000/11/23 09:41:16  westram
16 * Initial revision
17 *
18 * Revision 1.1  1995/03/13  15:49:36  jakobi
19 * Initial revision
20 *
21 * Revision 1.1  1995/03/13  15:49:36  jakobi
22 * Initial revision
23 *
24 */
25
26
27#ifndef EXTERNAL
28#define EXTERNAL extern
29#endif
30
31
32// global variable for database
33extern GBDATA *gb_main;
34
35// visible prototypes
36void tb_exit(AW_window *aw_window);
37AW_window *create_tb_main_window(AW_root *awr);
38AW_window *tb_preset_tree_window(AW_root *root);
39void tb_reload(AW_root *, AWT_canvas *);
40AWT_graphic *tb_gen_gfx(void);
41
42// class AWT_graphic_testbed - provide the minimal necessary set of
43// functions to use AWT
44class AWT_graphic_testbed  : public AWT_graphic {
45     public:
46        // graphic styles
47        AW_gc_manager init_devices(AW_window *,AW_device *,AWT_canvas *,AW_CL);
48        // the testbed class
49        AWT_graphic_testbed(void);
50        void show(AW_device *device);
51        void info(AW_device *device, AW_pos x, AW_pos y,
52                                AW_clicked_line *cl, AW_clicked_text *ct);
53
54        void command(AW_device *device, AWT_COMMAND_MODE cmd, int button, AW_event_type type, 
55                                AW_pos x, AW_pos y,
56                                AW_clicked_line *cl, AW_clicked_text *ct); 
57};
58
59// test parameters
60EXTERNAL char  *tbd_string;
61EXTERNAL long  tbd_gc,tbd_function,tbd_bitset,tbd_cl1,tbd_cl2;
62EXTERNAL float tbd_x,tbd_y,tbd_x0,tbd_y0,tbd_x1,tbd_y1;
63EXTERNAL float tbd_height,tbd_alignment,tbd_alignmentx,tbd_alignmenty,tbd_rotation;
64
Note: See TracBrowser for help on using the repository browser.