File: main.h

package info (click to toggle)
libsx 2.08-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 2,668 kB
  • sloc: ansic: 8,739; sh: 8,603; makefile: 62
file content (40 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* This file contains the various things related to the main body of the 
 * program.  It is pretty sparse, and really shouldn't be too cluttered
 * up.
 *
 */

/* This structure contains information relevant to your program.
 * You should fill it in with information that you need.
 *
 */
typedef struct MyProgram
{
  int down;                         /* for when the mouse button goes down */
  int startx, starty, oldx, oldy;   /* used for drawing out boxes */
  
  int col1, col2;
  int toggle1, toggle2, toggle3, toggle4, other_toggle;
  int in_color_mode;
  Widget quit;
  Widget str_entry;
  Widget list;
  Widget other_window;
  Widget text_widget;
  Widget color_widget;
  Widget draw_widget;
  Widget copy_menu;
  Widget paste_menu;
  XFont  draw_font;
}MyProgram;


/* protos */
int  init_display(int argc, char **argv, MyProgram *me);
void do_redisplay(MyProgram *me, int x, int y);


#ifndef TRUE
#define TRUE  1
#define FALSE 0
#endif