⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guibuttoncolorctrl.h

📁 五行MMORPG引擎系统V1.0
💻 H
字号:
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------

#ifndef _GUIBUTTONCOLORCTRL_H_
#define _GUIBUTTONCOLORCTRL_H_

#ifndef _GUIBUTTONBASECTRL_H_
#include "gui/controls/guiButtonBaseCtrl.h"
#endif



///TGE_ColorPick
class GuiButtonColorCtrl : public GuiButtonBaseCtrl
{
   typedef GuiButtonBaseCtrl Parent;

	ColorI	m_ciSpecial;
  public:
   DECLARE_CONOBJECT(GuiButtonColorCtrl);
   GuiButtonColorCtrl();

	void setColor(ColorI& clr);
	void setColor(ColorF& clr);
   void onRender(Point2I offset, const RectI &updateRect);
};


///TGE_ColorPick
inline void GuiButtonColorCtrl::setColor(ColorI& clr)
{
	m_ciSpecial = clr;
	setUpdate();
}

inline void GuiButtonColorCtrl::setColor(ColorF& clr)
{
	m_ciSpecial = clr;
	setUpdate();
}


#endif //_GUI_BUTTON_CTRL_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -