summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/sliderchangednotifier.h
blob: 40e6df4b4bf969bb27cfe2e4681401e6f4b24ea8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//======================================================================
//
//  sliderchangednotifier.cpp - Interface for a slider-changed callback
//
//======================================================================

#pragma once

#ifndef __SLIDER_CHANGED_NOTIFIER__
#define __SLIDER_CHANGED_NOTIFIER__

#include <cstdint>
#include <string>

using INT32 = std::int32_t;

class running_machine;

class slider_changed_notifier
{
public:
	virtual ~slider_changed_notifier() { }

	virtual INT32 slider_changed(running_machine &machine, void *arg, int id, std::string *str, INT32 newval) = 0;
};

#endif // __SLIDER_CHANGED_NOTIFIER__