InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PanoramaUpdateParams Class Reference

#include <IPanorama.h>

Public Member Functions

 PanoramaUpdateParams (IPanorama *panorama, const PMPoint &offset)
 
 PanoramaUpdateParams (IPanorama *panorama, const PMReal &xScaleFactor, const PMReal &yScaleFactor)
 

Public Attributes

IPanoramafPanorama
 
PMPoint fOffset
 
PMReal fXScaleFactor
 
PMReal fYScaleFactor
 

Detailed Description

Utility class used to notify observers how a panorama has scrolled. Panoramas notify interested observers when a change in perspective occurrs. In order to support live scrolling and hardware scrolling, observers need more information than just a pointer to the panorama. A pointer to the following structure is placed in the changedBy parameter of update when observers are notified of changes.

Currently there is a bug when InDesign broadcasts kScrollToMessage, the offset value is the negative of what it should be so current observers need to take this into account.

Constructor & Destructor Documentation

PanoramaUpdateParams::PanoramaUpdateParams (IPanoramapanorama,
const PMPointoffset 
)
inline

scroll constructor

PanoramaUpdateParams::PanoramaUpdateParams (IPanoramapanorama,
const PMRealxScaleFactor,
const PMRealyScaleFactor 
)
inline

scale constructor

Member Data Documentation

PMPoint PanoramaUpdateParams::fOffset

scroll offset

IPanorama* PanoramaUpdateParams::fPanorama

the panorama

PMReal PanoramaUpdateParams::fXScaleFactor

X scale factor

PMReal PanoramaUpdateParams::fYScaleFactor

Y scale factor