LMMS
Loading...
Searching...
No Matches
Steinberg::IPlugViewContentScaleSupport Class Referenceabstract

#include <iplugviewcontentscalesupport.h>

Inheritance diagram for Steinberg::IPlugViewContentScaleSupport:
Steinberg::FUnknown

Public Types

typedef float ScaleFactor

Public Member Functions

virtual tresult PLUGIN_API setContentScaleFactor (ScaleFactor factor)=0
Public Member Functions inherited from Steinberg::FUnknown
virtual tresult PLUGIN_API queryInterface (const TUID _iid, void **obj)=0
virtual uint32 PLUGIN_API addRef ()=0
virtual uint32 PLUGIN_API release ()=0

Static Public Attributes

static const FUID iid
Static Public Attributes inherited from Steinberg::FUnknown
static const FUID iid

Detailed Description

Plug-in view content scale support

  • [plug impl]
  • [extends IPlugView]
  • [released: 3.6.6]
  • [optional]

This interface communicates the content scale factor from the host to the plug-in view on systems where plug-ins cannot get this information directly like Microsoft Windows.

The host calls setContentScaleFactor directly after the plug-in view is attached and when the scale factor changes (system change or window moved to another screen with different scaling settings). The host could call setContentScaleFactor in a different context, for example: scaling the plug-in editor for better readability. When a plug-in handles this (by returning kResultTrue), it needs to scale the width and height of its view by the scale factor and inform the host via a IPlugFrame::resizeView(), the host will then call IPlugView::onSize().

Note that the host is allowed to call setContentScaleFactor() at any time the IPlugView is valid.

Member Typedef Documentation

◆ ScaleFactor

Member Function Documentation

◆ setContentScaleFactor()

virtual tresult PLUGIN_API Steinberg::IPlugViewContentScaleSupport::setContentScaleFactor ( ScaleFactor factor)
pure virtual

Member Data Documentation

◆ iid

const FUID Steinberg::IPlugViewContentScaleSupport::iid
static

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