7#ifndef __HDI_CORE_CUSTOM_WIDGET__
8#define __HDI_CORE_CUSTOM_WIDGET__
22 #if defined(HDI_CORE_AIP_MODE)
26 #if defined(HDI_CORE_PSP_MODE)
37 typedef std::vector<Point> PointVector;
150 #if defined(HDI_CORE_PSP_MODE)
166 virtual bool getScrollDeltas(
double& dx__,
double& dy__)
const;
309 #if defined(HDI_CORE_PSP_MODE)
317 virtual Callback*
const scrollCallback()
const;
326 virtual void setScrollCallback(
const Callback& cb_);
462 #if defined(HDI_CORE_AIP_MODE)
636 virtual void drawPolygon(
const PointVector& points_,
const bool fill_ =
false);
652 virtual void drawImage(
const Point& tl_,
const int16_t pngID_,
const double scale_ = 1.0);
669 const std::string& text_,
671 const double fontSize_
674 #if defined(HDI_CORE_PSP_MODE)
694 virtual void drawPixelData(
695 const PixelMap& srcPM_,
696 const Rect& srcArea_,
704 typedef std::unique_ptr<CustomWidget> CustomWidgetUP;
705 typedef std::shared_ptr<CustomWidget> CustomWidgetSP;
706 typedef std::weak_ptr<CustomWidget> CustomWidgetWP;
Base class for templated __Callback class.
Definition hdicoreCallback.h:68
Describes an RGB color, with opacity, typically for UI purposes.
Definition hdicoreColor.h:34
Font class to allow for easy font manipulation.
Definition hdicoreFont.h:183
Used to add a panel to Illustrator's UI and contain various UI widgets.
Definition hdicorePanel.h:36
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition hdicorePoint.h:38
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition hdicoreRect.h:34
Header file for describing plugin UI colors.
ModifierKey
Describes various modifier keys.
Definition hdicoreTypes.h:931