rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
List of all members | Public Member Functions
IlvRegionOptimizer Class Reference

Utility class to optimize a region. More...

#include <ilviews/base/region.h>

Public Member Functions

 IlvRegionOptimizer ()
 Creates a new IlvRegionOptimizer instance.
 
virtual IlBoolean finalize (IlvRegion &region) const
 Is called to optimize the specified region. More...
 
virtual IlBoolean optimize (IlvRegion &region, const IlvRect &rect) const
 Is called to optimize the specified region. More...
 

Detailed Description

Utility class to optimize a region.

Library: xviews or winviews or mviews (mutually exclusive)

This class lets you define the precise way a region should be optimized. Optimizing a region is done each time a region is modified, and just before the drawing of this region occurs.

Member Function Documentation

virtual IlBoolean IlvRegionOptimizer::finalize ( IlvRegion region) const
virtual

Is called to optimize the specified region.

This member function is called before a graphic holder requests an update of its refresh area (what part of the views must be redrawn).

Parameters
regionThe refresh region that must be updated by this member function.
Returns
IlTrue if a change is performed on region and IlFalse otherwise.
virtual IlBoolean IlvRegionOptimizer::optimize ( IlvRegion region,
const IlvRect rect 
) const
virtual

Is called to optimize the specified region.

This member function is called each time a graphic holder modifies its update region by adding a new rectangle to it.

Parameters
regionThe refresh region that must be updated by this member function.
rectThe rectangle to add.
Returns
IlTrue if a change is performed on region and IlFalse otherwise.

© Copyright 2015, 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.