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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
/*
$Id: checkbox.h,v 1.25 2001/12/27 22:45:46 mbn Exp $
------------------------------------------------------------------------
ClanLib, the platform independent game SDK.
This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
version 2. See COPYING for details.
For a total list of contributers see CREDITS.
See http://www.clanlib.org
------------------------------------------------------------------------
*/
//! clanGUI="Controls"
//! header=gui.h
#ifndef header_checkbox
#define header_checkbox
#include "button.h"
class CL_CheckBox_Generic;
//: CheckBox component
class CL_CheckBox : public CL_Button
{
//! Construction:
public:
//: CheckBox constructor
CL_CheckBox(
CL_Component *parent,
CL_StyleManager *style = NULL);
//: CheckBox constructor
CL_CheckBox(
const CL_Point &pos,
const std::string &text,
CL_Component *parent,
CL_StyleManager *style = NULL);
//: CheckBox destructor
virtual ~CL_CheckBox();
//! Attributes:
public:
//: Returns true if the checkbox is checked, or false if it is not checked.
bool is_checked() const;
//! Operations:
public:
//: Checks the checkbox if check is true, or unchecks it if check is false.
void set_checked(bool check);
//! Implementation:
private:
// TODO:Fix this copy constructor:
CL_CheckBox(const CL_CheckBox ©);
CL_CheckBox_Generic *impl;
};
#endif
|