impl for ZFUISysWindow::nativeWindowEmbed More...
#include <ZFUISysWindow.h>
Public Member Functions | |
zfanyT< ZFUISysWindow > const & | ownerZFUISysWindow (void) |
the attached ZFUISysWindow | |
virtual void | nativeWindowOnCleanup (ZFUISysWindow *sysWindow) |
called when owner ZFUISysWindow is about to destroy | |
virtual void | nativeWindowRootViewOnAdd (ZFUISysWindow *sysWindow, void *&nativeParentView)=0 |
called to add root view to native window container | |
virtual void | nativeWindowRootViewOnRemove (ZFUISysWindow *sysWindow)=0 |
called to remove root view to native window container | |
virtual zfautoT< ZFUISysWindow > | modalWindowShow (ZFUISysWindow *sysWindowOwner)=0 |
see ZFUISysWindow::modalWindowShow | |
virtual void | modalWindowFinish (ZFUISysWindow *sysWindowOwner, ZFUISysWindow *sysWindowToFinish)=0 |
see ZFUISysWindow::modalWindowFinish | |
virtual void | sysWindowLayoutParamOnInit (ZFUISysWindow *sysWindow) |
called to update suggested window layout param, fill with no margin by default | |
virtual void | sysWindowLayoutParamOnUpdate (ZFUISysWindow *sysWindow) |
called when window layout param changed | |
virtual ZFUIOrientation | sysWindowOrientation (ZFUISysWindow *sysWindow) |
see ZFUISysWindow::sysWindowOrientation | |
virtual void | sysWindowOrientationFlags (ZFUISysWindow *sysWindow, const ZFUIOrientationFlags &flags) |
see ZFUISysWindow::sysWindowOrientationFlags, impl should have v_ZFUIOrientation::e_Top as init value | |
ZFUIRect | notifyMeasureWindow (ZFUISysWindow *sysWindow, const ZFUIRect &rootRefRect, const ZFUIMargin &sysWindowMargin) |
implementation must call this method to measure window's frame, and layout window using the result frame | |
void | notifyOnCreate (ZFUISysWindow *sysWindow, void *nativeWindow) |
implementation must call this to notify after window create | |
void | notifyOnDestroy (ZFUISysWindow *sysWindow) |
implementation must call this to notify before window destroy | |
void | notifyOnResume (ZFUISysWindow *sysWindow) |
implementation must call this to notify after window resume, note that rotate a window should not notify this | |
void | notifyOnPause (ZFUISysWindow *sysWindow) |
implementation must call this to notify before window pause, note that rotate a window should not notify this | |
void | notifyOnRotate (ZFUISysWindow *sysWindow) |
implementation must call this to notify when window rotate | |
void | notifyKeyEvent (ZFUISysWindow *sysWindow, ZFUIKeyEvent *event) |
implementation must call this to notify key event | |
![]() | |
virtual const ZFClass * | classData (void)=0 |
get instance's class info | |
virtual ZFObject * | toObject (void)=0 |
convert to ZFObject type | |
Static Public Member Functions | |
static const ZFClass * | ClassData (void) |
get class info | |
![]() | |
static const ZFClass * | ClassData (void) |
get class info | |
Protected Types | |
typedef ZFInterface | zfsuper |
typedef for super (always ZFInterface for an interface type) | |
typedef ZFUISysWindowEmbedImpl | zfself |
typedef for self | |
![]() | |
typedef _ZFP_ObjI_Base | zfsuper |
typedef for super (always ZFInterface for an interface type) | |
typedef ZFInterface | zfself |
typedef for self | |
impl for ZFUISysWindow::nativeWindowEmbed
|
pure virtual |
called to add root view to native window container
if nativeParentView was specified, it would be used to copy some settings to the window's root view
|
inline |
implementation must call this method to measure window's frame, and layout window using the result frame
if you are embedding ZFUISysWindow to native view with custom layout logic, you may skip this method