The Media Kit Table of Contents | The Media Kit Index |
Derived from: BFlattenable
Declared in: be/media/ParameterWeb.h
Library: libmedia.so
Allocation: Constructor only
BParameterWeb serves as a container for information describing the relationships among the configurable parameters of a BControllable node. A BControllable subclass should, when constructed, create a BParameterWeb and populate it with controls through one or more BParameterGroups. This web of parameters describes the signal path within the node, and the points at which the node's manipulation of the data can be controlled.
The Audio control panel is actually derived from the BParameterWeb of the node currently selected as the default audio input node.
The BParameterWeb lets client applications query a node to determine how it can be configured, so the application can then create and display a user interface permitting the user to configure the node using standard user interface objects (like sliders, checkboxes, lines and arrows indicating the data path, and so forth).
By using the parameter web, device-independence is maintained without sacrificing the ability to create generic code to configure devices.
|
The BParameterWeb constructor. You'll usually create one BParameterWeb object per BControllable node; to attach a BParameterWeb to a BControllable node, you should call BControllable::SetParameterWeb().
|
Once you've called BControllable::SetParameterWeb(), the node takes responsibility for the parameter web object and you shouldn't delete it.
If you don't call BControllable::SetParameterWeb(), then delete the BParameterWeb object when you're done with it.
|
Returns the number of BParameterGroup objects that are currently attached to the BParameterWeb.
|
Returns the number of BParameters in the entire web, including those in all BParameterGroups attached to it.
|
Returns the BParameterGroup located at the specified index within the list of groups contained by the BParameterWeb.
The first group is numbered 0, so the maximum legal value for index is CountGroups()-1. If the specified index is outside that range, NULL is returned.
|
Creates a new BParameterGroup object to be used for grouping parameters within the BParameterWeb, and attaches it to the BParameterWeb.
All BParameters created in the group will belong to that group, and, by recursion, to the web itself.
...in lovely HTML... for BeOS Release 5. Copyright © 2000 Be, Inc. All rights reserved.. |