2
LibGViewer - GTK+ File Viewer library
3
Copyright (C) 2006 Assaf Gordon
6
GNOME Commander - A GNOME based file manager
7
Copyright (C) 2001-2006 Marcus Bjurman
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#ifndef __LIBGVIEWER_DATA_PRESENTATION_H__
24
#define __LIBGVIEWER_DATA_PRESENTATION_H__
26
typedef struct _GVDataPresentation GVDataPresentation;
33
/* Here, BIN_FIXED is "fixed number of binary characters per line"
34
(e.g. CHAR=BYTE, no UTF-8 or other translations) */
38
GVDataPresentation* gv_data_presentation_new();
40
void gv_init_data_presentation(GVDataPresentation *dp, GVInputModesData *imd, offset_type max_offset);
41
void gv_free_data_presentation(GVDataPresentation *dp);
43
void gv_set_data_presentation_mode(GVDataPresentation *dp, PRESENTATION present) ;
44
PRESENTATION gv_get_data_presentation_mode(GVDataPresentation *dp);
45
void gv_set_wrap_limit(GVDataPresentation *dp, guint chars_per_line);
46
void gv_set_fixed_count(GVDataPresentation *dp, guint chars_per_line);
47
void gv_set_tab_size(GVDataPresentation *dp, guint tab_size);
49
offset_type gv_align_offset_to_line_start(GVDataPresentation *dp, offset_type offset);
50
offset_type gv_scroll_lines(GVDataPresentation *dp, offset_type current_offset, int delta);
51
offset_type gv_get_end_of_line_offset(GVDataPresentation *dp, offset_type start_of_line);