diff --git a/native/cocos/ui/edit-box/EditBox.h b/native/cocos/ui/edit-box/EditBox.h index df17bb5c1d..fd81ff4404 100644 --- a/native/cocos/ui/edit-box/EditBox.h +++ b/native/cocos/ui/edit-box/EditBox.h @@ -41,24 +41,23 @@ public: std::string defaultValue; std::string confirmType; std::string inputType; - int maxLength = 0; - int x = 0; - int y = 0; - int width = 0; - int height = 0; - bool confirmHold = false; - bool isMultiline = false; + int maxLength = 0; + int x = 0; + int y = 0; + int width = 0; + int height = 0; + bool confirmHold = false; + bool isMultiline = false; //NEW PROPERTIES - uint32_t fontSize = 20; - uint32_t fontColor = 0x00000000; - uint32_t backColor = 0x00000000;//font back color + uint32_t fontSize = 20; + uint32_t fontColor = 0x00000000; + uint32_t backColor = 0x00000000; //font back color uint32_t backgroundColor = 0x00000000; - bool isBold = false; - bool isItalic = false; - bool isUnderline = false; - uint32_t underlineColor = 0x00000000; - uint32_t textAlignment = LEFT;//By default, override with left, center or right - + bool isBold = false; + bool isItalic = false; + bool isUnderline = false; + uint32_t underlineColor = 0x00000000; + uint32_t textAlignment = LEFT; //By default, override with left, center or right }; static void show(const ShowInfo &showInfo); @@ -69,7 +68,7 @@ public: static bool complete(); private: - static bool _isShown;//NOLINT(readability-identifier-naming) + static bool _isShown; //NOLINT(readability-identifier-naming) }; } // namespace cc