/usr/include/geomview/mibwidgets.h is in libgeomview-dev 1.9.4-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | /* Copyright (C) 1992-1998 The Geometry Center
* Copyright (C) 1998-2000 Stuart Levy, Tamara Munzner, Mark Phillips
*
* This file is part of Geomview.
*
* Geomview is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* Geomview is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with Geomview; see the file COPYING. If not, write
* to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
* USA, or visit http://www.gnu.org.
*/
/* Structure of mib_TextBox */
/*****************************************************************************/
typedef struct _mib_TextBox {
char *init_contents; /* initial text contents */
} mib_TextBox;
/* mib_TextBox functions */
/*****************************************************************************/
mib_Widget *mib_create_TextBox(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_TextBox(mib_Widget *);
void mib_save_TextBox(mib_Widget *, FILE *);
int mib_load_TextBox(mib_Widget *, mib_Buffer *);
/* Structure of mib_Button */
/*****************************************************************************/
typedef struct _mib_Button {
char *label; /* label on button */
} mib_Button;
/* mib_Button functions */
/*****************************************************************************/
mib_Widget *mib_create_Button(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_Button(mib_Widget *);
void mib_save_Button(mib_Widget *, FILE *);
int mib_load_Button(mib_Widget *, mib_Buffer *);
/* Structure of mib_Toggle */
/*****************************************************************************/
typedef struct _mib_Toggle {
char *label; /* label on toggle */
int isize;
} mib_Toggle;
/* mib_Toggle functions */
/*****************************************************************************/
mib_Widget *mib_create_Toggle(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_Toggle(mib_Widget *);
void mib_save_Toggle(mib_Widget *, FILE *);
int mib_load_Toggle(mib_Widget *, mib_Buffer *);
/* Structure of mib_RadioBox */
/*****************************************************************************/
typedef struct _mib_RadioBox {
char **labels; /* array of labels */
int numlabel; /* number of labels */
Widget *buttons; /* pointers to each button */
} mib_RadioBox;
/* mib_RadioBox functions */
/*****************************************************************************/
mib_Widget *mib_create_RadioBox(mib_Widget *, char *, char*, int, int, int,
int, int);
void mib_delete_RadioBox(mib_Widget *);
void mib_save_RadioBox(mib_Widget *, FILE *);
int mib_load_RadioBox(mib_Widget *, mib_Buffer *);
/* Structure of mib_DrawingArea */
/*****************************************************************************/
typedef struct _mib_DrawingArea {
int nothing; /* couldn't think of anything yet */
} mib_DrawingArea;
/* mib_DrawingArea functions */
/*****************************************************************************/
mib_Widget *mib_create_DrawingArea(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_DrawingArea(mib_Widget *);
void mib_save_DrawingArea(mib_Widget *, FILE *);
int mib_load_DrawingArea(mib_Widget *, mib_Buffer *);
/* Structure of mib_Label */
/*****************************************************************************/
typedef struct _mib_Label {
char *label; /* text in label */
} mib_Label;
/* mib_Label functions */
/*****************************************************************************/
mib_Widget *mib_create_Label(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_Label(mib_Widget *);
void mib_save_Label(mib_Widget *, FILE *);
int mib_load_Label(mib_Widget *, mib_Buffer *);
/* Structure of mib_Frame */
/*****************************************************************************/
typedef struct _mib_Frame {
int shadowtype; /* 0 = in, 1 = out, 2 = etched_in, 3 = etched_out */
} mib_Frame;
/* mib_Frame functions */
/*****************************************************************************/
mib_Widget *mib_create_Frame(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_Frame(mib_Widget *);
void mib_save_Frame(mib_Widget *, FILE *);
int mib_load_Frame(mib_Widget *, mib_Buffer *);
/* Structure of mib_ScrollBar */
/*****************************************************************************/
typedef struct _mib_ScrollBar {
int orientation;
} mib_ScrollBar;
/* mib_ScrollBar functions */
/*****************************************************************************/
mib_Widget *mib_create_ScrollBar(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_ScrollBar(mib_Widget *);
void mib_save_ScrollBar(mib_Widget *, FILE *);
int mib_load_ScrollBar(mib_Widget *, mib_Buffer *);
/* Structure of mib_TextBig */
/*****************************************************************************/
typedef struct _mib_TextBig {
int nothing; /* couldn't think of anything yet */
} mib_TextBig;
/* mib_TextBig functions */
/*****************************************************************************/
mib_Widget *mib_create_TextBig(mib_Widget *, char *, char *, int, int, int, int, int);
void mib_delete_TextBig(mib_Widget *);
void mib_save_TextBig(mib_Widget *, FILE *);
int mib_load_TextBig(mib_Widget *, mib_Buffer *);
/* Structure of mib_List */
/*****************************************************************************/
typedef struct _mib_List {
Widget real_list;
} mib_List;
/* mib_List functions */
/*****************************************************************************/
mib_Widget *mib_create_List(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_List(mib_Widget *);
void mib_save_List(mib_Widget *, FILE *);
int mib_load_List(mib_Widget *, mib_Buffer *);
/* Structure of mib_Scale */
/*****************************************************************************/
typedef struct _mib_Scale {
int orientation;
} mib_Scale;
/* mib_Scale functions */
/*****************************************************************************/
mib_Widget *mib_create_Scale(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_Scale(mib_Widget *);
void mib_save_Scale(mib_Widget *, FILE *);
int mib_load_Scale(mib_Widget *, mib_Buffer *);
/* Structure of mib_Menu */
/*****************************************************************************/
typedef struct _mib_Menu {
int numitems; /* number of items in menu*/
MenuItem *my_menu; /* array of menu items */
Widget *items; /* pointers to each item */
} mib_Menu;
/* mib_Menu functions */
/*****************************************************************************/
mib_Widget *mib_create_Menu(mib_Widget *, char *, char *, int, int, int,
int, int);
void mib_delete_Menu(mib_Widget *);
void mib_save_Menu(mib_Widget *, FILE *);
int mib_load_Menu(mib_Widget *, mib_Buffer *);
/*****************************************************************************/
typedef struct _mib_widget_funcs {
char *name;
mib_Widget *(*mib_create)();
void (*mib_delete)();
void (*mib_save)();
int (*mib_load)();
} mib_widget_funcs;
|