ZFFramework
 
Loading...
Searching...
No Matches
ZFUISysWindowEmbedImpl Class Referenceabstract

impl for ZFUISysWindow::nativeWindowEmbed More...

#include <ZFUISysWindow.h>

Inheritance diagram for ZFUISysWindowEmbedImpl:
ZFInterface

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< ZFUISysWindowmodalWindowShow (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
 
- Public Member Functions inherited from ZFInterface
virtual const ZFClassclassData (void)=0
 get instance's class info
 
virtual ZFObjecttoObject (void)=0
 convert to ZFObject type
 

Static Public Member Functions

static const ZFClassClassData (void)
 get class info
 
- Static Public Member Functions inherited from ZFInterface
static const ZFClassClassData (void)
 get class info
 

Protected Types

typedef ZFInterface zfsuper
 typedef for super (always ZFInterface for an interface type)
 
typedef ZFUISysWindowEmbedImpl 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
 

Detailed Description

Member Function Documentation

◆ nativeWindowRootViewOnAdd()

virtual void ZFUISysWindowEmbedImpl::nativeWindowRootViewOnAdd ( ZFUISysWindow * sysWindow,
void *& nativeParentView )
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

◆ notifyMeasureWindow()

ZFUIRect ZFUISysWindowEmbedImpl::notifyMeasureWindow ( ZFUISysWindow * sysWindow,
const ZFUIRect & rootRefRect,
const ZFUIMargin & sysWindowMargin )
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


The documentation for this class was generated from the following file: