6#ifndef _ZFI_ZFUIDraw_h_
7#define _ZFI_ZFUIDraw_h_
48 zffinal inline void _ZFP_ZFUIDrawableView_onDraw(
void) {
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#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
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
#define zffalse
bool false type
Definition ZFCoreTypeDef_CoreType.h:111
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#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_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_3(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:910
#define ZFMETHOD_FUNC_DECLARE_4(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1065
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#define ZF_NAMESPACE_BEGIN_REGISTER(NameSpace, ParentNameSpace)
begin and register namespace
Definition ZFNamespace.h:48
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_END(NameSpace)
end namespace
Definition ZFNamespace.h:60
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZF_NAMESPACE_GLOBAL
namespace of ZFFramework
Definition ZFNamespace.h:96
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:328
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
_zft_ZFUIColor ZFUIColor
color with AARRGGBB format
Definition ZFUITypeDef.h:1184
ZFUIRect const & ZFUIRectZero(void)
(0, 0, 0, 0)
Definition ZFUITypeDef.h:662
base class of all UI views
void observerNotify(zfidentity eventId, ZFObject *param0=zft_zfnull, ZFObject *param1=zft_zfnull)
notify the observer with eventId
abstract view that can draw user content
Definition ZFUIDraw.h:19
virtual zfbool const & drawing()
true if during onDraw
virtual void drawRequest()
mark the view needs to redraw, see ZFUIDrawableView
static zfidentity E_OnDraw(void)
see ZFObject::observerNotify
virtual void onDraw(void)
see E_OnDraw
Definition ZFUIDraw.h:44
virtual void objectOnInit(void)
override this to init your object
image storage
Definition ZFUIImage.h:30
2D rectangle
Definition ZFUITypeDef.h:636
2D size
Definition ZFUITypeDef.h:397
text config
Definition ZFUIText.h:52
type restrict version of zfauto
Definition zfautoFwd.h:110
zfautoT< ZFUIImage > endForImage(void *context)
see ZFUIDraw::beginForView
void * beginForView(ZFUIDrawableView *view)
begin a draw context
zfbool drawText(void *context, const zfstring &text, ZFUITextConfig *config=(zft_zfnull), const ZFUIRect &targetFrame=(ZFUIRectZero()))
see ZFUIDraw::beginForView
void endForView(void *context)
see ZFUIDraw::beginForView
zfbool drawImage(void *context, ZFUIImage *image, const ZFUIRect &imageFrame=(ZFUIRectZero()), const ZFUIRect &targetFrame=(ZFUIRectZero()))
see ZFUIDraw::beginForView
zfbool drawClear(void *context, const ZFUIRect &targetFrame=(ZFUIRectZero()))
see ZFUIDraw::beginForView
zfbool drawColor(void *context, const ZFUIColor &color, const ZFUIRect &targetFrame=(ZFUIRectZero()))
see ZFUIDraw::beginForView
void * beginForImage(const ZFUISize &imageSize)
see ZFUIDraw::beginForView