NAP
Overview
Manual
Classes
Namespaces
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
nap
system_modules
napparameter
src
parameterbutton.h
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5
#pragma once
6
7
// Local Includes
8
#include "parameter.h"
9
10
// External Includes
11
#include <nap/signalslot.h>
12
13
namespace
nap
14
{
18
class
NAPAPI
ParameterButton
:
public
Parameter
19
{
20
RTTI_ENABLE(
Parameter
)
21
public
:
26
virtual
void
setValue(
const
Parameter
& value)
override
;
27
34
void
setPressed(
bool
pressed);
35
39
bool
isPressed
()
const
{
return
mPressed; }
40
41
public
:
42
Signal<>
click
;
43
Signal<>
press
;
44
Signal<>
release
;
45
46
private
:
47
bool
mPressed =
false
;
48
};
49
}
nap::ParameterButton::release
Signal release
Signal that's raised when the button is released.
Definition:
parameterbutton.h:44
nap::Parameter
Definition:
parameter.h:20
nap::ParameterButton::click
Signal click
Signal that's raised when the button is active.
Definition:
parameterbutton.h:42
nap::Signal
Definition:
signalslot.h:28
nap::ParameterButton::isPressed
bool isPressed() const
Definition:
parameterbutton.h:39
nap
Definition:
templateapp.h:17
nap::ParameterButton
Definition:
parameterbutton.h:18
nap::ParameterButton::press
Signal press
Signal that's raised when the button is pressed.
Definition:
parameterbutton.h:43
Generated by doxygen