feat: add a new awesome feature
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "Button.h"
|
||||
#include "StellarX/Button.h"
|
||||
|
||||
Button::Button(int x, int y, int width, int height, const std::string text, StellarX::ButtonMode mode, StellarX::ControlShape shape)
|
||||
: Control(x, y, width, height)
|
||||
@@ -52,7 +52,7 @@ void Button::draw()
|
||||
}
|
||||
else
|
||||
{
|
||||
// 修改这里:确保点击状态的颜色正确显示
|
||||
// 确保点击状态的颜色正确显示
|
||||
// 点击状态优先级最高,然后是悬停状态,最后是默认状态
|
||||
if (click)
|
||||
setfillcolor(buttonTrueColor);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "Canvas.h"
|
||||
#include "StellarX/Canvas.h"
|
||||
|
||||
Canvas::Canvas(int x, int y, int width, int height)
|
||||
:Control(x, y, width, height) {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "Control.h"
|
||||
#include "StellarX/Control.h"
|
||||
|
||||
StellarX::ControlText& StellarX::ControlText::operator=(const ControlText& text)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "Label.h"
|
||||
#include "StellarX/Label.h"
|
||||
|
||||
Label::Label()
|
||||
:Control(0, 0, 0, 0)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "Table.h"
|
||||
#include "StellarX/Table.h"
|
||||
// 绘制表格的当前页
|
||||
// 使用双循环绘制行和列,考虑分页偏移
|
||||
void Table::drawTable()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TextBox.cpp
|
||||
#include "TextBox.h"
|
||||
#include "StellarX/TextBox.h"
|
||||
|
||||
|
||||
TextBox::TextBox(int x, int y, int width, int height, std::string text, StellarX::TextBoxmode mode, StellarX::ControlShape shape)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "Window.h"
|
||||
#include "StellarX/Window.h"
|
||||
|
||||
Window::Window(int width, int height, int mode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user