Ignore:
Timestamp:
Jun 16, 2008 4:33:19 PM (7 years ago)
Author:
jylam
Message:
  • Added delayed (recurrent) functions, as well as a window-killing eyecandy
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/neercs.h

    r2444 r2445  
    2727};
    2828
     29
    2930struct screen
    3031{
     
    5253    int x, y;
    5354    int w, h;
     55
     56    int orig_x, orig_y;
     57    int orig_w, orig_h;
     58
    5459};
    5560
     
    5863    int wm_type;
    5964    int in_bell;
     65    int dont_update_coords;
    6066    /* Add-ons*/
    6167    int mini;
     
    6369    int help;
    6470
    65 
    6671    int pty, prevpty;
    6772    int count;
    6873    int width, height;
    6974    struct screen **screen;
     75};
     76
     77
     78struct recurrent
     79{
     80    int (*function)(struct screen_list*, struct recurrent* rec, void *user, long long unsigned int t);
     81    void *user;
     82    long long unsigned int  start_time;
     83    int kill_me;
     84};
     85
     86struct recurrent_list
     87{
     88    int count;
     89    struct recurrent **recurrent;
    7090};
    7191
     
    88108                     struct screen_list *screen_list);
    89109int update_screens_contents(struct screen_list* screen_list);
     110long long get_ms(void);
     111
    90112
    91113/* Screens management */
     
    110132void draw_status(cucul_canvas_t *cv, struct screen_list *screen_list);
    111133void draw_help(cucul_canvas_t *cv, struct screen_list *screen_list);
     134int close_screen_recurrent(struct screen_list*, struct recurrent* rec, void *user, long long unsigned int t);
     135
     136
     137/* Recurrents */
     138int add_recurrent(struct recurrent_list *list,
     139                  int (*function)(struct screen_list*, struct recurrent* rec, void *user, long long unsigned int t),
     140                  void *user);
     141int remove_recurrent(struct recurrent_list *list, int n);
    112142
    113143
Note: See TracChangeset for help on using the changeset viewer.