InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IResizeWinCmdData Class Referenceabstract

#include <IResizeWinCmdData.h>

Inheritance diagram for IResizeWinCmdData:
IPMUnknown

Public Member Functions

virtual void Set (IWindow *win, const SysCoord &width, const SysCoord &height)=0
 
virtual IWindowGetWindow () const =0
 
virtual void GetDimensions (SysCoord &width, SysCoord &height) const =0
 
virtual void GetDimensionsDelta (SysCoord &widthDelta, SysCoord &heightDelta) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This interface is used to cache the data for kResizeWinCmdBoss.

The command data includes: 1) window that we operate on; 2) width of the window we resize to; 3) height of the window we resize to.

Member Function Documentation

virtual void IResizeWinCmdData::GetDimensions (SysCoord & width,
SysCoord & height 
) const
pure virtual

Get the window's dimension(width/height) which is passed out through parameters(width/height).

Parameters
widthpass out the width of the window we resize to.
heightpass out the height of the window we resize to.
Returns
void.
virtual void IResizeWinCmdData::GetDimensionsDelta (SysCoord & widthDelta,
SysCoord & heightDelta 
) const
pure virtual

Get the delta of window's dimension which is passed out through parameters(widthDelta/heightDelta).

Parameters
widthDeltapass out the delta of window's width which refers to (newWidth - oldWidth).
heightDeltapass out the delta of window's height which refers to (newHeight - oldHeight).
Returns
void.
virtual IWindow* IResizeWinCmdData::GetWindow () const
pure virtual

Get the window we operate on.

Returns
IWindow, the window we operate on.
virtual void IResizeWinCmdData::Set (IWindowwin,
const SysCoord & width,
const SysCoord & height 
)
pure virtual

Set the command data(window, width/height of window).

Parameters
winrefers to the window we operate on.
widthrefers to the width of the window we resize to.
heightrefers to the height of the window we resize to.
Returns
void.