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

impl for ZFUIRootWindow::nativeWindowEmbed More...

#include <ZFUIRootWindow.h>

Inheritance diagram for ZFUIRootWindowEmbedImpl:
ZFInterface

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< ZFUIRootWindowmodalWindowShow (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
virtual void windowColor (ZFUIRootWindow *rootWindow, const ZFUIColor &color)
 called when ZFUIRootWindow::windowColor changed
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 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 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

Detailed Description

Member Function Documentation

◆ nativeWindowRootViewOnAdd()

virtual void ZFUIRootWindowEmbedImpl::nativeWindowRootViewOnAdd ( ZFUIRootWindow * rootWindow,
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 ZFUIRootWindowEmbedImpl::notifyMeasureWindow ( ZFUIRootWindow * rootWindow,
const ZFUIRect & rootRefRect,
const ZFUIMargin & windowMargin )
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


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