rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

itemgdt.h File Reference

#include <ilviews/base/iostream.h>
#include <ilviews/base/graphic.h>
#include <ilviews/gadgets/itemtool.h>
#include <ilviews/base/value.h>
#include <ilviews/base/alloc.h>
#include <ilviews/util/animator.h>
#include <ilviews/bidi/interf.h>

Classes

class  IlvGadgetItem
 Gadget Item class. More...
class  IlvGadgetItemHolder
 Item holder class. More...
class  IlvListGadgetItemHolder
 Item holder class. More...

Defines

#define DeclareGadgetItemInfo()
#define DeclareGadgetItemInfoRO()
#define DeclareGadgetItemIOConstructors(classname)
#define IlvPredefinedGadgetItemIOMembers(classname)
#define IlvRegisterGadgetItemClass(classname, superclass)

Typedefs

typedef IlBoolean(* IlvApplyGadgetItem )(IlvGadgetItem *item, IlAny arg)
typedef int(* IlvListCompareFunction )(const char *string1, const char *string2, IlAny data1, IlAny data2)

Detailed Description

[library ilvgadgt ilviews/gadgets/itemgdt.h] Declaration of the IlvGadgetItem and related classes


Define Documentation

 
#define DeclareGadgetItemInfo (  ) 

Use this macro to declare the input/output routines of your gadget item subclass readItem, write, and copy.

See also:
DeclareGadgetItemInfoRO, DeclareGadgetItemIOConstructors
 
#define DeclareGadgetItemInfoRO (  ) 

Use this macro to declare the input/output routines of your gadget item subclass when you do not need to add the write member function (that is, your gadget item subtype do not add any new data that needs to be saved, and the implementation of the write member function in the parent class already does the job).

See also:
DeclareGadgetItemInfo, DeclareGadgetItemIOConstructors.
#define DeclareGadgetItemIOConstructors ( classname   ) 

Use this macro to declare the input/output constructors of your gadget item subclass.

Parameters:
classname The class name.
See also:
DeclareGadgetItemInfoRO, DeclareGadgetItemInfo
#define IlvPredefinedGadgetItemIOMembers ( classname   ) 

Use this macro to provide a default implementation for the copy and readItem member functions of the IlvGadgetItem class when subclassing it.

Parameters:
classname The name of the class.
See also:
DeclareGadgetItemIOConstructors, DeclareGadgetItemInfo.
#define IlvRegisterGadgetItemClass ( classname,
superclass   ) 

Use this macro to register your subclass of IlvGadgetItem.

Parameters:
classname The name of the class being registered.
superclass The superclass of classname.

Typedef Documentation

Defines the type of the function used by the IlvGadgetItemHolder::applyToItems method.

Parameters:
item The item on which the function is invoked.
arg The argument passed to the function.
Returns:
The function should return IlFalse to stop the apply mechanism, or IlTrue to continue.
See also:
IlvGadgetItemHolder::applyToItems.

Defines the type of the function used by the sorting algorithm of the IlvListGadgetItemHolder to compare two items.

Parameters:
string1 The label of the first item.
string2 The label of the second item.
value1 The client data of the first item.
value2 The client data of the second item.
See also:
IlvListGadgetItemHolder::sort
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.