Idź do dokumentacji tego pliku.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __EKG_THEMES_H
00021 #define __EKG_THEMES_H
00022
00023 #include "strings.h"
00024
00025 #define _(a) (a)
00026 #define N_(a) (a)
00027
00028 typedef struct {
00029 union {
00030 char *b;
00031 CHAR_T *w;
00032 } str;
00033
00034 short *attr;
00035 time_t ts;
00036
00037 int prompt_len;
00038 unsigned int prompt_empty : 1;
00039 int margin_left;
00040 void *private;
00041 } fstring_t;
00042
00043 #define print(x...) print_window_w(NULL, EKG_WINACT_JUNK, x)
00044 #define print_status(x...) print_window_w(window_status, EKG_WINACT_JUNK, x)
00045
00046 void format_add(const char *name, const char *value, int replace);
00047 void remote_format_add(const char *name, const char *value);
00048 const char *format_find(const char *name);
00049 #define format_ok(format_find_result) (format_find_result[0])
00050 #define format_exists(format) (format_ok(format_find(format)))
00051 char *format_string(const char *format, ...);
00052
00053 void theme_init();
00054 void theme_free();
00055
00056 fstring_t *fstring_new(const char *str);
00057 fstring_t *fstring_new_format(const char *format, ...);
00058 void fstring_free(fstring_t *str);
00059
00060 typedef enum {
00061 FSTR_FOREA = 1,
00062 FSTR_FOREB = 2,
00063 FSTR_FOREC = 4,
00064 FSTR_FOREMASK = (FSTR_FOREA|FSTR_FOREB|FSTR_FOREC),
00065 FSTR_BACKA = 8,
00066 FSTR_BACKB = 16,
00067 FSTR_BACKC = 32,
00068 FSTR_BACKMASK = (FSTR_BACKA|FSTR_BACKB|FSTR_BACKC),
00069 FSTR_BOLD = 64,
00070 FSTR_NORMAL = 128,
00071 FSTR_BLINK = 256,
00072 FSTR_UNDERLINE = 512,
00073 FSTR_REVERSE = 1024,
00074 FSTR_ALTCHARSET = 2048
00075 } fstr_t;
00076
00077 #endif
00078
00079
00080
00081
00082
00083
00084
00085
00086