6#ifndef _ZFI_ZFUIWindow_h_
7#define _ZFI_ZFUIWindow_h_
257 _ZFP_ZFUIWindowPrivate *d;
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:191
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:195
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:199
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
_ZFT_t_zfint zfint
same as int, see zfindex
Definition ZFCoreTypeDef_CoreType.h:165
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
#define ZFEXPORT_VAR_DECLARE(ZFLIB_, Type, Name)
util to export global variable
Definition ZFExport.h:68
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#define ZFMETHOD_DECLARE_STATIC_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:870
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_ON_INIT_DECLARE_1(ZFMP_0)
see ZFOBJECT_ON_INIT_INLINE_1
Definition ZFObjectDeclare.h:260
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:123
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:316
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:120
#define ZFPROPERTY_ON_UPDATE_DECLARE(Type, Name)
see ZFPROPERTY_ON_INIT_DECLARE
Definition ZFPropertyDeclare.h:223
#define ZFSTYLE_DEFAULT_DECLARE(YourStyle)
used to declare a default style, see ZFStyleable
Definition ZFStyleable.h:268
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
zfint & ZFUIWindowLevelBg(void)
see ZFUIWindow::windowLevel
Definition ZFUIWindow.h:13
zfint & ZFUIWindowLevelHint(void)
see ZFUIWindow::windowLevel
Definition ZFUIWindow.h:23
zfint & ZFUIWindowLevelDialog(void)
see ZFUIWindow::windowLevel
Definition ZFUIWindow.h:19
zfint & ZFUIWindowLevelFg(void)
see ZFUIWindow::windowLevel
Definition ZFUIWindow.h:17
zfint & ZFUIWindowLevelOverlay(void)
see ZFUIWindow::windowLevel
Definition ZFUIWindow.h:21
zfint & ZFUIWindowLevelNormal(void)
see ZFUIWindow::windowLevel
Definition ZFUIWindow.h:15
void observerNotify(zfidentity eventId, ZFObject *param0=zft_zfnull, ZFObject *param1=zft_zfnull)
notify the observer with eventId
base class of all layout param in ZFUIView
Definition ZFUIViewType.h:123
zfanyT< ZFUILayoutParam > child(const zfany &view, zfindex atIndex=((zfindex) -1))
util method to add sibling child to owner parent, for convenient for chained call
2D rectangle
Definition ZFUITypeDef.h:636
2D size
Definition ZFUITypeDef.h:397
2D size
Definition ZFUIViewType.h:41
zfanyT< ZFUILayoutParam > child(const zfany &view, zfindex atIndex=((zfindex) -1))
add child and return child's layoutParam
virtual zfanyT< ZFUIView > parent()
parent view or null if none
virtual void windowOnShow(void)
see E_WindowOnShow
Definition ZFUIWindow.h:210
virtual void objectOnDealloc(void)
override this to destroy your object
virtual zfbool showing()
whether the window is showing
virtual void rootWindow(ZFUIRootWindow *rootWindow)
change owner ZFUIRootWindow, must be called before show is called
virtual void objectOnInit(ZFUIRootWindow *rootWindow)
init with custom rootWindow, null to use ZFUIRootWindow::keyWindow
virtual void show()
show the window, automatically retain the window
virtual void windowMoveToBottom()
move window to bottom of all same level window
static zfidentity E_RootWindowOnUpdate(void)
see ZFObject::observerNotify
virtual void viewOnRemoveFromParent(ZFUIView *parent)
see E_ViewOnRemoveFromParent
virtual void ownerWindowOnRotate(void)
see E_WindowOwnerWindowOnRotate
Definition ZFUIWindow.h:219
static zfidentity E_WindowOwnerWindowOnRotate(void)
see ZFObject::observerNotify
static zfidentity E_WindowOnShow(void)
see ZFObject::observerNotify
virtual void layoutOnLayout(const ZFUIRect &bounds)
called by viewFrame to layout the view and children
static zfanyT< ZFUIRootWindow > rootWindowForView(ZFUIView *view)
util method to get owner root window for the view, return null if not in view tree or failed to get
virtual void layoutOnMeasure(ZFUISize &ret, const ZFUISize &sizeHint, const ZFUISizeParam &sizeParam)
called by layoutMeasure to decide the view's size
virtual void viewOnAddToParent(ZFUIView *parent)
see E_ViewOnAddToParent
virtual void layoutParam(ZFUILayoutParam *layoutParam)
manually set layout param
static zfanyT< ZFUIWindow > windowForView(ZFUIView *forView)
util method to get window of a view, or null if not in a window
virtual void windowOnHide(void)
see E_WindowOnHide
Definition ZFUIWindow.h:214
virtual zfint & windowLevel()
window's level, ZFUIWindowLevelNormal by default
Definition ZFUIWindow.h:152
virtual void hide()
hide the window, automatically release the window
virtual void rootWindowOnUpdate(ZFUIRootWindow *rootWindowOld)
see E_RootWindowOnUpdate
Definition ZFUIWindow.h:174
virtual const ZFClass * layoutParamClass(void)
see layoutParamCreate
Definition ZFUIWindow.h:243
static zfidentity E_WindowOnHide(void)
see ZFObject::observerNotify
virtual void windowMoveToTop()
move window to top of all same level window
static const ZFClass * ClassData(void)
get class info
Definition ZFUIWindow.h:31
virtual zfbool & safeAreaAdapt()
whether exclude from ZFUIRootWindow::safeArea, true by default
Definition ZFUIWindow.h:36
util method to cast ZFObject types freely
Definition zfany.h:35
see zfany
Definition zfany.h:113