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)
628 virtual void drawPolygon(
const PointVector& points_,
const bool fill_ =
false);
644 virtual void drawImage(
const Point& tl_,
const int16_t pngID_,
const double scale_ = 1.0);
661 const std::string& text_,
663 const double fontSize_
666 #if defined(HDI_CORE_PSP_MODE)
686 virtual void drawPixelData(
687 const PixelMap& srcPM_,
688 const Rect& srcArea_,
696 typedef std::unique_ptr<CustomWidget> CustomWidgetUP;
697 typedef std::shared_ptr<CustomWidget> CustomWidgetSP;
698 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:32
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:898