We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include "PainterEngine.h" PX_OBJECT_EVENT_FUNCTION(OnButtonClick) { PX_Object_PushButtonSetText(pObject, "我被点击了"); } int main() { PX_Object* myButtonObject; PainterEngine_Initialize(800, 480); PainterEngine_LoadFontModule("font.ttf", PX_FONTMODULE_CODEPAGE_GBK, 20); myButtonObject = PX_Object_PushButtonCreate(mp, root, 300, 200, 200, 80, "我是一个按钮", PainterEngine_GetFontModule()); PX_ObjectRegisterEvent(myButtonObject, PX_OBJECT_EVENT_EXECUTE, OnButtonClick, 0); return 1; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: