ASPiK SDK
iplatformviewlayer.h
1
// This file is part of VSTGUI. It is subject to the license terms
2
// in the LICENSE file found in the top-level directory of this
3
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4
5
#ifndef __iplatformviewlayer__
6
#define __iplatformviewlayer__
7
8
#include "../vstguifwd.h"
9
10
namespace
VSTGUI
{
11
12
//-----------------------------------------------------------------------------
13
class
IPlatformViewLayerDelegate
14
{
15
public
:
16
virtual
~
IPlatformViewLayerDelegate
() noexcept =
default
;
17
18
virtual
void
drawViewLayer (
CDrawContext
* context,
const
CRect
& dirtyRect) = 0;
// dirtyRect is zero based
19
};
20
21
//-----------------------------------------------------------------------------
22
class
IPlatformViewLayer
:
public
AtomicReferenceCounted
23
{
24
public
:
25
virtual
void
invalidRect
(
const
CRect
& size) = 0;
26
virtual
void
setSize
(
const
CRect
& size) = 0;
27
virtual
void
setZIndex (uint32_t zIndex) = 0;
28
virtual
void
setAlpha (
float
alpha) = 0;
29
virtual
void
draw (
CDrawContext
* context,
const
CRect
& updateRect) = 0;
30
virtual
void
onScaleFactorChanged (
double
newScaleFactor) = 0;
31
};
32
33
}
34
35
#endif // __iplatformviewlayer__
VSTGUI::CRect
Rect structure.
Definition:
crect.h:17
VSTGUI::CDrawContext
A drawing context encapsulates the drawing context of the underlying OS.
Definition:
cdrawcontext.h:29
VSTGUI
Definition:
customcontrols.cpp:8
VSTGUI::IPlatformViewLayerDelegate
Definition:
iplatformviewlayer.h:13
VSTGUI::IPlatformViewLayer
Definition:
iplatformviewlayer.h:22
VSTGUI::ReferenceCounted
Definition:
vstguibase.h:247
VSTGUI::IPlatformViewLayer::invalidRect
virtual void invalidRect(const CRect &size)=0
size must be zero based
VSTGUI::IPlatformViewLayer::setSize
virtual void setSize(const CRect &size)=0
size is relative to platformParent
vstgui4
vstgui
lib
platform
iplatformviewlayer.h
Generated by
1.8.14