📄 xloadimage.h
字号:
/* xloadimage.h: * * jim frost 06.21.89 * * Copyright 1989 Jim Frost. See included file "copyright.h" for complete * copyright information. *//* @(#)xloadimage.h 1.1 10/13/90 */#include "copyright.h"#include <stdio.h>#include <X11/X.h>#include <X11/Xlib.h>#include <X11/Xutil.h>#include "image.h"#include "options.h"/* image name and option structure used when processing arguments */typedef struct { char *name; /* name of image */ int atx, aty; /* location to load image at */ unsigned int bright; /* brightness multiplier */ unsigned int center; /* true if image is to be centered */ unsigned int clipx, clipy; /* area of image to be used */ unsigned int clipw, cliph; unsigned int dither; /* true if image is to be dithered */ unsigned int colors; /* max # of colors to use for this image */ char *fg, *bg; /* foreground/background colors if mono image */ unsigned int xzoom, yzoom; /* zoom percentages */} ImageOptions;#ifndef MAXIMAGES#define MAXIMAGES BUFSIZ /* max # of images we'll try to load at once */#endif/* function declarations */void supportedImageTypes(); /* imagetypes.c */ZFILE *zopen(); /* io.c */int zread();int zgetc();char *zgets();void zclose();char *tail(); /* misc.c */void usage();void goodImage();Image *processImage();int ioErrorHandler();int findImage(); /* path.c */void listImages();void loadPathsAndExts();void showPath();void imageOnRoot(); /* root.c */unsigned int sendImageToX(); /* send.c */Visual *getBestVisual(); /* visual.c */void cleanUpWindow(); /* window.c */char imageInWindow();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -