#include <ISetFittingOptionsCmdData.h>
|
| enum | { kDefaultIID = IID_ISETFITTINGOPTIONSCMDDATA } |
| |
| enum | PersistentFitOptions { kMixedFitting = -1, kNoFitting, kFitContents, kFitProportionally, kFillProportionally } |
| |
Command Data interface for the kSetFittingOptionsCmdBoss. Use this interface to pass the fitting options to the command.
Define the default interface IID as IID_ITRANSFORM.
| virtual bool16 ISetFittingOptionsCmdData::GetAutoFit | ( | void | | ) | const |
| pure virtual |
Get the autofit option set via the Set method
| virtual void ISetFittingOptionsCmdData::GetCropAmounts | ( | PMRect * | cropAmounts | ) | const |
| pure virtual |
Get the crop amounts set via the Set method.
| virtual PersistentFitOptions ISetFittingOptionsCmdData::GetFitting | ( | void | | ) | const |
| pure virtual |
Get the fitting option set via the Set method
Get the reference point set via the Set method
Set the options
- Parameters
| refPoint | (IN): one of the 9 reference point positions. |
| cropAmounts | (IN): pass kZeroRect if you do not want the graphic cropped. Otherwise, the coordinates of the rect will be treated as crop amounts as opposed to an actual crop rect. |
| fitting | (IN): pass kNoFitting if you do not want to scale the graphic contents to fit the frame in any way. |
| autoFit | (IN): if kTrue, fitting options are applied when frame changes size or shape |