aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIControl_CheckBox.h
blob: f8c0284bd7ac022fb5b597e60254e4f966722eea (plain)
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
#pragma once

#include "UIControl_Base.h"

class UIControl_CheckBox : public UIControl_Base
{
private:
	IggyName m_checkedProp, m_funcEnable, m_funcSetCheckBox;

	bool m_bChecked, m_bEnabled;

public:
	UIControl_CheckBox();

	virtual bool setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName);

	void init(UIString label, int id, bool checked);

	bool IsChecked();
	bool IsEnabled();
	void SetEnable(bool enable);
	void setChecked(bool checked);
	void TouchSetCheckbox(bool checked);

	virtual void ReInit();

};