📄 imlib.h
字号:
#ifndef __IMLIB_H__
#define __IMLIB_H__
#include <x.h>
typedef int ImlibData;
typedef int Pixmap;
typedef struct _ImlibImage
{
int rgb_width, rgb_height;
unsigned char *rgb_data;
unsigned char *alpha_data;
char *filename;
/* the below information is private */
int width, height;
// ImlibColor shape_color;
// ImlibBorder border;
Pixmap pixmap;
// Pixmap shape_mask;
char cache;
// ImlibColorModifier mod, rmod, gmod, bmod;
unsigned char rmap[256], gmap[256], bmap[256];
}ImlibImage;
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
int mkstemp(char *name);
ImlibData *Imlib_init(Display * disp);
ImlibImage *Imlib_load_image(ImlibData * id, char *file);
void Imlib_destroy_image(ImlibData * id, ImlibImage * image);
void Imlib_free_pixmap(ImlibData * id, Pixmap pixmap);
int Imlib_render(ImlibData * id, ImlibImage * image, int width, int height);
Pixmap Imlib_move_image(ImlibData * id, ImlibImage * image);
Pixmap Imlib_move_mask(ImlibData * id, ImlibImage * image);
void Imlib_paste_image(ImlibData * id, ImlibImage * im, Window p, int x, int y, int w, int h);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -