File: controlbox.h

package info (click to toggle)
libsx 2.08-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,732 kB
  • sloc: ansic: 8,713; sh: 8,603; makefile: 63
file content (25 lines) | stat: -rw-r--r-- 678 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
/*
 * This file contains the structures and #define's for use with
 * the control box routines.
 *
 *  Dominic Giampaolo
 *  dbg@sgi.com
 */

typedef struct SliderVar
{
  char *name;
  float *val;
  float max, shown;
  Widget slider;      /* gets filled in by MakeControlBox() */
  Widget text;        /* gets filled in by MakeControlBox() */
}SliderVar;


/*
 * MakeControlBox() returns a form widget who's position you can
 * set with SetWidgetPos().  The form will contain an vertical array
 * of sliders and any time the user plays with one, your variables
 * will change.  You don't have to do anything really.
 */
Widget MakeControlBox(char *title, SliderVar *variables);