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_init (WView
*view
, char *_command
, const char *_file
,
12 void view_update_bytes_per_line (WView
*view
);
14 /* Command: view a file, if _command != NULL we use popen on _command */
15 /* move direction should be apointer that will hold the direction in which the user */
16 /* wants to move (-1 previous file, 1 next file, 0 do nothing) */
17 int view (char *_command
, const char *_file
, int *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
;