VkWidgetList(3x) VkWidgetList(3x)
VkWidgetList - Supports operations on a list of widgets
#include <Vk/VkWidgetList.h>
PUBLIC PROTOCOL SUMMARY
Constructor/Destructor
VkWidgetList(void);
virtual ~VkWidgetList(void);
Adding and Removing Elements [Toc] [Back]
virtual void add(Widget w);
virtual void add(VkComponent* comp);
virtual void remove(VkComponent* comp);
virtual void remove(Widget w);
virtual void removeFirst(void);
virtual void removeLast(void);
Checking For Membership
virtual Boolean exists(Widget w);
Traversing the list [Toc] [Back]
int size(void);
Widget operator[](int index);
The VkWidgetList class provides a convenient way to maintain and
manipulate lists of widgets. Widgets can be added and removed from
the list, or accessed by index. The VkWidgetList adds a
destroyCallback to each added widget to maintain the integrity of
the list when widgets are destroyed.
VkWidgetList() [Toc] [Back]
VkWidgetList(void);
Initialize an empty list.
~VkWidgetList()
virtual void ~VkWidgetList(void);
Destroy the storage used by a VkWidgetList object. Does not destroy
any widgets currently on the list.
Page 1
VkWidgetList(3x) VkWidgetList(3x)
add()
virtual void add(Widget w);
virtual void add(VkComponent* comp);
Add a widget or component to a list. If a component is added, the
component's base widget is added to the list.
remove()
virtual void remove(VkComponent* comp);
virtual void remove(Widget w);
Remove a widget or a component's base widget from the list.
removeFirst()
virtual void removeFirst(void);
Remove the widget from the head of the list.
removeLast()
virtual void removeLast(void);
Remove the widget from the tail of the list.
exists()
virtual Boolean exists(Widget w);
Return TRUE if the given widget is currently a member of the list.
size()
int size(void);
Return the number of items on a list.
operator[]()
Widget operator[](int index);
Return a specific widget by index.
KNOWN DERIVED CLASSES [Toc] [Back] VkAlignmentGroup, VkGangedGroup, VkRadioGroup
CLASSES USED BY THIS CLASS
VkComponent
Page 2
VkWidgetList(3x) VkWidgetList(3x)
KNOWN CLASSES THAT USE THIS CLASS [Toc] [Back] VkAlignmentGroup, VkDialogManager, VkGangedGroup, VkRadioGroup
VkAlignmentGroup, VkComponent, VkGangedGroup, VkRadioGroup
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
PPPPaaaaggggeeee 3333 [ Back ]
|