ZFFramework
 
Loading...
Searching...
No Matches
ZFUIText.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIText_h_
7#define _ZFI_ZFUIText_h_
8
9#include "ZFUIView.h"
11
15zfinterface ZFLIB_ZFUIKit ZFUIText : zfextend ZFInterface {
16 ZFINTERFACE_DECLARE(ZFUIText, ZFInterface)
17
18public:
23
24
30
37
41 ZFPROPERTY_ASSIGN(ZFUIColor, textColor, ZFUIGlobalStyle::DefaultStyle()->textColorDefault())
42
46 ZFPROPERTY_ASSIGN(zffloat, textSize, ZFUIGlobalStyle::DefaultStyle()->textSizeNormal())
47};
48
52zfclass ZFLIB_ZFUIKit ZFUITextConfig : zfextend ZFStyle, zfimplement ZFUIText {
53 ZFOBJECT_DECLARE(ZFUITextConfig, ZFStyle)
54 ZFIMPLEMENT_DECLARE(ZFUIText)
56};
57
59#endif // #ifndef _ZFI_ZFUIText_h_
60
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#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 ZFIMPLEMENT_DECLARE(ImplementedInterfaces,...)
see ZFINTERFACE_DECLARE
Definition ZFObjectInterface.h:169
#define zfimplement
shows class implement from interface, see ZFInterface
Definition ZFObjectInterface.h:24
#define zfinterface
shows the type is an interface, see ZFInterface
Definition ZFObjectInterface.h:20
#define ZFINTERFACE_DECLARE(InterfaceName, ParentInterface,...)
see ZFInterface
Definition ZFObjectInterface.h:100
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
#define ZFSTYLE_DEFAULT_DECLARE(YourStyle)
used to declare a default style, see ZFStyleable
Definition ZFStyleable.h:262
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
v_ZFUITextAppearance::ZFEnumType ZFUITextAppearance
see v_ZFUITextAppearance
Definition ZFUITypeDef.h:1409
_zft_ZFUIColor ZFUIColor
color with AARRGGBB format
Definition ZFUITypeDef.h:1184
base class of all UI views
see v_ZFUIAlign, ZFUIAlignFlagsToString, ZFUIAlignFlagsFromString
Definition ZFUITypeDef.h:1075
global style for ui elements
Definition ZFUIGlobalStyle.h:15
virtual zffloat & textSize()
text size, ZFUIGlobalStyle::textSizeNormal by default
Definition ZFUIText.h:46
virtual ZFUIAlignFlags & textAlign()
text alignment, ZFUIGlobalStyle::textAlign by default
Definition ZFUIText.h:36
virtual ZFUIColor & textColor()
text color, ZFUIGlobalStyle::textColorDefault by default
Definition ZFUIText.h:41
virtual zfstring & text()
text, may be null if not set
Definition ZFUIText.h:22
virtual ZFUITextAppearance & textAppearance()
text appearance, ZFUIGlobalStyle::textAppearance by default
Definition ZFUIText.h:29