1#compdef xv
2
3_x_arguments \
4  -{help,quick24,slow24,best24,noqcheck,pkludge,RM} \
5  -+{fixed,rw,perfect,owncmap,stdcmap,cecmap,ninstall,8,24,root,noresetroot,max,maxpect,quit,clear,cmap,imap,cemap,cmtmap,vsmap,nopos,dither,smooth,raw,acrop,4x3,hflip,vflip,norm,hist,mono,rv,wloop,random,loadclear,nofreecols,rgb,hsv,lbrowse,nostat,2xlimit,nolimits,close,iconic,viewonly,poll,vsperfect,vsdisable,nodecor} \
6  '-fg:foreground color:_x_color' \
7  '-bg:background color:_x_color' \
8  '-hi:top left shadow color:_x_color' \
9  '-lo:bottom right shadow color:_x_color' \
10  '-bw:border width' \
11  '-geometry:geometry:_x_geometry' \
12  '-expand:expansion factor' \
13  '-aspect:aspect ratio (e.g. 4:3)' \
14  '-ncols:maximum number of colors used' \
15  '-rmode:root display mode:((0\:tiling 1\:integer\ tiling 2\:mirrored\ tiling 3\:integer\ mirrored\ tiling 4\:centered\ tiling 5\:centered\ tiling\ on\ solid\ background 6\:centered\ tiling\ on\ '\\\''warp'\\\''\ background 7\:centered\ tiling\ on\ '\\\''brick'\\\''\ background 8\:symmetrical\ tiling 9\:symmetrical\ mirrored\ tiling))' \
16  '-rfg:root foreground color:_x_color' \
17  '-rbg:root background color:_x_color' \
18  '-cgeom:control window geometry:_x_geometry' \
19  '-igeom:info window geometry:_x_geometry' \
20  '-cegeom:color editor window geometry:_x_geometry' \
21  '-cmtgeometry:comments window geometry:_x_geometry' \
22  '-tgeometry:text view window geometry:_x_geometry' \
23  '-vsgeometry:visual schauzer geometry:_x_geometry' \
24  '-crop:left border: :top border: :width: :height' \
25  '-rotate:rotation angle:(0 90 -90 +90 180 -180 +180 270 -270 +270)' \
26  '-gamma:gamma value' \
27  '-cgamma:red gamma value: :green gamma value: :blue gamma value' \
28  '-preset:default preset (1-4):(1 2 3 4)' \
29  '-white:'"'"'white'"'"' color:_x_color' \
30  '-black:'"'"'black'"'"' color:_x_color' \
31  '-wait:seconds to wait' \
32  '-visual:visual:_x_visual' \
33  '-cursor:cursor character number' \
34  '-icgeometry:icon geometry:_x_geometry' \
35  '-dir:directory:_files -/' \
36  '-flist:file list file:_files' \
37  '-drift:x movement correction: :y movement correction' \
38  '-mfn:mono spaced font:_x_font' \
39  '-name:window name:_x_name' \
40  '-+grabdelay:grab delay (seconds)' \
41  '-gsdev:ghostscript device' \
42  '-gsres:ghostscript resolution' \
43  '-gsgeom:ghostscript page size' \
44  '-DEBUG:debug level' \
45  '*:picture file:_files -g \*.\(\#i\)\(png\|gif\|jpeg\|jpg\|tiff\|tif\|pbm\|pgm\|ppm\|xbm\|xpm\|ras\(\|t\)\|tga\|rle\|rgb\|bmp\|pcx\|fits\|pm\)\(-.\)'
46