⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ui.h

📁 LINUX X11 16 key 中文简单输入源代码
💻 H
字号:
#include "all.h"
#include <X11/Xlib.h>
#include <ft2build.h>
#include <X11/Xft/Xft.h>

typedef enum {
    _3D_FLAT = 0,
    _3D_UPPER = 1,
    _3D_LOWER = 2
} _3D_EFFECT;

typedef struct {
    GC              foreGC;
    GC              backGC;
    XColor          backColor;
    XColor          foreColor;
} WINDOW_COLOR;

typedef struct {
    GC              gc;
    XColor          color;
} MESSAGE_COLOR;

typedef struct {
    char           *pcStr;
    int             iPixel;
} StrPixel;

Bool            	IsInBox (int x0, int y0, int x1, int y1, int x2, int y2);
Bool            	InitX (void);
void            	CreateFont (void);
void            	InitGC (Window window);
void            	MyXEventHandler (XEvent * event);
void			Draw3DEffect (Window window, int x, int y, int width, int height, _3D_EFFECT effect);
Bool			MouseClick (int *x, int *y, Window window);
void			OutputString (Window window, XftFont * font, char *str, int x, int y, XColor);
int			StringWidth (char *str, XftFont * font);
int 			FontHeight (XftFont * font);
void 			rescan_vk_window(void);
Bool			CreateVKWindow (void);
void			InitVKWindowColor (void);
void			DisplayVKWindow (void);
void            	list_string (Window window, XftFont * font, char str[][STR_SIZE], int len, int x, int y,int w, XColor color);
void 			show_space(int x,int y,int xx, int yy);
void 			show_vk(void);
Bool 			out_put_str(int n);
void 			show_image(char *image_xpm[], int x, int y, int w, int h);
int 			point_to_index(int x, int w, char buf[][STR_SIZE], char max_len, XftFont * font);
int 			index_to_point(int index,int w, char buf[][STR_SIZE], XftFont * font, int check);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -