3 #define app_context lesstif_app_context
4 #define appwidget lesstif_appwidget
5 #define display lesstif_display
6 #define screen_s lesstif_screen_s
7 #define screen lesstif_screen
8 #define mainwind lesstif_mainwind
9 #define work_area lesstif_work_area
10 #define messages lesstif_messages
11 #define command lesstif_command
12 #define hscroll lesstif_hscroll
13 #define vscroll lesstif_vscroll
14 #define m_click lesstif_message_click
16 extern XtAppContext app_context
;
17 extern Widget appwidget
;
18 extern Display
*display
;
19 extern Screen
*screen_s
;
22 Widget mainwind
, work_area
, command
, hscroll
, vscroll
;
30 extern Widget
lesstif_menu (Widget
, char *, Arg
*, int);
31 extern int lesstif_key_event (XKeyEvent
*);
32 extern int lesstif_button_event (Widget w
, XEvent
* e
);
34 /* Returns TRUE if the point mapped to the PCB region, FALSE (=0) if
35 we're off-board. Note that *pcbxy is always written to, even if
37 extern int lesstif_winxy_to_pcbxy (int winx
, int winy
, int *pcbx
, int *pcby
);
39 /* Returns TRUE if the point is in the window, FALSE (=0) otherwise. */
40 extern int lesstif_pcbxy_to_winxy (int pcbx
, int pcby
, int *winx
, int *winy
);
42 extern void lesstif_need_idle_proc (void);
43 extern void lesstif_show_crosshair (int);
44 extern void lesstif_invalidate_all (void);
45 extern void lesstif_coords_to_pcb (int, int, int *, int *);
46 extern void lesstif_get_xy (const char *msg
);
47 extern void lesstif_update_widget_flags (void);
48 extern int lesstif_call_action (const char *, int, char **);
49 extern void lesstif_sizes_reset (void);
50 extern void lesstif_pan_fixup (void);
51 extern void lesstif_show_library (void);
52 extern void lesstif_show_netlist (void);
53 extern Pixel
lesstif_parse_color (char *value
);
54 extern void lesstif_insert_style_buttons (Widget menu
);
55 extern void lesstif_styles_update_values ();
56 extern void lesstif_update_layer_groups ();
57 extern void lesstif_update_status_line ();
58 extern char *lesstif_prompt_for (char *, char *);
59 extern void lesstif_log (const char *fmt
, ...);
60 #ifdef __RESOURCE_INCLUDED__
61 extern void lesstif_note_mouse_resource(Resource
*res
);
64 #define need_idle_proc lesstif_need_idle_proc
65 #define show_crosshair lesstif_show_crosshair
67 #define PCB_TO_MIL(n) ((n) / 100.0)
68 #define PCB_TO_MM(n) ((n) / 100000.0 * 25.4)
69 #define MIL_TO_PCB(n) (int)((n) * 100.0 + 0.2)
70 #define MM_TO_PCB(n) (int)((n) / 25.4 * 100000.0 + 0.2)