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

protocol for ZFUISysWindow More...

#include <ZFProtocolZFUISysWindow.h>

Inheritance diagram for ZFPInterface_ZFUISysWindow:
ZFProtocol

Public Member Functions

virtual const zfcharprotocolName (void) const
 get the name of the protocol module, e.g. "ZFObject"
 
virtual ZFUISysWindowmainWindow (void)=0
 see ZFUISysWindow::mainWindow
 
virtual void mainWindowOnCleanup (void)=0
 called to cleanup native main window
 
virtual void mainWindowOnDestroy (void)=0
 called when main window destroyed by notifyOnDestroy
 
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 zfauto 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)=0
 see ZFUISysWindow::sysWindowOrientation
 
virtual void sysWindowOrientationFlags (ZFUISysWindow *sysWindow, const ZFUIOrientationFlags &flags)=0
 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 ZFProtocol
virtual void protocolOnInit (void)
 called to init the protocol
 
virtual void protocolOnInitFinish (void)
 see protocolOnInit
 
virtual void protocolOnDeallocPrepare (void)
 see protocolOnInit
 
virtual void protocolOnDealloc (void)
 see protocolOnInit
 
virtual ZFProtocolInstanceState protocolInstanceState (void)
 protocol instance's state
 
virtual const zfcharprotocolImplName (void) const
 get the name of the protocol implementation, e.g. "ZFObject_default"
 
virtual ZFProtocolLevel protocolImplLevel (void) const
 get the level of the protocol implementation
 
virtual const zfcharprotocolImplPlatformHint (void) const
 get type hint of the implementation or empty string if not defined, e.g. "iOS:NSString" for iOS's string impl, use ZFPROTOCOL_IMPLEMENTATION_PLATFORM_HINT to register
 
virtual void objectInfoT (zfstring &ret) const
 see objectInfo
 
virtual zfstring objectInfo (void) const
 get a short info about this object
 

Protected Types

typedef ZFProtocol zfsuper
 class ref to super
 
typedef ZFPInterface_ZFUISysWindow zfself
 class ref to self
 

Detailed Description

protocol for ZFUISysWindow

Member Function Documentation

◆ protocolName()

virtual const zfchar * ZFPInterface_ZFUISysWindow::protocolName ( void ) const
inlinevirtual

get the name of the protocol module, e.g. "ZFObject"

Reimplemented from ZFProtocol.

◆ mainWindow()

virtual ZFUISysWindow * ZFPInterface_ZFUISysWindow::mainWindow ( void )
pure virtual

see ZFUISysWindow::mainWindow

for implementations, you should create a new window if not initialized, or return the created one if exist

◆ mainWindowOnCleanup()

virtual void ZFPInterface_ZFUISysWindow::mainWindowOnCleanup ( void )
pure virtual

called to cleanup native main window

this is ensured to be called during ZFFrameworkCleanup with level ZFLevelZFFrameworkLow
after cleanup, you must ensured it's reentrant to access the main window again

◆ nativeWindowRootViewOnAdd()

virtual void ZFPInterface_ZFUISysWindow::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


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