VkPrefGroup(3x)VkPrefGroup(3x)NAMEVkPrefGroup - Grouping interface for preference package
INHERITS FROM
VkPrefItem : VkComponent : VkCallbackObject
HEADER FILE
#include <Vk/VkPrefItem.h>
PUBLIC PROTOCOL SUMMARY
Constructor/Destructor
VkPrefGroup(const char* name,
Boolean horizOrientation = False,
Boolean noLabel = False);
virtual void ~VkPrefGroup(void);
Adding Items
void addItem(VkPrefItem* item);
Access Functions
int size(void);
VkPrefItem* item(int which);
CLASS DESCRIPTIONVkPrefGroup groups preference objects together. It enforces an
arrangement policy that creates "standard" appearances among different
preference dialogs. Vertically-oriented groups (the default) left-align
the object labels. Horizontally-oriented groups throw away the object
labels, and arrange the object base widgets in a row.
FUNCTION DESCRIPTIONSVkPrefGroup()
VkPrefGroup(const char* name,
Boolean horizOrientation = False,
Boolean noLabel = False);
virtual void ~VkPrefGroup(void);
Create a group preference object. The second argument turns on
horizontal orientation, and the third argument turns off the label
widget for the group itself.
addItem()
Page 1
VkPrefGroup(3x)VkPrefGroup(3x)
void addItem(VkPrefItem* item);
Adds a preference object to the group. The new item is added to the
end of the list, so appears at the end of the arrangement.
Note that when you use addItem, the new item takes on the activated
or deactivated state of the group. Therefore, you should activate
or deactivate an item after you add it to a group with addItem.
size()
int size(void);
Returns the number of items in the group.
item()
VkPrefItem* item(int which);
Returns a specific item from the group.
INHERITED MEMBER FUNCTIONS
Inherited from VkPrefItem
VkPrefItem(), ~VkPrefItem(), setActivated(), homogeneous(),
clearHomogeneous(), activated(), hasChildren(), deleteChildren(),
labelHeight(), baseHeight(), setLabelHeight(), setBaseHeight(),
activateCallback(), installDestroyHandlers(), labelWidget(),
label_destroyed(), buildLabel(), getHeight(), setHeight(),
_labelWidget, _baseName, _labelName, _activated, _homogeneous,
Inherited from VkComponent
installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
setDefaultResources(), getResources(), manage(), unmanage(),
baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
Inherited from VkCallbackObject
callCallbacks(), addCallback(), removeCallback(),
removeAllCallbacks()KNOWN DERIVED CLASSES
VkPrefList, VkPrefRadio
CLASSES USED BY THIS CLASS
VkPrefItem
Page 2
VkPrefGroup(3x)VkPrefGroup(3x)SEE ALSO
VkPrefItem, VkComponent, VkPrefItem,
ViewKit Programmer's Guide
The X Window System, DEC Press, Bob Sheifler and Jim Gettys
The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick
The OSF/Motif Programmers Reference, Prentice Hall, OSF
Page 3