Changeset 16039 for trunk/Ohana/src/kapa2/include/structures.h
- Timestamp:
- Jan 8, 2008, 12:49:54 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/kapa2/include/structures.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa2/include/structures.h
r16011 r16039 1 2 /**************** Graphic carries X info around ****************/3 typedef struct {4 Display *display; // X display pointer5 int screen; // X screen number6 int depth;7 Window window;8 Visual *visual;9 int visualclass; // is visual dynamic? (XXX change name?)10 int Nbits; // pixel depth in bits (8, 16, 24, 32)11 GC gc;12 XFontStruct *font;13 Cursor cursor;14 int x, y;15 unsigned int dx, dy;16 XColor *cmap;17 Colormap colormap;18 unsigned long *color; // graph plotting colors19 int Ncolors;20 21 unsigned long *pixels; // image pixel colors22 int Npixels; // number of pixels23 24 int ColorScaleMode; // single colormap for all images??25 int nRed;26 int nBlue;27 int nGreen;28 29 unsigned long fore; // basic foreground color30 unsigned long back; // basic background color31 32 unsigned long overlay_color[NOVERLAYS]; // image plotting colors33 } Graphic;34 35 /**************** X related "widget" structures ****************/36 typedef struct {37 int x, y, dx, dy; /* position and size */38 int width, height; /* size of the bitmap */39 char *bitmap; /* picture on button */40 int (*function_1) (); /* mouse_button 1 function */41 int (*function_2) (); /* mouse_button 2 function */42 int (*function_3) (); /* mouse_button 3 function */43 } Button;44 45 typedef struct {46 int x, y, dx, dy; /* position and size */47 char *label; /* label on TextLine */48 char text[1024]; /* words of TextLine */49 char old_text[1024]; /* words of TextLine */50 int outline; /* draw an outline? */51 int cursor; /* location of cursor (if selected) */52 int (*function) (); /* textline function */53 } TextLine;54 55 typedef char STRING[1024];56 57 typedef struct {58 int x, y, dx, dy; /* position and size */59 STRING *text; /* words of TextLine */60 int Nlines;61 int outline; /* draw an outline? */62 int cursor_line; /* cursor line */63 int cursor_x; /* location of cursor (if selected) */64 int cursor_y; /* location of cursor (if selected) */65 int (*function) (); /* textline function */66 } TextBox;67 1 68 2 /*** 3C color cube histogram tree thingy ***/ … … 80 14 } CCNode; 81 15 16 /**************** Graphic carries X info around ****************/ 17 typedef struct { 18 Display *display; // X display pointer 19 int screen; // X screen number 20 int depth; 21 Window window; 22 Visual *visual; 23 int visualclass; // is visual dynamic? (XXX change name?) 24 int Nbits; // pixel depth in bits (8, 16, 24, 32) 25 GC gc; 26 XFontStruct *font; 27 Cursor cursor; 28 int x, y; 29 unsigned int dx, dy; 30 CCNode *cube; 31 XColor *cmap; 32 Colormap colormap; 33 unsigned long *color; // graph plotting colors 34 int Ncolors; 35 36 unsigned long *pixels; // image pixel colors 37 int Npixels; // number of pixels 38 39 int ColorScaleMode; // single colormap for all images?? 40 int nRed; 41 int nBlue; 42 int nGreen; 43 44 unsigned long fore; // basic foreground color 45 unsigned long back; // basic background color 46 47 unsigned long overlay_color[NOVERLAYS]; // image plotting colors 48 } Graphic; 49 50 /**************** X related "widget" structures ****************/ 51 typedef struct { 52 int x, y, dx, dy; /* position and size */ 53 int width, height; /* size of the bitmap */ 54 char *bitmap; /* picture on button */ 55 int (*function_1) (); /* mouse_button 1 function */ 56 int (*function_2) (); /* mouse_button 2 function */ 57 int (*function_3) (); /* mouse_button 3 function */ 58 } Button; 59 60 typedef struct { 61 int x, y, dx, dy; /* position and size */ 62 char *label; /* label on TextLine */ 63 char text[1024]; /* words of TextLine */ 64 char old_text[1024]; /* words of TextLine */ 65 int outline; /* draw an outline? */ 66 int cursor; /* location of cursor (if selected) */ 67 int (*function) (); /* textline function */ 68 } TextLine; 69 70 typedef char STRING[1024]; 71 72 typedef struct { 73 int x, y, dx, dy; /* position and size */ 74 STRING *text; /* words of TextLine */ 75 int Nlines; 76 int outline; /* draw an outline? */ 77 int cursor_line; /* cursor line */ 78 int cursor_x; /* location of cursor (if selected) */ 79 int cursor_y; /* location of cursor (if selected) */ 80 int (*function) (); /* textline function */ 81 } TextBox; 82 82 83 /**************** general structures ****************/ 83 84 typedef struct {
Note:
See TracChangeset
for help on using the changeset viewer.
