1 /* 2 * Copyright (C) 1998-2000 by Marco G"otze. 3 * 4 * This code is part of the wmpinboard source package, which is 5 * distributed under the terms of the GNU GPL2. 6 */ 7 8 #ifndef NOTES_H_INCLUDED 9 #define NOTES_H_INCLUDED 10 11 #include <time.h> 12 13 #include "wmpinboard.h" 14 15 #define draw_sketch(note) draw_sketch_area(note, 1, 1, 62, 62) 16 17 int add_note(); 18 void remove_note(int); 19 int raise_note(int); 20 int note_tilt(int); 21 int note_empty(int); 22 void color_notes(int); 23 void pin_note(int); 24 void render_pinboard(int); 25 void render_note(int); 26 int selected_note(int, int); 27 void print_letter(int, int, int); 28 void print_text(int); 29 void shift_string(int, int, int, int, int); 30 void draw_sketch_area(int, int, int, int, int); 31 int bbar_button(int, int); 32 int abar_area(int, int); 33 void init_edit_mode(int); 34 void render_abar_number(int); 35 void render_abar_switches(int); 36 void render_abar(int); 37 char *cook(int, int, int); 38 void dump_notes(int); 39 int char_at(int, int, int); 40 int paste_string(int, int, const char*, int); 41 void paste(int, int, const char*, int, int); 42 int check_time(); 43 void explode_time(int); 44 void implode_time(int); 45 time_t adapt_time(int, time_t); 46 void time_next_alarm(); 47 48 #ifdef CREASES 49 50 #include <X11/Xlib.h> 51 52 #define render_edit_wear_area(note, x, y, w, h) \ 53 render_edit_wear_area_win(app, note, x, y, w, h) 54 #define render_edit_wear(note) render_edit_wear_area(note, 1, 1, 62, 62) 55 56 void wear_note(int); 57 void render_wear(int); 58 void render_edit_wear_area_win(Window, int, int, int, int, int); 59 60 #endif 61 62 #ifdef FUNSTUFF 63 void check_occasion(int, int, int); 64 #endif 65 66 #endif /* NOTES_H_INCLUDED */ 67 68