Changeset 2446 for neercs/trunk/src
- Timestamp:
- Jun 16, 2008, 5:12:51 PM (14 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/effects.c
r2445 r2446 213 213 214 214 215 /* Close a window by animating it collapsing */ 216 /* Total close time */ 215 217 #define DELAY 500000.0f 216 217 218 int close_screen_recurrent(struct screen_list* screen_list, struct recurrent* rec, void *user, long long unsigned int t) 218 219 { … … 237 238 int h = s->orig_h * r; 238 239 239 240 /* libcucul canvas resize function is bugged, do it by hand */ 240 241 old = s->cv; 241 242 new = cucul_create_canvas(w, h); -
neercs/trunk/src/neercs.h
r2445 r2446 40 40 41 41 /* Other stuff */ 42 int visible; 43 int fd; 44 unsigned char *buf; 45 char *title;46 long int total;47 int bell; 48 unsigned int scroll, s1, s2; 49 int pid; 42 int visible; /* Draw canvas and border flag */ 43 int fd; /* pty fd */ 44 unsigned char *buf; /* text buffer */ 45 long int total; /* buffer length */ 46 char *title; /* tty title */ 47 int bell; /* bell occuring */ 48 unsigned int scroll, s1, s2; /* FIXME, ANSI scroll properties */ 49 int pid; /* running program pid */ 50 50 51 int kill_time; 51 int x, y; /* Canvas position */ 52 int w, h; /* Canvas size */ 52 53 53 int x, y; 54 int w, h; 55 56 int orig_x, orig_y; 57 int orig_w, orig_h; 54 int orig_x, orig_y; /* Used by recurrents */ 55 int orig_w, orig_h; /* Used by recurrents */ 58 56 59 57 }; … … 61 59 struct screen_list 62 60 { 63 int wm_type; 64 int in_bell; 65 int dont_update_coords; 61 int wm_type; /* Window manager type */ 62 int in_bell; /* Bell occuring in a window */ 63 int dont_update_coords; /* Used by recurrents */ 66 64 /* Add-ons*/ 67 int mini; 68 int status; 69 int help; 65 int mini; /* Thumbnails */ 66 int status; /* Status bar */ 67 int help; /* help */ 70 68 71 int pty, prevpty; 72 int count; 73 int width, height; 74 struct screen **screen; 69 int pty, prevpty; /* Current and previous window */ 70 int count; /* Window count */ 71 int width, height; /* caca window size */ 72 struct screen **screen; /* Windows */ 75 73 }; 76 74 -
neercs/trunk/src/recurrent.c
r2445 r2446 30 30 #include "neercs.h" 31 31 32 32 /* Add recurrent function. It will be called at each main loop iteration, unless it is removed */ 33 33 int add_recurrent(struct recurrent_list *list, 34 34 int (*func)(struct screen_list*, struct recurrent* rec, void *user, long long unsigned int t), … … 56 56 57 57 58 /* Remove recurrent. Do *NOT* call this from a recurrent function. */ 58 59 int remove_recurrent(struct recurrent_list *list, int n) 59 60 {
Note: See TracChangeset
for help on using the changeset viewer.