ISWPArray

The ISWPArray (set-window-position) class represents an array of ISWP objects. This class provides functions to do the following:


ISWPArray - Member Functions and Data by Group

Constructors & Destructor

You can construct objects of this class.


[view class]
ISWPArray
public:
ISWPArray(ISWP* array, unsigned dimension)

Constructs objects of this class from ISWP objects.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes

OS/2 Considerations

You can create an ISWP* for array by casting a Presentation Manager PSWP pointer.


Array Contents

Use these members to operate on the collection of ISWP objects.


[view class]
indexOf
public:
unsigned indexOf(unsigned long windowId) const

Returns the 0-based index of an ISWP element in the array. You can pass this index to ISWPArray::operator[] to access the ISWP object.

windowId
The identifier of the window for the desired ISWP object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
operator []
public:
ISWP& operator [](unsigned index)

Returns a reference to the specified element of the array.

index
The 0-based index of the ISWP array element.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
size
public:
unsigned size() const

Returns the dimension of the array, as specified on the constructor.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


ISWPArray - Inherited Member Functions and Data

Inherited Public Functions

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data