impl for ZFUIRootWindow::nativeWindowEmbed More...
#include <ZFUIRootWindow.h>
Public Member Functions | |
| zfanyT< ZFUIRootWindow > const & | ownerZFUIRootWindow (void) |
| the attached ZFUIRootWindow | |
| virtual void | nativeWindowOnCleanup (ZFUIRootWindow *rootWindow) |
| called when owner ZFUIRootWindow is about to destroy | |
| virtual void | nativeWindowRootViewOnAdd (ZFUIRootWindow *rootWindow, void *&nativeParentView)=0 |
| called to add root view to native window container | |
| virtual void | nativeWindowRootViewOnRemove (ZFUIRootWindow *rootWindow)=0 |
| called to remove root view to native window container | |
| virtual zfautoT< ZFUIRootWindow > | modalWindowShow (ZFUIRootWindow *owner)=0 |
| see ZFUIRootWindow::modalWindowShow | |
| virtual void | modalWindowHide (ZFUIRootWindow *owner, ZFUIRootWindow *toHide)=0 |
| see ZFUIRootWindow::modalWindowHide | |
| virtual void | layoutParamOnInit (ZFUIRootWindow *rootWindow) |
| called to update suggested window layout param, fill with no margin by default | |
| virtual void | layoutParamOnUpdate (ZFUIRootWindow *rootWindow) |
| called when window layout param changed | |
| virtual ZFUIOrientation | windowOrientation (ZFUIRootWindow *rootWindow) |
| see ZFUIRootWindow::windowOrientation | |
| virtual void | windowOrientationFlags (ZFUIRootWindow *rootWindow, const ZFUIOrientationFlags &flags) |
| see ZFUIRootWindow::windowOrientationFlags, impl should have v_ZFUIOrientation::e_Top as init value | |
| ZFUIRect | notifyMeasureWindow (ZFUIRootWindow *rootWindow, const ZFUIRect &rootRefRect, const ZFUIMargin &windowMargin) |
| implementation must call this method to measure window's frame, and layout window using the result frame | |
| void | notifyOnCreate (ZFUIRootWindow *rootWindow, void *nativeWindow) |
| implementation must call this to notify after window create | |
| void | notifyOnDestroy (ZFUIRootWindow *rootWindow) |
| implementation must call this to notify before window destroy | |
| void | notifyOnResume (ZFUIRootWindow *rootWindow) |
| implementation must call this to notify after window resume, note that rotate a window should not notify this | |
| void | notifyOnPause (ZFUIRootWindow *rootWindow) |
| implementation must call this to notify before window pause, note that rotate a window should not notify this | |
| void | notifyOnRotate (ZFUIRootWindow *rootWindow) |
| implementation must call this to notify when window rotate | |
| void | notifyKeyEvent (ZFUIRootWindow *rootWindow, ZFUIKeyEvent *event) |
| implementation must call this to notify key event | |
Public Member Functions inherited from ZFInterface | |
| 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 Public Member Functions inherited from ZFInterface | |
| static const ZFClass * | ClassData (void) |
| get class info | |
Protected Types | |
| typedef ZFInterface | zfsuper |
| typedef for super (always ZFInterface for an interface type) | |
| typedef ZFUIRootWindowEmbedImpl | zfself |
| typedef for self | |
Protected Types inherited from ZFInterface | |
| typedef _ZFP_ObjI_Base | zfsuper |
| typedef for super (always ZFInterface for an interface type) | |
| typedef ZFInterface | zfself |
| typedef for self | |
impl for ZFUIRootWindow::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 ZFUIRootWindow to native view with custom layout logic, you may skip this method