ZFFramework
 
Loading...
Searching...
No Matches
ZFUIHint_Basic.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIHint_Basic_h_
7#define _ZFI_ZFUIHint_Basic_h_
8
9#include "ZFUIHint.h"
10#include "ZFUIButtonBasic.h"
12
13// ============================================================
14// hint with simple text and icon
28
37 , ZFMP_IN(const zfstring &, text)
39 )
44 , ZFMP_IN(const zfstring &, text)
45 , ZFMP_IN_OPT(ZFUIImage *, icon, zfnull)
46 ) {
47 zfautoT<ZFUIHint> hint = ZFUIHintCreate(text, icon);
48 hint->show();
49 return hint;
50}
51
53#endif // #ifndef _ZFI_ZFUIHint_Basic_h_
54
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#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_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_INLINE_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:835
#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_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
#define ZFPROPERTY_ON_INIT_DECLARE(Type, Name)
override life cycle callback for the property
Definition ZFPropertyDeclare.h:208
#define ZFSTYLE_DEFAULT_DECLARE(YourStyle)
used to declare a default style, see ZFStyleable
Definition ZFStyleable.h:262
basic button
a quick UI hint to show short messages
zfautoT< ZFUIHint > ZFUIHintShow(const zfstring &text, ZFUIImage *icon=(zft_zfnull))
ZFUIHintCreate and show the hint
Definition ZFUIHint_Basic.h:46
zfautoT< ZFUIHint > ZFUIHintCreate(const zfstring &text, ZFUIImage *icon=(zft_zfnull))
make a hint with text
#define ZFLIB_ZFUIWidget
used to export symbols
Definition ZFUIWidgetDef.h:17
virtual zfanyT< ZFUIImageView > icon(ZFUIButtonState forState=(v_ZFUIButtonState::e_Normal))
util method to get button icon's style
virtual zfanyT< ZFUIImageView > const & bgNormal()
background style in normal state
Definition ZFUIButtonBasic.h:129
virtual zfanyT< ZFUITextView > const & labelNormal()
label style in normal state
Definition ZFUIButtonBasic.h:65
a quick UI hint to show short messages
Definition ZFUIHint.h:24
image storage
Definition ZFUIImage.h:30
native image view
Definition ZFUIImageView.h:18
2D size
Definition ZFUITypeDef.h:397
view to display plain text
Definition ZFUITextView.h:21
virtual zfbool & viewUIEnableTree()
whether the view as well as all its children should receive user interaction, see viewUIEnable
Definition ZFUIView.h:300
virtual ZFUISize & viewSizeMin()
min size, ZFUISizeZero by default
Definition ZFUIView.h:404
see zfany
Definition zfany.h:106
type restrict version of zfauto
Definition zfautoFwd.h:110