ZFFramework
Loading...
Searching...
No Matches
Hello world with UI

time to start a quick hello world with UI elements:

// include ZFUIKit.h for UI module of ZFFramework
// you may need to setup your project's include path first
#include "ZFUIKit.h"
// typically we will start UI by creating a ZFUIWindow
// show the window
window->windowShow();
// create a text view and set text content
textView->text("hello world");
// add to window
window->childAdd(textView);
// make it center in window
textView->layoutParam()->layoutAlign(ZFUIAlign::e_Center);
}
#define ZFMAIN_ENTRY()
app's main entry wrapper
Definition ZFMainEntry.h:38
header file for ZFUIKit module
@ e_Center
Center ( 0 )
Definition ZFUITypeDef.h:968
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:163