Documentation Set for Swarm 2.2
Prev | Reference VIII. Gui Library | Next

# InputWidget

## Name

InputWidget -- Abstract superclass for widgets that take input.

## Description

InputWidgets get their input in one of two ways: by being readable, or by being linked to a C variable.

## Protocols adopted by InputWidget

Widget

## Methods

### Phase: Using

- - (void)linkVariableBoolean: (unsigned *)p
  Attach the widget value to a boolean.

- - (void)linkVariableDouble: (double *)p
  Attach the widget value to a double.

- - (void)linkVariableInt: (int *)p
  Attach the widget value to an integer.

- - (void)setValue: (const char *)v
  Set the string value of the widget. This must be implemented by a subclass.

- - (const char *)getValue
  Get the string value of the widget.

Prev | Home | Next
Histogram | Up | Label