mirror of
https://github.com/zs-yg/kortapp-z.git
synced 2025-12-06 16:10:42 +08:00
添加文本转换器代码
This commit is contained in:
30
others/C++/text converter/include/Config.hpp
Normal file
30
others/C++/text converter/include/Config.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef CONFIG_HPP
|
||||
#define CONFIG_HPP
|
||||
|
||||
namespace Config {
|
||||
constexpr int WINDOW_WIDTH = 450;
|
||||
constexpr int WINDOW_HEIGHT = 250;
|
||||
constexpr const char* WINDOW_TITLE = "文本转换器";
|
||||
|
||||
constexpr int INPUT_X = 70;
|
||||
constexpr int INPUT_Y = 40;
|
||||
constexpr int INPUT_WIDTH = 360;
|
||||
constexpr int INPUT_HEIGHT = 30;
|
||||
|
||||
constexpr int OUTPUT_X = 70;
|
||||
constexpr int OUTPUT_Y = 100;
|
||||
constexpr int OUTPUT_WIDTH = 360;
|
||||
constexpr int OUTPUT_HEIGHT = 30;
|
||||
|
||||
constexpr int CHOICE_X = 70;
|
||||
constexpr int CHOICE_Y = 160;
|
||||
constexpr int CHOICE_WIDTH = 120;
|
||||
constexpr int CHOICE_HEIGHT = 30;
|
||||
|
||||
constexpr int BUTTON_X = 210;
|
||||
constexpr int BUTTON_Y = 160;
|
||||
constexpr int BUTTON_WIDTH = 100;
|
||||
constexpr int BUTTON_HEIGHT = 30;
|
||||
};
|
||||
|
||||
#endif // CONFIG_HPP
|
||||
Reference in New Issue
Block a user