2 * ROX-Filer, filer for the ROX desktop project
3 * By Thomas Leonard, <tal197@users.sourceforge.net>.
9 #define ROW_HEIGHT_LARGE 64
12 #include <sys/types.h>
15 typedef struct _ViewData ViewData
;
27 MaskedPixmap
*image
; /* Image; possibly thumbnail */
30 extern Option o_display_inherit_options
, o_display_sort_by
;
31 extern Option o_display_size
, o_display_details
, o_display_show_hidden
;
32 extern Option o_display_show_headers
, o_display_show_full_type
;
33 extern Option o_display_show_thumbs
;
34 extern Option o_small_width
;
35 extern Option o_vertical_order_small
, o_vertical_order_large
;
38 void display_init(void);
39 void display_set_layout(FilerWindow
*filer_window
,
42 gboolean force_resize
);
43 void display_set_hidden(FilerWindow
*filer_window
, gboolean hidden
);
44 void display_set_filter_directories(FilerWindow
*filer_window
, gboolean filter_directories
);
45 void display_update_hidden(FilerWindow
*filer_window
);
46 void display_set_filter(FilerWindow
*filer_window
, FilterType type
,
47 const gchar
*filter_string
);
48 void display_set_thumbs(FilerWindow
*filer_window
, gboolean thumbs
);
49 int sort_by_name(const void *item1
, const void *item2
);
50 int sort_by_type(const void *item1
, const void *item2
);
51 int sort_by_date(const void *item1
, const void *item2
);
52 int sort_by_size(const void *item1
, const void *item2
);
53 int sort_by_owner(const void *item1
, const void *item2
);
54 int sort_by_group(const void *item1
, const void *item2
);
55 void display_set_sort_type(FilerWindow
*filer_window
, SortType sort_type
,
57 void display_set_autoselect(FilerWindow
*filer_window
, const gchar
*leaf
);
59 void draw_large_icon(GdkWindow
*window
,
65 gboolean
display_is_truncated(FilerWindow
*filer_window
, int i
);
66 void display_change_size(FilerWindow
*filer_window
, gboolean bigger
);
68 ViewData
*display_create_viewdata(FilerWindow
*filer_window
, DirItem
*item
);
69 void display_update_view(FilerWindow
*filer_window
,
72 gboolean update_name_layout
);
73 void display_update_views(FilerWindow
*filer_window
);
74 void draw_small_icon(GdkWindow
*window
, GdkRectangle
*area
,
75 DirItem
*item
, MaskedPixmap
*image
, gboolean selected
,
77 void draw_huge_icon(GdkWindow
*window
, GdkRectangle
*area
, DirItem
*item
,
78 MaskedPixmap
*image
, gboolean selected
,
80 void display_set_actual_size(FilerWindow
*filer_window
, gboolean force_resize
);
82 #endif /* _DISPLAY_H */