Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32std.h>

Class RRegionBuf

class RRegionBuf : public RRegion;

Description

Region with pre-allocated buffer.

This class provides the functionality of an RRegion, but in addition, for optimisation purposes, uses a buffer containing pre-allocated space for as many rectangles as are specified in the granularity.

When this buffer is full, cell allocation takes place as for an RRegion, and the RRegionBuf effectively becomes an RRegion. In this case, the region does not revert to using the buffer, even if the region were to shrink so that the buffer could, once again, contain the region. When the region is no longer required, call RRegion::Close(), defined in the base class RRegion, to free up all memory.

Derivation

Members

Defined in RRegionBuf:

Inherited from RRegion:

Inherited from TRegion:


Construction and destruction


RRegionBuf()

inline RRegionBuf();

Description

Constructs a default object.

The granularity is the value of the template parameter.


RRegionBuf(const RRegion &)

inline RRegionBuf(const RRegion &aRegion);

Description

Constructs this object from the specified RRegion.

Parameters

const RRegion &aRegion

The region to assign to this RRegionBuf.


RRegionBuf(const RRegionBuf< S > &)

inline RRegionBuf(const RRegionBuf< S > &aRegion);

Description

Copy constructs from an existing RRegionBuf object.

Parameters

const RRegionBuf< S > &aRegion

The RRegionBuf to be copied.


RRegionBuf(const TRect &)

inline RRegionBuf(const TRect &aRect);

Description

Constructs an RRegionBuf with a TRect.

Its granularity is initialised to the value contained in the template argument. The resulting region consists of the specified single rectangle.

Parameters

const TRect &aRect

The single rectangle with which to initialise the region.