1 /* -----------------------------------------------------------------------------
2  *
3  * Giada - Your Hardcore Loopmachine
4  *
5  * geStatusButton
6  * Simple geButton with a boolean 'status' parameter.
7  *
8  * -----------------------------------------------------------------------------
9  *
10  * Copyright (C) 2010-2020 Giovanni A. Zuliani | Monocasual
11  *
12  * This file is part of Giada - Your Hardcore Loopmachine.
13  *
14  * Giada - Your Hardcore Loopmachine is free software: you can
15  * redistribute it and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation, either
17  * version 3 of the License, or (at your option) any later version.
18  *
19  * Giada - Your Hardcore Loopmachine is distributed in the hope that it
20  * will be useful, but WITHOUT ANY WARRANTY; without even the implied
21  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22  * See the GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with Giada - Your Hardcore Loopmachine. If not, see
26  * <http://www.gnu.org/licenses/>.
27  *
28  * -------------------------------------------------------------------------- */
29 
30 
31 #ifndef GE_STATUS_BUTTON_H
32 #define GE_STATUS_BUTTON_H
33 
34 
35 #include "button.h"
36 
37 
38 class geStatusButton : public geButton
39 {
40 public:
41 
42 	geStatusButton(int x, int y, int w, int h, const char** imgOff=nullptr,
43     const char** imgOn=nullptr, const char** imgDisabled=nullptr);
44 
45 	void draw() override;
46 
47     bool getStatus() const;
48 
49     void setStatus(bool s);
50 
51 private:
52 
53 	bool m_status;
54 };
55 
56 
57 #endif
58