16BEGIN_IGRAPHICS_NAMESPACE
18extern void GetScreenDimensions(
int& width,
int& height);
20extern float GetScaleForScreen(
int width,
int height);
30 void SetBundleID(
const char* bundleID) { mBundleID.Set(bundleID); }
31 void SetAppGroupID(
const char* appGroupID) { mAppGroupID.Set(appGroupID); }
33 void* OpenWindow(
void* pWindow)
override;
34 void CloseWindow()
override;
35 bool WindowIsOpen()
override;
36 void PlatformResize(
bool parentHasResized)
override;
37 void AttachPlatformView(
const IRECT& r,
void* pView)
override;
38 void RemovePlatformView(
void* pView)
override;
39 void HidePlatformView(
void* pView,
bool hide)
override;
41 void GetMouseLocation(
float& x,
float&y)
const override;
43 EMsgBoxResult ShowMessageBox(
const char* str,
const char* title, EMsgBoxType type, IMsgBoxCompletionHandlerFunc completionHandler)
override;
44 void ForceEndUserEdit()
override;
46 const char* GetPlatformAPIStr()
override;
48 void UpdateTooltips()
override {};
50 void PromptForFile(WDL_String& fileName, WDL_String& path, EFileAction action,
const char* ext, IFileDialogCompletionHandlerFunc completionHandler)
override;
51 void PromptForDirectory(WDL_String& dir, IFileDialogCompletionHandlerFunc completionHandler)
override;
52 bool PromptForColor(
IColor& color,
const char* str, IColorPickerHandlerFunc func)
override;
54 void HideMouseCursor(
bool hide,
bool lock)
override {};
55 void MoveMouseCursor(
float x,
float y)
override {};
57 bool OpenURL(
const char* url,
const char* msgWindowTitle,
const char* confirmMsg,
const char* errMsgOnFailure)
override;
59 void* GetWindow()
override;
61 const char* GetBundleID()
const override {
return mBundleID.Get(); }
62 const char* GetAppGroupID()
const override {
return mAppGroupID.Get(); }
64 static int GetUserOSVersion();
66 bool GetTextFromClipboard(WDL_String& str)
override;
67 bool SetTextInClipboard(
const char* str)
override;
69 void LaunchBluetoothMidiDialog(
float x,
float y);
71 void AttachGestureRecognizer(EGestureType type)
override;
73 bool PlatformSupportsMultiTouch()
const override {
return true; }
75 EUIAppearance GetUIAppearance()
const override;
78 PlatformFontPtr LoadPlatformFont(
const char* fontID,
const char* fileNameOrResID)
override;
79 PlatformFontPtr LoadPlatformFont(
const char* fontID,
const char* fontName, ETextStyle style)
override;
80 PlatformFontPtr LoadPlatformFont(
const char* fontID,
void* pData,
int dataSize)
override;
81 void CachePlatformFont(
const char* fontID,
const PlatformFontPtr& font)
override;
84 void CreatePlatformTextEntry(
int paramIdx,
const IText& text,
const IRECT& bounds,
int length,
const char* str)
override;
87 void* mView =
nullptr;
89 WDL_String mAppGroupID;
92END_IGRAPHICS_NAMESPACE
Used for choosing a drawing backend.
An editor delegate base class that uses IGraphics for the UI.
IGraphics platform class for IOS.
Used to manage color data, independent of draw class/platform.
Used to manage a rectangular area, independent of draw class/platform.
IText is used to manage font and text/text entry style for a piece of text on the UI,...