feat: add a new awesome feature

This commit is contained in:
Ysm-04
2025-09-07 22:26:23 +08:00
parent 49ecb65514
commit 0522bffa1b
8 changed files with 34 additions and 34 deletions

View File

@@ -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);

View File

@@ -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) {}

View File

@@ -1,4 +1,4 @@
#include "Control.h"
#include "StellarX/Control.h"
StellarX::ControlText& StellarX::ControlText::operator=(const ControlText& text)
{

View File

@@ -1,4 +1,4 @@
#include "Label.h"
#include "StellarX/Label.h"
Label::Label()
:Control(0, 0, 0, 0)

View File

@@ -1,4 +1,4 @@
#include "Table.h"
#include "StellarX/Table.h"
// 绘制表格的当前页
// 使用双循环绘制行和列,考虑分页偏移
void Table::drawTable()

View File

@@ -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)

View File

@@ -1,4 +1,4 @@
#include "Window.h"
#include "StellarX/Window.h"
Window::Window(int width, int height, int mode)
{