iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
IGraphicsMac Class Referencefinal

IGraphics platform class for macOS. More...

#include <IGraphicsMac.h>

Inheritance diagram for IGraphicsMac:
[legend]

Public Member Functions

 IGraphicsMac (IGEditorDelegate &dlg, int w, int h, int fps, float scale)
 
void SetBundleID (const char *bundleID)
 
void SetAppGroupID (const char *appGroupID)
 
void * OpenWindow (void *pWindow) override
 
void CloseWindow () override
 
bool WindowIsOpen () override
 
void PlatformResize (bool parentHasResized) override
 
void AttachPlatformView (const IRECT &r, void *pView) override
 
void RemovePlatformView (void *pView) override
 
void HidePlatformView (void *pView, bool hide) override
 
void HideMouseCursor (bool hide, bool lock) override
 
void MoveMouseCursor (float x, float y) override
 
ECursor SetMouseCursor (ECursor cursorType) override
 
void GetMouseLocation (float &x, float &y) const override
 
void DoCursorLock (float x, float y, float &prevX, float &prevY)
 
EMsgBoxResult ShowMessageBox (const char *str, const char *title, EMsgBoxType type, IMsgBoxCompletionHandlerFunc completionHandler) override
 
void ForceEndUserEdit () override
 
const char * GetPlatformAPIStr () override
 
void UpdateTooltips () override
 
bool RevealPathInExplorerOrFinder (WDL_String &path, bool select) override
 
void PromptForFile (WDL_String &fileName, WDL_String &path, EFileAction action, const char *ext, IFileDialogCompletionHandlerFunc completionHandler) override
 
void PromptForDirectory (WDL_String &dir, IFileDialogCompletionHandlerFunc completionHandler) override
 
bool PromptForColor (IColor &color, const char *str, IColorPickerHandlerFunc func) override
 
bool OpenURL (const char *url, const char *msgWindowTitle, const char *confirmMsg, const char *errMsgOnFailure) override
 
void * GetWindow () override
 
const char * GetBundleID () const override
 
const char * GetAppGroupID () const override
 
bool GetTextFromClipboard (WDL_String &str) override
 
bool SetTextInClipboard (const char *str) override
 
bool SetFilePathInClipboard (const char *path) override
 
bool InitiateExternalFileDragDrop (const char *path, const IRECT &iconBounds) override API_AVAILABLE(macos(10.13))
 
float MeasureText (const IText &text, const char *str, IRECT &bounds) const override
 
EUIAppearance GetUIAppearance () const override
 

Static Public Member Functions

static int GetUserOSVersion ()
 

Protected Member Functions

IPopupMenuCreatePlatformPopupMenu (IPopupMenu &menu, const IRECT bounds, bool &isAsync) override
 
void CreatePlatformTextEntry (int paramIdx, const IText &text, const IRECT &bounds, int length, const char *str) override
 

Friends

int GetMouseOver (IGraphicsMac *pGraphics)
 

Detailed Description

IGraphics platform class for macOS.

Definition at line 23 of file IGraphicsMac.h.

Constructor & Destructor Documentation

◆ IGraphicsMac()

IGraphicsMac::IGraphicsMac ( IGEditorDelegate dlg,
int  w,
int  h,
int  fps,
float  scale 
)

Definition at line 48 of file IGraphicsMac.mm.

◆ ~IGraphicsMac()

IGraphicsMac::~IGraphicsMac ( )
virtual

Definition at line 56 of file IGraphicsMac.mm.

Member Function Documentation

◆ AttachPlatformView()

void IGraphicsMac::AttachPlatformView ( const IRECT r,
void *  pView 
)
override

Definition at line 114 of file IGraphicsMac.mm.

◆ CloseWindow()

void IGraphicsMac::CloseWindow ( )
override

Definition at line 132 of file IGraphicsMac.mm.

◆ CreatePlatformPopupMenu()

IPopupMenu * IGraphicsMac::CreatePlatformPopupMenu ( IPopupMenu menu,
const IRECT  bounds,
bool &  isAsync 
)
overrideprotected

Definition at line 592 of file IGraphicsMac.mm.

◆ CreatePlatformTextEntry()

void IGraphicsMac::CreatePlatformTextEntry ( int  paramIdx,
const IText text,
const IRECT bounds,
int  length,
const char *  str 
)
overrideprotected

Definition at line 614 of file IGraphicsMac.mm.

◆ DoCursorLock()

void IGraphicsMac::DoCursorLock ( float  x,
float  y,
float &  prevX,
float &  prevY 
)

Definition at line 240 of file IGraphicsMac.mm.

◆ ForceEndUserEdit()

void IGraphicsMac::ForceEndUserEdit ( )
override

Definition at line 361 of file IGraphicsMac.mm.

◆ GetAppGroupID()

const char * IGraphicsMac::GetAppGroupID ( ) const
inlineoverride

Definition at line 65 of file IGraphicsMac.h.

◆ GetBundleID()

const char * IGraphicsMac::GetBundleID ( ) const
inlineoverride

Definition at line 64 of file IGraphicsMac.h.

◆ GetMouseLocation()

void IGraphicsMac::GetMouseLocation ( float &  x,
float &  y 
) const
override

Definition at line 275 of file IGraphicsMac.mm.

◆ GetPlatformAPIStr()

const char * IGraphicsMac::GetPlatformAPIStr ( )
override

Definition at line 400 of file IGraphicsMac.mm.

◆ GetTextFromClipboard()

bool IGraphicsMac::GetTextFromClipboard ( WDL_String &  str)
override

Definition at line 660 of file IGraphicsMac.mm.

◆ GetUIAppearance()

EUIAppearance IGraphicsMac::GetUIAppearance ( ) const
override

Definition at line 714 of file IGraphicsMac.mm.

◆ GetUserOSVersion()

int IGraphicsMac::GetUserOSVersion ( )
static

Definition at line 655 of file IGraphicsMac.mm.

◆ GetWindow()

void * IGraphicsMac::GetWindow ( )
override

Definition at line 648 of file IGraphicsMac.mm.

◆ HideMouseCursor()

void IGraphicsMac::HideMouseCursor ( bool  hide,
bool  lock 
)
override

Definition at line 202 of file IGraphicsMac.mm.

◆ HidePlatformView()

void IGraphicsMac::HidePlatformView ( void *  pView,
bool  hide 
)
override

Definition at line 127 of file IGraphicsMac.mm.

◆ InitiateExternalFileDragDrop()

bool IGraphicsMac::InitiateExternalFileDragDrop ( const char *  path,
const IRECT iconBounds 
)
override

Definition at line 692 of file IGraphicsMac.mm.

◆ MeasureText()

float IGraphicsMac::MeasureText ( const IText text,
const char *  str,
IRECT bounds 
) const
override

Definition at line 84 of file IGraphicsMac.mm.

◆ MoveMouseCursor()

void IGraphicsMac::MoveMouseCursor ( float  x,
float  y 
)
override

Definition at line 230 of file IGraphicsMac.mm.

◆ OpenURL()

bool IGraphicsMac::OpenURL ( const char *  url,
const char *  msgWindowTitle,
const char *  confirmMsg,
const char *  errMsgOnFailure 
)
override

Definition at line 631 of file IGraphicsMac.mm.

◆ OpenWindow()

void * IGraphicsMac::OpenWindow ( void *  pWindow)
override

Definition at line 89 of file IGraphicsMac.mm.

◆ PlatformResize()

void IGraphicsMac::PlatformResize ( bool  parentHasResized)
override

Definition at line 158 of file IGraphicsMac.mm.

◆ PromptForColor()

bool IGraphicsMac::PromptForColor ( IColor color,
const char *  str,
IColorPickerHandlerFunc  func 
)
override

Definition at line 584 of file IGraphicsMac.mm.

◆ PromptForDirectory()

void IGraphicsMac::PromptForDirectory ( WDL_String &  dir,
IFileDialogCompletionHandlerFunc  completionHandler 
)
override

Definition at line 525 of file IGraphicsMac.mm.

◆ PromptForFile()

void IGraphicsMac::PromptForFile ( WDL_String &  fileName,
WDL_String &  path,
EFileAction  action,
const char *  ext,
IFileDialogCompletionHandlerFunc  completionHandler 
)
override

Definition at line 440 of file IGraphicsMac.mm.

◆ RemovePlatformView()

void IGraphicsMac::RemovePlatformView ( void *  pView)
override

Definition at line 122 of file IGraphicsMac.mm.

◆ RevealPathInExplorerOrFinder()

bool IGraphicsMac::RevealPathInExplorerOrFinder ( WDL_String &  path,
bool  select 
)
override

Definition at line 405 of file IGraphicsMac.mm.

◆ SetAppGroupID()

void IGraphicsMac::SetAppGroupID ( const char *  appGroupID)
inline

Definition at line 30 of file IGraphicsMac.h.

◆ SetBundleID()

void IGraphicsMac::SetBundleID ( const char *  bundleID)
inline

Definition at line 29 of file IGraphicsMac.h.

◆ SetFilePathInClipboard()

bool IGraphicsMac::SetFilePathInClipboard ( const char *  path)
override

Definition at line 683 of file IGraphicsMac.mm.

◆ SetMouseCursor()

ECursor IGraphicsMac::SetMouseCursor ( ECursor  cursorType)
override

Definition at line 623 of file IGraphicsMac.mm.

◆ SetTextInClipboard()

bool IGraphicsMac::SetTextInClipboard ( const char *  str)
override

Definition at line 676 of file IGraphicsMac.mm.

◆ ShowMessageBox()

EMsgBoxResult IGraphicsMac::ShowMessageBox ( const char *  str,
const char *  title,
EMsgBoxType  type,
IMsgBoxCompletionHandlerFunc  completionHandler 
)
override

Definition at line 286 of file IGraphicsMac.mm.

◆ UpdateTooltips()

void IGraphicsMac::UpdateTooltips ( )
override

Definition at line 369 of file IGraphicsMac.mm.

◆ WindowIsOpen()

bool IGraphicsMac::WindowIsOpen ( )
override

Definition at line 153 of file IGraphicsMac.mm.

Friends And Related Function Documentation

◆ GetMouseOver

int GetMouseOver ( IGraphicsMac pGraphics)
friend

Definition at line 55 of file IGraphicsMac_view.h.


The documentation for this class was generated from the following files: