2
ParaGUI - crossplatform widgetset
3
Copyright (C) 2000,2001,2002 Alexander Pipelka
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public
16
License along with this library; if not, write to the Free
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
Last Update: $Author: mbickel $
23
Update Date: $Date: 2007-10-10 19:28:36 $
24
Source File: $Source: /home/cvspsrv/cvsroot/games/asc/source/libs/paragui/src/widgets/pgcheckbutton.cpp,v $
25
CVS/RCS Revision: $Revision: 1.2.2.1 $
29
#include "pgcheckbutton.h"
32
PG_CheckButton::PG_CheckButton(PG_Widget* parent, const PG_Rect& r, const std::string& text, int id, const std::string& style)
33
: PG_RadioButton(parent, r, text, NULL, id) {
34
LoadThemeStyle(style);
35
my_widgetButton->LoadThemeStyle(style, "CheckButton");
40
PG_CheckButton::~PG_CheckButton() {}
42
bool PG_CheckButton::eventMouseButtonUp(const SDL_MouseButtonEvent* my_widgetButton) {
43
if ( my_widgetButton->button == SDL_BUTTON_LEFT ) {
55
void PG_CheckButton::SetUnpressed() {
56
my_widgetButton->SetPressed(false);
62
sigClick(this, false);