![]() | InDesign SDK 20.5 |
#include <DVAbstractControlView.h>

Classes | |
| class | AGMOffscreenSetup |
Public Member Functions | |
| DVAbstractControlView (IPMUnknown *boss) | |
| virtual void | Draw (IViewPort *viewPort, SysRgn updateRgn) |
| virtual void | DV_Draw (dvaui::drawbot::Drawbot *drawbotP) const |
Public Member Functions inherited from DVHostedWidgetView | |
| DVHostedWidgetView (IPMUnknown *boss) | |
| virtual void | DoPostCreate () |
| virtual void | ReadWrite (IPMStream *s, ImplementationID prop) |
| virtual void | SetFrame (const PMRect &newFrame, bool16 invalidate=kTrue) |
| virtual const PMRect & | GetFrame () const |
| virtual const PMRect | GetLocalFrame () const |
| virtual PMRect | GetInnerContentFrame () const |
| virtual void | Resize (const PMPoint &newDimensions, bool16 invalidate=kTrue) |
| virtual void | MoveTo (const PMPoint &where, bool16 invalidate=kTrue) |
| virtual void | SetFrameBinding (const FrameBinding &binding) |
| virtual FrameBinding | GetFrameBinding () const |
| virtual void | AdaptToParentsSize (const PMPoint &dimensions) |
| virtual void | AdaptToChildsGeometry (const PMPoint &delta, const FrameBinding &childsBinding, bool16 invalidate=kFalse) |
| virtual SysRgn | GetDrawRegion () |
| virtual bool16 | DrawRegionEncompassesChildRegions () const |
| virtual void | DeleteDrawRegion () |
| virtual int32 | HitTest (const SysPoint &where) |
| virtual void | ForceRedraw (SysRgn invalidRgn, bool16 forceRedraw) |
| virtual void | Invalidate (PMRect *bbox=nil) |
| virtual void | Validate (PMRect *bbox=nil) |
| virtual void | Hilite (bool16 doHilite=kTrue) |
| virtual void | Unhilite () |
| virtual bool16 | IsHilited () const |
| virtual bool16 | IsRolledOver () const |
| virtual void | Show (bool16 doShow) |
| virtual void | Hide () |
| virtual bool16 | GetVisibleState () const |
| virtual bool16 | IsVisible (bool16 requireVisibleWindow=kFalse) const |
| virtual void | Enable (bool16 doEnable, bool16 invalidate) |
| virtual void | Disable (bool16 invalidate) |
| virtual bool16 | GetEnableState () const |
| virtual bool16 | IsEnabled () const |
| virtual void | ParentsEnableStateChanged (bool16 enable, bool16 invalidate) |
| virtual void | Init (const WidgetID &widgetId=kDefaultWidgetId, const PMRect &bbox=kZeroRect, RsrcID rsrcID=0) |
| virtual void | DoAutoDetach () |
| virtual PMRect | GlobalToView (const PMRect &convertRect) const |
| virtual PMPoint | GlobalToView (const PMPoint &convertPoint) const |
| virtual PMRect | GlobalToWindow (const PMRect &convertRect) const |
| virtual PMPoint | GlobalToWindow (const PMPoint &convertPoint) const |
| virtual PMRect | ViewToGlobal (const PMRect &convertRect) const |
| virtual PMPoint | ViewToGlobal (const PMPoint &convertPoint) const |
| virtual PMRect | WindowToGlobal (const PMRect &convertRect) const |
| virtual PMPoint | WindowToGlobal (const PMPoint &convertPoint) const |
| virtual void | SetClipToSelfEnabled (bool16 clipChildren) const |
| bool16 | IsWidgetConstructionFinished () const |
| void | WidgetConstructionFinished (const bool16 bFlag) |
| void | MarkDisabledByNonSuppressedUIIfRequired (const bool16 bFlag) |
| void | MarkHiddenByNonSuppressedUIIfRequired (const bool16 bFlag) |
| bool16 | IsDisabledBySuppressedUI () const |
| void | DisableBySuppressedUI (const bool16 bFlag) |
| bool16 | IsHiddenBySuppressedUI () const |
| void | HideBySuppressedUI (const bool16 bFlag) |
Public Member Functions inherited from AbstractControlView | |
| AbstractControlView (IPMUnknown *boss) | |
| virtual RsrcID | GetRsrcID () const |
| virtual void | SetRsrcID (const RsrcID &id) |
| virtual PluginID | GetRsrcPluginID () const |
| virtual void | SetRsrcPluginID (const PluginID &id) |
| virtual WidgetID | GetWidgetID () const |
| virtual void | SetWidgetID (const WidgetID &id) |
| virtual PMPoint | ConstrainDimensions (const PMPoint &dimensions) const |
| virtual SysRect | GetBBox () const |
| virtual PMMatrix * | GetContentToWindowTransform () const |
| virtual void | ContentToWindowTransform (PMPoint *point) const |
| virtual void | ContentToWindowTransform (PMRect *rect) const |
| virtual void | ContentToWindowTransform (PMPolygon4 *poly) const |
| virtual void | WindowToContentTransform (PMPoint *point) const |
| virtual void | WindowToContentTransform (PMRect *rect) const |
| virtual void | WindowToContentTransform (PMPolygon4 *poly) const |
| virtual PMMatrix | GetContentToWindowMatrix () const |
| virtual PMMatrix | GetWindowToContentMatrix () const |
| virtual PMRect | GetContentBounds_ () const |
| virtual void | InvalidateTransform () |
| virtual void | ParentsVisibleStateChanged (bool16 visible) |
| virtual void | WindowActivated () |
| virtual void | WindowDeactivated () |
| virtual void | WindowShown () |
| virtual void | WindowHidden () |
| virtual void | WindowChanged () |
| virtual void | WindowClosed () |
| virtual void | ParentPurged () |
| virtual void | DoAutoAttach () |
Public Member Functions inherited from IControlView | |
| void | ShowView (bool16 doShow=kTrue) |
| void | HideView () |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Static Public Member Functions | |
For Internal Use Only | |
| static void | PreDraw (IViewPort *viewPort, IControlView *iView, int32 &setupFlagsOut, ICMSProofing *cmsProof) |
| static void | PostDraw (IViewPort *viewPort, IControlView *iView, int32 setupFlagsIn, ICMSProofing *cmsProof) |
Additional Inherited Members | |
Public Types inherited from IControlView | |
| enum | { kDefaultIID = IID_ICONTROLVIEW } |
Protected Member Functions inherited from DVHostedWidgetView | |
| virtual void | SetVisibleState (bool16 isVisible=kTrue) |
| virtual void | SetEnableState (bool16 isVisible=kTrue) |
| virtual bool16 | AncestorsAreVisible (bool16 requireVisibleWindow) const |
| virtual PMMatrix * | GetUpdatedContentToWindowTransform () |
| virtual void | CreateDrawRegion (SysRgn &drawRgn) |
| virtual bool16 | IsAutoAttached () const |
| virtual void | SetIsAutoAttached (bool16 flag=kTrue) |
| void | Set_UI_Node (dvaui::ui::UI_Node *node) |
| dvaui::ui::UI_Node * | Get_UI_Node () const |
| void | Release_UI_Node () |
| virtual void | BoundsChangedCallback () |
| virtual void | ParentEnableStateChangedCallback () |
| virtual void | ResizeChildren (const PMPoint &delta, bool16 invalidate) |
| virtual void | AdaptLayoutToFrameBindings (const PMPoint &delta, bool16 invalidate=kTrue) |
| virtual void | DoAfterKeyfocusChangedCallback () |
Protected Attributes inherited from DVHostedWidgetView | |
| unsigned int | fGeometryBusy: 1 |
DVAbstractControlView is, not surprisingly, an abstract ControlView class.
It's purpose is to bridge the drawing environments of drover's drawbot and IControlView's IGraphicsPort. When DV_Draw is called, DVAbstractControlView sets up an offscreen drawing environment for AGM-based drawing clients and calls their traditional Draw method. Before returning DV_Draw blits the offscreen pixels back into the hosts drawing environment.
Internal use Only: DVAbstractControlView cannot be subclassed by external clients since it requires a drover based implementation class. External clients should use a concrete class like DVControlView, AGMDrawPanelView, DVPanelView, etc. instead.
| virtual |
override of IControlView::Draw, the traditional ControlView drawing method.
Reimplemented from DVHostedWidgetView.
Reimplemented in CusDtLnkUICustomView, PnlTrvCustomView, TableCellView, AGMDrawnPanelView, DVDropDownElementView, and HiDPIWidgetControlView.
| virtual |
override of DVHostedWidgetView::DV_Draw, the droverized ControlView drawing method. Intended for internal use only, but a few simple drawing primitives are available in DVPublicUtilities.h. This implementation sets up an offscreen graphics port and calls the traditional Draw method.
Reimplemented from DVHostedWidgetView.
Reimplemented in DVBasePanelView, DVErasablePanelView, DVPalettePanelView, and DVPanelViewCustomColor.