4 struct WView
; /* opaque structure, can be cast to Widget */
5 typedef struct WView WView
;
7 /* Creation/initialization of a new view widget */
8 WView
*view_new (int y
, int x
, int cols
, int lines
, int is_panel
);
9 int view_load (WView
*view
, const char *_command
, const char *_file
,
12 /* View a ''file'' or the output of a ''command'' in the internal viewer,
13 * starting in line ''start_line''. ''ret_move_direction'' may be NULL or
14 * point to a variable that will receive the direction in which the user
15 * wants to move (-1 = previous file, 1 = next file, 0 = do nothing).
17 int view (const char *command
, const char *file
, int *ret_move_direction
,
20 extern int mouse_move_pages_viewer
;
21 extern int max_dirt_limit
;
22 extern int global_wrap_mode
;
23 extern int have_fast_cpu
;
24 extern int default_hex_mode
;
25 extern int default_magic_flag
;
26 extern int default_nroff_flag
;
27 extern int altered_hex_mode
;
28 extern int altered_magic_flag
;
29 extern int altered_nroff_flag
;
30 extern int mcview_remember_file_position
;