📄 button.cpp
字号:
// Button.cpp: implementation of the Button class.
//
//////////////////////////////////////////////////////////////////////
#include "Button.h"
#include <iostream>
using namespace std;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Button::Button():status(false)
{
}
Button::Button(int cap):caption(cap),status(false)
{
}
Button::~Button()
{
}
bool Button::GetButtonStatus()
{
return status;
}
void Button::SetCaption(int cap)
{
caption=cap;
}
void Button::LightOn()
{
status=true;
cout<<" "<<caption<<" ";
bgLight.LinghtOn();
}
void Button::LightOff()
{
status=false;
bgLight.LinghtOff();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -