123
This commit is contained in:
69
CryGame/UICheckBox.h
Normal file
69
CryGame/UICheckBox.h
Normal file
@@ -0,0 +1,69 @@
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// Author: M<>rcio Martins
|
||||
//
|
||||
// Purpose:
|
||||
// - A CheckBox Control
|
||||
//
|
||||
// History:
|
||||
// - [9/7/2003] created the file
|
||||
//
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
|
||||
#define UICLASSNAME_CHECKBOX "UICheckBox"
|
||||
|
||||
|
||||
#include "UIWidget.h"
|
||||
#include "UISystem.h"
|
||||
|
||||
|
||||
|
||||
class CUISystem;
|
||||
|
||||
|
||||
class CUICheckBox : public CUIWidget,
|
||||
public _ScriptableEx<CUICheckBox>
|
||||
{
|
||||
UI_WIDGET(CUICheckBox)
|
||||
|
||||
public:
|
||||
CUICheckBox();
|
||||
~CUICheckBox();
|
||||
|
||||
string GetClassName();
|
||||
|
||||
LRESULT Update(unsigned int iMessage, WPARAM wParam, LPARAM lParam); //AMD Port
|
||||
int Draw(int iPass);
|
||||
|
||||
static void InitializeTemplate(IScriptSystem *pScriptSystem);
|
||||
|
||||
int SetText(const wstring &szwString);
|
||||
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// Script Functions
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
int SetText(IFunctionHandler *pH);
|
||||
int GetText(IFunctionHandler *pH);
|
||||
|
||||
int SetTexture(IFunctionHandler *pH);
|
||||
int GetTexture(IFunctionHandler *pH);
|
||||
|
||||
int SetChecked(IFunctionHandler *pH);
|
||||
int GetChecked(IFunctionHandler *pH);
|
||||
|
||||
private:
|
||||
|
||||
UIRect GetBorderedRect();
|
||||
|
||||
float m_fLeftSpacing;
|
||||
float m_fRightSpacing;
|
||||
int m_iVAlignment;
|
||||
int m_iHAlignment;
|
||||
|
||||
color4f m_cCheckColor;
|
||||
|
||||
UISkinTexture m_pTexture;
|
||||
wstring m_szText;
|
||||
int m_iState;
|
||||
};
|
||||
Reference in New Issue
Block a user