1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /***************************************************************************
3  *            checkbox.h
4  *
5  *  Sat Nov 26 15:07:44 CET 2011
6  *  Copyright 2011 Bent Bisballe Nyeng
7  *  deva@aasimon.org
8  ****************************************************************************/
9 
10 /*
11  *  This file is part of DrumGizmo.
12  *
13  *  DrumGizmo is free software; you can redistribute it and/or modify
14  *  it under the terms of the GNU Lesser General Public License as published by
15  *  the Free Software Foundation; either version 3 of the License, or
16  *  (at your option) any later version.
17  *
18  *  DrumGizmo is distributed in the hope that it will be useful,
19  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  *  GNU Lesser General Public License for more details.
22  *
23  *  You should have received a copy of the GNU Lesser General Public License
24  *  along with DrumGizmo; if not, write to the Free Software
25  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
26  */
27 #pragma once
28 
29 #include "toggle.h"
30 #include "texture.h"
31 
32 namespace GUI {
33 
34 class CheckBox : public Toggle {
35 public:
36 	CheckBox(Widget *parent);
37 	virtual ~CheckBox() = default;
38 
39 protected:
40 	// From Widget:
41 	virtual void repaintEvent(RepaintEvent* repaintEvent) override;
42 
43 private:
44 	Texture bg_on;
45 	Texture bg_off;
46 	Texture knob;
47 };
48 
49 } // GUI::
50