|
iPlug2 - C++ Audio Plug-in Framework
|
Utility structures and classes for IGraphics. More...
Classes | |
| class | IPopupMenu |
| A class for setting the contents of a pop up menu. More... | |
| class | IBitmap |
| User-facing bitmap abstraction that you use to manage bitmap data, independant of draw class/platform. More... | |
| struct | ISVG |
| User-facing SVG abstraction that you use to manage SVG data ISVG doesn't actually own the image data. More... | |
| struct | IColor |
| Used to manage color data, independent of draw class/platform. More... | |
| struct | IBlend |
| Used to manage composite/blend operations, independent of draw class/platform. More... | |
| struct | IFillOptions |
| Used to manage fill behaviour. More... | |
| struct | IStrokeOptions |
| Used to manage stroke behaviour for path based drawing back ends. More... | |
| struct | IText |
| IText is used to manage font and text/text entry style for a piece of text on the UI, independent of draw class/platform. More... | |
| struct | IRECT |
| Used to manage a rectangular area, independent of draw class/platform. More... | |
| struct | IMouseMod |
| Used to manage mouse modifiers i.e. More... | |
| struct | IMouseInfo |
| Used to group mouse coordinates with mouse modifier information. More... | |
| struct | IGestureInfo |
| Used to describe a particular gesture. More... | |
| class | IRECTList |
| Used to manage a list of rectangular areas and optimize them for drawing to the screen. More... | |
| struct | IMatrix |
| Used to store transformation matrices. More... | |
| struct | IColorStop |
| Used to represent a point/stop in a gradient. More... | |
| struct | IPattern |
| Used to store pattern information for gradients. More... | |
| class | ILayer |
| An abstraction that is used to store a temporary raster image/framebuffer. More... | |
| struct | IShadow |
| Used to specify properties of a drop-shadow to a layer. More... | |
| struct | IVColorSpec |
| Contains a set of 9 colors used to theme IVControls. More... | |
| struct | IVStyle |
| A struct encapsulating a set of properties used to configure IVControls. More... | |
| struct | IAccessibleNode |
| Used to describe a control (or a part of a control) to assistive technology. More... | |
Typedefs | |
| using | IActionFunction = std::function< void(IControl *)> |
| using | IAnimationFunction = std::function< void(IControl *)> |
| using | IControlFunction = std::function< void(IControl *)> |
| using | ILambdaDrawFunction = std::function< void(ILambdaControl *, IGraphics &, IRECT &)> |
| using | IKeyHandlerFunc = std::function< bool(const IKeyPress &key, bool isUp)> |
| using | IDropHandlerFunc = std::function< bool(const std::vector< const char * > &paths, float x, float y)> |
| using | IMsgBoxCompletionHandlerFunc = std::function< void(EMsgBoxResult result)> |
| using | IFileDialogCompletionHandlerFunc = std::function< void(const WDL_String &fileName, const WDL_String &path)> |
| using | IColorPickerHandlerFunc = std::function< void(const IColor &result)> |
| using | IGestureFunc = std::function< void(IControl *, const IGestureInfo &)> |
| using | IPopupFunction = std::function< void(IPopupMenu *pMenu)> |
| using | IDisplayTickFunc = std::function< void()> |
| using | IUIAppearanceChangedFunc = std::function< void(EUIAppearance appearance)> |
| using | ILiveEditEventFunc = std::function< void(const char *eventJson)> |
| using | ITouchID = uintptr_t |
| using | MTLTexturePtr = void * |
| using | Milliseconds = std::chrono::duration< double, std::chrono::milliseconds::period > |
| using | TimePoint = std::chrono::time_point< std::chrono::high_resolution_clock, Milliseconds > |
| using | ILayerPtr = std::unique_ptr< ILayer > |
| ILayerPtr is a managed pointer for transferring the ownership of layers. More... | |
| using | IAccessibleNodeList = std::vector< IAccessibleNode > |
| A list of IAccessibleNode. More... | |
Enumerations | |
| enum class | EAccessibleRole { None , Group , Label , Button , Toggle , Slider , ComboBox , RadioGroup , RadioButton , TabList , Tab , Meter , Image , TextInput , Menu , MenuItem } |
| The semantic role of a control (or part of a control), reported to assistive technology such as screen readers. More... | |
| enum class | EAccessibleAction { Click , Increment , Decrement , SetValue , Focus } |
| An action that can be performed on a control via assistive technology or keyboard navigation. More... | |
Functions | |
| void | EmptyClickActionFunc (IControl *pCaller) |
| A click action function that does nothing. More... | |
| void | DefaultClickActionFunc (IControl *pCaller) |
| A click action function that triggers the default animation function for DEFAULT_ANIMATION_DURATION. More... | |
| void | DefaultAnimationFunc (IControl *pCaller) |
| An animation function that just calls the caller control's OnEndAnimation() method at the end of the animation More... | |
| void | SplashClickActionFunc (IControl *pCaller) |
| The splash click action function is used by IVControls to start SplashAnimationFunc. More... | |
| void | SplashAnimationFunc (IControl *pCaller) |
| The splash animation function is used by IVControls to animate the splash. More... | |
| void | ShowBubbleHorizontalActionFunc (IControl *pCaller) |
| Use with a param-linked control to popup the bubble control horizontally. More... | |
| void | ShowBubbleVerticalActionFunc (IControl *pCaller) |
| Use with a param-linked control to popup the bubble control vertically. More... | |
| const IColor | COLOR_TRANSPARENT (0, 0, 0, 0) |
| const IColor | COLOR_TRANSLUCENT (10, 0, 0, 0) |
| const IColor | COLOR_BLACK (255, 0, 0, 0) |
| const IColor | COLOR_BLACK_DROP_SHADOW (128, 0, 0, 0) |
| const IColor | COLOR_GRAY (255, 127, 127, 127) |
| const IColor | COLOR_LIGHT_GRAY (255, 240, 240, 240) |
| const IColor | COLOR_MID_GRAY (255, 200, 200, 200) |
| const IColor | COLOR_DARK_GRAY (255, 70, 70, 70) |
| const IColor | COLOR_WHITE (255, 255, 255, 255) |
| const IColor | COLOR_RED (255, 255, 0, 0) |
| const IColor | COLOR_GREEN (255, 0, 255, 0) |
| const IColor | COLOR_BLUE (255, 0, 0, 255) |
| const IColor | COLOR_YELLOW (255, 255, 255, 0) |
| const IColor | COLOR_ORANGE (255, 255, 127, 0) |
| const IColor | COLOR_INDIGO (255, 75, 0, 130) |
| const IColor | COLOR_VIOLET (255, 148, 0, 211) |
| static IColor | GetRainbow (int colorIdx) |
| float | BlendWeight (const IBlend *pBlend) |
| Helper function to extract the blend weight value from an IBlend ptr if it is valid. More... | |
| static const char * | TextStyleString (ETextStyle style) |
| Helper to get a CString based on ETextStyle. More... | |
Variables | |
| const IColor | DEFAULT_GRAPHICS_BGCOLOR = COLOR_GRAY |
| const IColor | DEFAULT_BGCOLOR = COLOR_TRANSPARENT |
| const IColor | DEFAULT_FGCOLOR = COLOR_MID_GRAY |
| const IColor | DEFAULT_PRCOLOR = COLOR_LIGHT_GRAY |
| const IColor | DEFAULT_FRCOLOR = COLOR_DARK_GRAY |
| const IColor | DEFAULT_HLCOLOR = COLOR_TRANSLUCENT |
| const IColor | DEFAULT_SHCOLOR = IColor(60, 0, 0, 0) |
| const IColor | DEFAULT_X1COLOR = COLOR_BLACK |
| const IColor | DEFAULT_X2COLOR = COLOR_GREEN |
| const IColor | DEFAULT_X3COLOR = COLOR_BLUE |
| const IColor | DEFAULT_TEXT_FGCOLOR = COLOR_BLACK |
| const IColor | DEFAULT_TEXTENTRY_BGCOLOR = COLOR_WHITE |
| const IColor | DEFAULT_TEXTENTRY_FGCOLOR = COLOR_BLACK |
| const IBlend | BLEND_75 = IBlend(EBlend::Default, 0.75f) |
| const IBlend | BLEND_50 = IBlend(EBlend::Default, 0.5f) |
| const IBlend | BLEND_25 = IBlend(EBlend::Default, 0.25f) |
| const IBlend | BLEND_10 = IBlend(EBlend::Default, 0.1f) |
| const IBlend | BLEND_05 = IBlend(EBlend::Default, 0.05f) |
| const IBlend | BLEND_01 = IBlend(EBlend::Default, 0.01f) |
| const IBlend | BLEND_DST_IN = IBlend(EBlend::DstIn, 1.f) |
| const IBlend | BLEND_DST_OVER = IBlend(EBlend::DstOver, 1.f) |
| const IText | DEFAULT_TEXT = IText() |
| const IVColorSpec | DEFAULT_COLOR_SPEC = IVColorSpec() |
| static constexpr bool | DEFAULT_HIDE_CURSOR = true |
| static constexpr bool | DEFAULT_SHOW_VALUE = true |
| static constexpr bool | DEFAULT_SHOW_LABEL = true |
| static constexpr bool | DEFAULT_DRAW_FRAME = true |
| static constexpr bool | DEFAULT_DRAW_SHADOWS = true |
| static constexpr bool | DEFAULT_EMBOSS = false |
| static constexpr float | DEFAULT_ROUNDNESS = 0.f |
| static constexpr float | DEFAULT_FRAME_THICKNESS = 1.f |
| static constexpr float | DEFAULT_SHADOW_OFFSET = 3.f |
| static constexpr float | DEFAULT_WIDGET_FRAC = 1.f |
| static constexpr float | DEFAULT_WIDGET_ANGLE = 0.f |
| static constexpr EOrientation | DEFAULT_LABEL_ORIENTATION = EOrientation::North |
| const IText | DEFAULT_LABEL_TEXT {DEFAULT_TEXT_SIZE + 5.f, EVAlign::Top} |
| const IText | DEFAULT_VALUE_TEXT {DEFAULT_TEXT_SIZE, EVAlign::Bottom} |
| const IVStyle | DEFAULT_STYLE = IVStyle() |
Utility structures and classes for IGraphics.
| struct IStrokeOptions |
Used to manage stroke behaviour for path based drawing back ends.
Definition at line 598 of file IGraphicsStructs.h.
| Class Members | ||
|---|---|---|
| ELineCap | mCapOption = ELineCap::Butt | |
| DashOptions | mDash | |
| ELineJoin | mJoinOption = ELineJoin::Miter | |
| float | mMiterLimit = 10.f | |
| bool | mPreserve = false | |
| struct IMouseInfo |
Used to group mouse coordinates with mouse modifier information.
Definition at line 1729 of file IGraphicsStructs.h.
| Class Members | ||
|---|---|---|
| float | dX = 0.0 | |
| float | dY = 0.0 | |
| IMouseMod | ms | |
| float | x = 0.0 | |
| float | y = 0.0 | |
| struct IGestureInfo |
Used to describe a particular gesture.
Definition at line 1737 of file IGraphicsStructs.h.
| Class Members | ||
|---|---|---|
| float | angle = 0.f | |
| float | scale = 0.f | |
| EGestureState | state = EGestureState::Unknown | |
| EGestureType | type = EGestureType::Unknown | |
| float | velocity = 0.f | |
| float | x = 0.f | |
| float | y = 0.f | |
| using IAccessibleNodeList = std::vector<IAccessibleNode> |
A list of IAccessibleNode.
The first node describes the control itself, any following nodes are its children
Definition at line 2673 of file IGraphicsStructs.h.
| using IActionFunction = std::function<void(IControl*)> |
Definition at line 46 of file IGraphicsStructs.h.
| using IAnimationFunction = std::function<void(IControl*)> |
Definition at line 47 of file IGraphicsStructs.h.
| using IColorPickerHandlerFunc = std::function<void(const IColor& result)> |
Definition at line 54 of file IGraphicsStructs.h.
| using IControlFunction = std::function<void(IControl*)> |
Definition at line 48 of file IGraphicsStructs.h.
| using IDisplayTickFunc = std::function<void()> |
Definition at line 57 of file IGraphicsStructs.h.
| using IDropHandlerFunc = std::function<bool(const std::vector<const char*>& paths, float x, float y)> |
Definition at line 51 of file IGraphicsStructs.h.
| using IFileDialogCompletionHandlerFunc = std::function<void(const WDL_String& fileName, const WDL_String& path)> |
Definition at line 53 of file IGraphicsStructs.h.
| using IGestureFunc = std::function<void(IControl*, const IGestureInfo&)> |
Definition at line 55 of file IGraphicsStructs.h.
| using IKeyHandlerFunc = std::function<bool(const IKeyPress& key, bool isUp)> |
Definition at line 50 of file IGraphicsStructs.h.
| using ILambdaDrawFunction = std::function<void(ILambdaControl*, IGraphics&, IRECT&)> |
Definition at line 49 of file IGraphicsStructs.h.
ILayerPtr is a managed pointer for transferring the ownership of layers.
Definition at line 2382 of file IGraphicsStructs.h.
| using ILiveEditEventFunc = std::function<void(const char* eventJson)> |
Definition at line 59 of file IGraphicsStructs.h.
| using IMsgBoxCompletionHandlerFunc = std::function<void(EMsgBoxResult result)> |
Definition at line 52 of file IGraphicsStructs.h.
| using IPopupFunction = std::function<void(IPopupMenu* pMenu)> |
Definition at line 56 of file IGraphicsStructs.h.
| using ITouchID = uintptr_t |
Definition at line 60 of file IGraphicsStructs.h.
| using IUIAppearanceChangedFunc = std::function<void(EUIAppearance appearance)> |
Definition at line 58 of file IGraphicsStructs.h.
| using Milliseconds = std::chrono::duration<double, std::chrono::milliseconds::period> |
Definition at line 85 of file IGraphicsStructs.h.
| using MTLTexturePtr = void* |
Definition at line 83 of file IGraphicsStructs.h.
| using TimePoint = std::chrono::time_point<std::chrono::high_resolution_clock, Milliseconds> |
Definition at line 86 of file IGraphicsStructs.h.
|
strong |
An action that can be performed on a control via assistive technology or keyboard navigation.
Definition at line 2612 of file IGraphicsStructs.h.
|
strong |
The semantic role of a control (or part of a control), reported to assistive technology such as screen readers.
Definition at line 2591 of file IGraphicsStructs.h.
|
inline |
Helper function to extract the blend weight value from an IBlend ptr if it is valid.
| pBlend | ptr to an IBlend or nullptr |
Definition at line 569 of file IGraphicsStructs.h.
Referenced by IGraphicsNanoVG::DrawBitmap().
| void DefaultAnimationFunc | ( | IControl * | pCaller | ) |
An animation function that just calls the caller control's OnEndAnimation() method at the end of the animation
Definition at line 21 of file IControl.cpp.
References IControl::GetAnimationProgress().
Referenced by DefaultClickActionFunc(), and ILambdaControl::OnMouseDown().
| void DefaultClickActionFunc | ( | IControl * | pCaller | ) |
A click action function that triggers the default animation function for DEFAULT_ANIMATION_DURATION.
Definition at line 45 of file IControl.cpp.
References DefaultAnimationFunc(), and IControl::SetAnimation().
| void EmptyClickActionFunc | ( | IControl * | pCaller | ) |
A click action function that does nothing.
Definition at line 43 of file IControl.cpp.
|
static |
Definition at line 519 of file IGraphicsStructs.h.
| void ShowBubbleHorizontalActionFunc | ( | IControl * | pCaller | ) |
Use with a param-linked control to popup the bubble control horizontally.
Definition at line 55 of file IControl.cpp.
References IParam::GetDisplayWithLabel(), IControl::GetParam(), IControl::GetRECT(), IControl::GetUI(), and IRECT::MH().
| void ShowBubbleVerticalActionFunc | ( | IControl * | pCaller | ) |
Use with a param-linked control to popup the bubble control vertically.
Definition at line 66 of file IControl.cpp.
References IParam::GetDisplayWithLabel(), IControl::GetParam(), IControl::GetRECT(), IControl::GetUI(), and IRECT::MW().
| void SplashAnimationFunc | ( | IControl * | pCaller | ) |
The splash animation function is used by IVControls to animate the splash.
Definition at line 30 of file IControl.cpp.
References IControl::As(), IControl::GetAnimationProgress(), and IControl::SetDirty().
Referenced by SplashClickActionFunc().
| void SplashClickActionFunc | ( | IControl * | pCaller | ) |
The splash click action function is used by IVControls to start SplashAnimationFunc.
Definition at line 47 of file IControl.cpp.
References IControl::As(), IGraphics::GetMouseDownPoint(), IControl::GetUI(), IControl::SetAnimation(), and SplashAnimationFunc().
Referenced by IVMenuButtonControl::IVMenuButtonControl(), IVNumberBoxControl::OnAttached(), IVBakedPresetManagerControl::OnAttached(), IVDiskPresetManagerControl::OnAttached(), and TestPopupMenuControl::OnAttached().
|
static |
Helper to get a CString based on ETextStyle.
Definition at line 657 of file IGraphicsStructs.h.
Definition at line 579 of file IGraphicsStructs.h.
Definition at line 578 of file IGraphicsStructs.h.
Definition at line 577 of file IGraphicsStructs.h.
Definition at line 576 of file IGraphicsStructs.h.
Definition at line 575 of file IGraphicsStructs.h.
Definition at line 574 of file IGraphicsStructs.h.
Definition at line 580 of file IGraphicsStructs.h.
Definition at line 581 of file IGraphicsStructs.h.
| const IColor DEFAULT_BGCOLOR = COLOR_TRANSPARENT |
Definition at line 536 of file IGraphicsStructs.h.
| const IVColorSpec DEFAULT_COLOR_SPEC = IVColorSpec() |
Definition at line 2478 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2483 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2484 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2485 of file IGraphicsStructs.h.
| const IColor DEFAULT_FGCOLOR = COLOR_MID_GRAY |
Definition at line 537 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2487 of file IGraphicsStructs.h.
| const IColor DEFAULT_FRCOLOR = COLOR_DARK_GRAY |
Definition at line 540 of file IGraphicsStructs.h.
| const IColor DEFAULT_GRAPHICS_BGCOLOR = COLOR_GRAY |
Definition at line 535 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2480 of file IGraphicsStructs.h.
| const IColor DEFAULT_HLCOLOR = COLOR_TRANSLUCENT |
Definition at line 541 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2491 of file IGraphicsStructs.h.
| const IText DEFAULT_LABEL_TEXT {DEFAULT_TEXT_SIZE + 5.f, EVAlign::Top} |
Definition at line 2492 of file IGraphicsStructs.h.
| const IColor DEFAULT_PRCOLOR = COLOR_LIGHT_GRAY |
Definition at line 538 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2486 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2488 of file IGraphicsStructs.h.
Definition at line 542 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2482 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2481 of file IGraphicsStructs.h.
Definition at line 2588 of file IGraphicsStructs.h.
Definition at line 752 of file IGraphicsStructs.h.
| const IColor DEFAULT_TEXT_FGCOLOR = COLOR_BLACK |
Definition at line 547 of file IGraphicsStructs.h.
| const IColor DEFAULT_TEXTENTRY_BGCOLOR = COLOR_WHITE |
Definition at line 548 of file IGraphicsStructs.h.
| const IColor DEFAULT_TEXTENTRY_FGCOLOR = COLOR_BLACK |
Definition at line 549 of file IGraphicsStructs.h.
| const IText DEFAULT_VALUE_TEXT {DEFAULT_TEXT_SIZE, EVAlign::Bottom} |
Definition at line 2493 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2490 of file IGraphicsStructs.h.
|
staticconstexpr |
Definition at line 2489 of file IGraphicsStructs.h.
| const IColor DEFAULT_X1COLOR = COLOR_BLACK |
Definition at line 543 of file IGraphicsStructs.h.
| const IColor DEFAULT_X2COLOR = COLOR_GREEN |
Definition at line 544 of file IGraphicsStructs.h.
| const IColor DEFAULT_X3COLOR = COLOR_BLUE |
Definition at line 545 of file IGraphicsStructs.h.