libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
imonitorhandler.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2
3#pragma once
4
5#include "global.h"
6
7namespace libscratchcpp
8{
9
10class Monitor;
11class Value;
12
14{
15 public:
16 virtual ~IMonitorHandler() { }
17
18 virtual void init(Monitor *monitor) = 0;
19
20 virtual void onValueChanged(const Value &value) = 0;
21 virtual void onXChanged(int x) = 0;
22 virtual void onYChanged(int y) = 0;
23 virtual void onVisibleChanged(bool visible) = 0;
24};
25
26} // namespace libscratchcpp
Definition imonitorhandler.h:14
virtual void onXChanged(int x)=0
virtual void init(Monitor *monitor)=0
virtual void onVisibleChanged(bool visible)=0
virtual void onYChanged(int y)=0
virtual ~IMonitorHandler()
Definition imonitorhandler.h:16
virtual void onValueChanged(const Value &value)=0
The Monitor class represents a stage monitor.
Definition monitor.h:23
The Value class represents a Scratch value.
Definition value.h:22
#define LIBSCRATCHCPP_EXPORT
Definition global.h:17
The main namespace of the library.
Definition asset.h:10