14#if defined IGRAPHICS_NANOVG && defined IGRAPHICS_METAL
21#include "IGraphicsNanoVG.h"
24using namespace igraphics;
42 nvgDeleteFramebuffer(mFBO);
57 mKernelType = pSelectedMenu->GetChosenItemIdx();
62 NVGframebuffer* mFBO =
nullptr;
63 IPopupMenu mMenu {
"MPS Type", 0,
false, {
"MPSImageGaussianBlur",
"MPSImageSobel",
"MPSImageThresholdToZero"}};
79 g.
DrawText(mText,
"UNSUPPORTED", mRECT);
This file contains the base IControl implementation, along with some base classes for specific types ...
A base interface to be combined with IControl for bitmap-based controls "IBControls",...
User-facing bitmap abstraction that you use to manage bitmap data, independant of draw class/platform...
The lowest level base class of an IGraphics control.
virtual void OnPopupMenuSelection(IPopupMenu *pSelectedMenu, int valIdx)
Implement this method to handle popup menu selection after IGraphics::CreatePopupMenu/IControlPromptU...
virtual void OnMouseDown(float x, float y, const IMouseMod &mod)
Implement this method to respond to a mouse down event on this control.
IControl * SetTooltip(const char *str)
Set a tooltip for the control.
virtual void SetDirty(bool triggerAction=true, int valIdx=kNoValIdx)
Mark the control as dirty, i.e.
The lowest level base class of an IGraphics context.
void DrawText(const IText &text, const char *str, const IRECT &bounds, const IBlend *pBlend=0)
Draw some text to the graphics context in a specific rectangle.
void CreatePopupMenu(IControl &control, IPopupMenu &menu, const IRECT &bounds, int valIdx=0)
Shows a pop up/contextual menu in relation to a rectangular region of the graphics context.
A base class for knob/dial controls, to handle mouse action and Sender.
Control to test IGraphicsNanoVG with Metal Performance Shaders.
void Draw(IGraphics &g) override
Draw the control to the graphics context.
Used to manage mouse modifiers i.e.
Used to manage a rectangular area, independent of draw class/platform.