axmol/cocos/ui/UIRichText.h

412 lines
10 KiB
C
Raw Normal View History

2014-03-11 17:13:54 +08:00
/****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#ifndef __UIRICHTEXT_H__
#define __UIRICHTEXT_H__
#include "ui/UIWidget.h"
#include "ui/GUIExport.h"
2014-03-11 17:13:54 +08:00
NS_CC_BEGIN
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @addtogroup ui
* @{
*/
2014-03-11 17:13:54 +08:00
namespace ui {
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
*@brief Rich text element base class.
* It defines the basic common properties for all rich text element.
*/
class CC_GUI_DLL RichElement : public Ref
2014-03-11 17:13:54 +08:00
{
public:
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
*@brief Rich element type.
*/
2014-05-12 10:39:30 +08:00
enum class Type
{
TEXT,
IMAGE,
CUSTOM,
NEWLINE
2014-05-12 10:39:30 +08:00
};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Default constructor.
* @js ctor
2015-03-30 15:47:47 +08:00
* @lua new
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
2014-03-11 17:13:54 +08:00
RichElement(){};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Default destructor.
* @js NA
2015-03-30 15:47:47 +08:00
* @lua NA
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
2014-03-11 17:13:54 +08:00
virtual ~RichElement(){};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Initialize a rich element with different arguments.
*
* @param tag A integer tag value.
* @param color A color in @see `Color3B`.
* @param opacity A opacity value in `GLubyte`.
* @return True if initialize success, false otherwise.
*/
2014-03-11 17:13:54 +08:00
bool init(int tag, const Color3B& color, GLubyte opacity);
protected:
2014-05-12 10:39:30 +08:00
Type _type;
2014-03-11 17:13:54 +08:00
int _tag;
Color3B _color;
GLubyte _opacity;
friend class RichText;
};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
*@brief Rich element for displaying text.
*/
class CC_GUI_DLL RichElementText : public RichElement
2014-03-11 17:13:54 +08:00
{
public:
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
*@brief Default constructor.
* @js ctor
2015-03-30 15:47:47 +08:00
* @lua new
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
RichElementText()
{_type = Type::TEXT;};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
enum {
ITALICS_FLAG = 1 << 0,
BOLD_FLAG = 1 << 1,
UNDERLINE_FLAG = 1 << 2,
STRIKETHROUGH_FLAG = 1 << 3,
URL_FLAG = 1 << 4
};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
*@brief Default destructor.
* @js NA
2015-03-30 15:47:47 +08:00
* @lua NA
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
2014-03-11 17:13:54 +08:00
virtual ~RichElementText(){};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Initialize a RichElementText with various arguments.
*
* @param tag A integer tag value.
* @param color A color in Color3B.
* @param opacity A opacity in GLubyte.
* @param text Content string.
* @param fontName Content font name.
* @param fontSize Content font size.
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
* @param flags: italics, bold, underline or strikethrough
* @return True if initialize success, false otherwise.
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
bool init(int tag, const Color3B& color, GLubyte opacity, const std::string& text, const std::string& fontName, float fontSize, uint32_t flags, const std::string& url);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Create a RichElementText with various arguments.
*
* @param tag A integer tag value.
* @param color A color in Color3B.
* @param opacity A opacity in GLubyte.
* @param text Content string.
* @param fontName Content font name.
* @param fontSize Content font size.
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
* @param flags: italics, bold, underline or strikethrough
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
* @return RichElementText instance.
*/
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
static RichElementText* create(int tag, const Color3B& color, GLubyte opacity, const std::string& text,
const std::string& fontName, float fontSize, uint32_t flags=0, const std::string& url="");
2014-03-11 17:13:54 +08:00
protected:
std::string _text;
std::string _fontName;
float _fontSize;
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
uint32_t _flags;
std::string _url;
2014-03-11 17:13:54 +08:00
friend class RichText;
};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
*@brief Rich element for displaying images.
*/
class CC_GUI_DLL RichElementImage : public RichElement
2014-03-11 17:13:54 +08:00
{
public:
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Default constructor.
* @js ctor
2015-03-30 15:47:47 +08:00
* @lua new
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*
*/
2014-05-12 10:39:30 +08:00
RichElementImage(){_type = Type::IMAGE;};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Default destructor.
* @js NA
2015-03-30 15:47:47 +08:00
* @lua NA
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
2014-03-11 17:13:54 +08:00
virtual ~RichElementImage(){};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Initialize a RichElementImage with various arguments.
*
* @param tag A integer tag value.
* @param color A color in Color3B.
* @param opacity A opacity in GLubyte.
* @param filePath A image file name.
* @return True if initialize success, false otherwise.
*/
bool init(int tag, const Color3B& color, GLubyte opacity, const std::string& filePath);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Create a RichElementImage with various arguments.
*
* @param tag A integer tag value.
* @param color A color in Color3B.
* @param opacity A opacity in GLubyte.
* @param filePath A image file name.
* @return A RichElementImage instance.
*/
static RichElementImage* create(int tag, const Color3B& color, GLubyte opacity, const std::string& filePath);
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
void setWidth(int width);
void setHeight(int height);
2014-03-11 17:13:54 +08:00
protected:
std::string _filePath;
Rect _textureRect;
int _textureType;
friend class RichText;
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
int _width;
int _height;
2014-03-11 17:13:54 +08:00
};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
*@brief Rich element for displaying custom node type.
*/
class CC_GUI_DLL RichElementCustomNode : public RichElement
2014-03-11 17:13:54 +08:00
{
public:
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Default constructor.
* @js ctor
2015-03-30 15:47:47 +08:00
* @lua new
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
2014-05-12 10:39:30 +08:00
RichElementCustomNode(){_type = Type::CUSTOM;};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Default destructor.
* @js NA
2015-03-30 15:47:47 +08:00
* @lua NA
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
2014-03-11 17:13:54 +08:00
virtual ~RichElementCustomNode(){CC_SAFE_RELEASE(_customNode);};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Initialize a RichElementCustomNode with various arguments.
*
* @param tag A integer tag value.
* @param color A color in Color3B.
* @param opacity A opacity in GLubyte.
* @param customNode A custom node pointer.
* @return True if initialize success, false otherwise.
*/
2014-03-11 17:13:54 +08:00
bool init(int tag, const Color3B& color, GLubyte opacity, Node* customNode);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Create a RichElementCustomNode with various arguments.
*
* @param tag A integer tag value.
* @param color A color in Color3B.
* @param opacity A opacity in GLubyte.
* @param customNode A custom node pointer.
* @return A RichElementCustomNode instance.
*/
2014-03-11 17:13:54 +08:00
static RichElementCustomNode* create(int tag, const Color3B& color, GLubyte opacity, Node* customNode);
protected:
Node* _customNode;
friend class RichText;
};
/**
*@brief Rich element for new line.
*/
class CC_GUI_DLL RichElementNewLine : public RichElement
{
public:
/**
* @brief Default constructor.
* @js ctor
* @lua new
*
*/
RichElementNewLine(){_type = Type::NEWLINE;};
/**
* @brief Default destructor.
* @js NA
* @lua NA
*/
virtual ~RichElementNewLine(){};
/**
* @brief Create a RichElementNewLine with various arguments.
*
* @param tag A integer tag value.
* @param color A color in Color3B.
* @param opacity A opacity in GLubyte.
* @return A RichElementNewLine instance.
*/
static RichElementNewLine* create(int tag, const Color3B& color, GLubyte opacity);
protected:
friend class RichText;
};
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
*@brief A container for displaying various RichElements.
* We could use it to display texts with images easily.
*/
class CC_GUI_DLL RichText : public Widget
2014-03-11 17:13:54 +08:00
{
public:
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Default constructor.
* @js ctor
2015-03-30 15:47:47 +08:00
* @lua new
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
2014-03-11 17:13:54 +08:00
RichText();
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Default destructor.
* @js NA
2015-03-30 15:47:47 +08:00
* @lua NA
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
*/
2014-03-11 17:13:54 +08:00
virtual ~RichText();
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Create a empty RichText.
*
* @return RichText instance.
*/
2014-03-11 17:13:54 +08:00
static RichText* create();
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
/**
* @brief Create a RichText from an XML
*
* @return RichText instance.
*/
static RichText* createWithXML(const std::string& xml);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Insert a RichElement at a given index.
*
* @param element A RichElement type.
* @param index A given index.
*/
2014-03-11 17:13:54 +08:00
void insertElement(RichElement* element, int index);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Add a RichElement at the end of RichText.
*
* @param element A RichElement instance.
*/
2014-03-11 17:13:54 +08:00
void pushBackElement(RichElement* element);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Remove a RichElement at a given index.
*
* @param index A integer index value.
*/
2014-03-11 17:13:54 +08:00
void removeElement(int index);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Remove specific RichElement.
*
* @param element A RichElement type.
*/
2014-03-11 17:13:54 +08:00
void removeElement(RichElement* element);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Set vertical space between each RichElement.
*
* @param space Point in float.
*/
2014-03-11 17:13:54 +08:00
void setVerticalSpace(float space);
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
/**
* @brief Rearrange all RichElement in the RichText.
* It's usually called internally.
*/
void formatText();
//override functions.
virtual void ignoreContentAdaptWithSize(bool ignore) override;
2014-03-24 15:25:44 +08:00
virtual std::string getDescription() const override;
CC_CONSTRUCTOR_ACCESS:
virtual bool init() override;
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
bool initWithXML(const std::string& xml);
2014-03-11 17:13:54 +08:00
protected:
virtual void adaptRenderers() override;
2014-07-24 11:51:47 +08:00
virtual void initRenderer() override;
2014-03-11 17:13:54 +08:00
void pushToContainer(Node* renderer);
Adds xml support in UIRichText Supported tags: - <small>: makes the font 20% smaller - <big>: makes the font 25% bigger - <img src="" />: to add an image - <font face="path to font" size="size" color="#00ffaa">: font attributes - <i>: italics - <b>: bold - <u>: underline - <del> strike-through - </br>: new line Also adds support for strikethrough, italics, bold and underlie to `Label` Contains tests for UIRichText and Label Squashed commit of the following: commit a0d6ae0513d40dbf414930210ab032a49d8984a0 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:39:21 2016 -0800 cleanup LabelTestNew commit 0cf423af85d88a42fc1317207feeb3d05da7f8ab Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 19 20:34:53 2016 -0800 adds maaaany tests ...and fixes width and height in <img src=""> commit e8ba6acd5d79bbc766d7aa02ef166e166c801d01 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 19:41:37 2016 -0800 Label + URL working Ok commit 36689e29ee3d77310e92264a09084cc06e30664c Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 15 18:24:44 2016 -0800 adding this code just in case... ... should use a listener component instead commit af03708950e74483b875d0baad593aa6ed242a04 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 14 20:23:36 2016 -0800 URL node plus <de><u> and <a img commit e3a4930b012c0b3756752dac6ffb5ad43d24ae99 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Wed Jan 13 18:42:18 2016 -0800 strikethrough and underline implemented they support multiline and horizontal alignment as well includes test however vertical alignment might not work commit 640ccf39f56e153db46785a61be7000e898174c7 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 18:14:57 2016 -0800 bug fixes commit 5e41fb76e91c571639585a609a255eb41797a302 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 16:47:20 2016 -0800 adds italics and bold "disable test" commit 202c5a45bb9c8ea160b9f6880ef858874e07814b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Tue Jan 12 14:40:13 2016 -0800 adds italics test commit d1a8b421445053cc36860fc376f52692a3672dfe Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Mon Jan 11 20:53:23 2016 -0800 italics is working ok commit fdd02087fce920c27c2409301ec88685fe68085b Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Fri Jan 8 17:18:56 2016 -0800 color, size and face working commit c01bdef6b1d49f8805b69d4c162b74cd00c8f5b3 Author: Ricardo Quesada <ricardoquesada@gmail.com> Date: Thu Jan 7 19:02:16 2016 -0800 initial commit
2016-01-20 12:41:31 +08:00
void handleTextRenderer(const std::string& text, const std::string& fontName, float fontSize, const Color3B& color, GLubyte opacity, uint32_t flags, const std::string& url="");
void handleImageRenderer(const std::string& fileParh, const Color3B& color, GLubyte opacity, int width, int height);
2014-03-11 17:13:54 +08:00
void handleCustomRenderer(Node* renderer);
void formarRenderers();
void addNewLine();
protected:
bool _formatTextDirty;
Vector<RichElement*> _richElements;
std::vector<Vector<Node*>*> _elementRenders;
float _leftSpaceWidth;
float _verticalSpace;
};
}
Add missing comments for UI modules Squashed commit of the following: commit eb23bf8972d1a580db537f3d341091eaeb99d626 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 17:08:07 2015 +0800 finish all the documents commit a64ec4196eb1b41771ac2f7b2ba48845d22b6211 Author: andyque <guanghui8827@126.com> Date: Wed Mar 25 09:49:33 2015 +0800 finish scrollview commit 4ff76623230f19dd25c4de29e2816754524570b2 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 21:40:26 2015 +0800 add UIScale9Sprite comments Conflicts: cocos/ui/UIScale9Sprite.h commit e82a17b4e3cd07a03d4bfc906b0dc94d1fa08757 Author: andyque <guanghui8827@126.com> Date: Tue Mar 24 18:05:02 2015 +0800 add comments for UIRichText commit 7cbbcc6883ace0ef60a060f6c5808f4c296af4df Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 22:08:26 2015 +0800 add comments for UIPageView and UIRelativeBox commit 6fcf32a40d5407aefcba39e76aea5fb93a1a4e4a Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 21:12:27 2015 +0800 finish loadingbar comments commit 58e16b81dee833788018d913aef80e2ddd33d408 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:51:30 2015 +0800 finished UiListView commit 8278b3f1ee905c34dbd9c461975b1b4491eb7977 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 20:06:10 2015 +0800 add comments for LayoutManager and LayoutParameter. commit b2edfa06b83fbb0cdaf2f567c0d6f8d72e6f90c5 Author: andyque <guanghui8827@126.com> Date: Mon Mar 23 17:09:17 2015 +0800 finish comments for UILayoutComponent commit 730b5bc9c1a18139fbdef331b16c58b928cf999f Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 14:07:58 2015 +0800 add missing comments commit cecd97e830492e58dd07a2b1f5d0e87f19144856 Author: andyque <guanghui8827@126.com> Date: Fri Mar 20 09:31:51 2015 +0800 add comments commit ca0a6033bf61c7fc9caf70719ee5ea651953f580 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 21:02:36 2015 +0800 add missing docs for UIButton, UILayout, UIIMageview and UIWidget commit df98454583553e80d2ef4f72cc58de4b433f43c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 14:02:05 2015 +0800 add missing comments for UIHbox and UIHelper commit 4baf76dd92672b745d3d84e47e5fed8c680b01c7 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 11:28:32 2015 +0800 add comments for UICheckbox commit 77c4080b3c70268b6a07cfa12d1e9319c86a2f38 Author: andyque <guanghui8827@126.com> Date: Thu Mar 19 00:01:42 2015 +0800 update coments commit 4506327ace5b7786ee8b490aab1653462a834418 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 20:32:57 2015 +0800 add comments for UIEditbox commit 4937f30adb8912a02ab10353b6cc5fe2eed9d4bf Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:51:20 2015 +0800 add missing comments for UIEditBox commit 64a48c6b09f4eaf6b84cc8446ef59d382cf8767b Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:12:08 2015 +0800 fix indentation problem commit b38c921c114bb4a707be0f29dcdf8c46e43a445a Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 10:08:46 2015 +0800 add missing comments for CCIMEDispatcher commit 4412cf52429f22351a5c9fbb7c392bca64c2a2c6 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:57:52 2015 +0800 add missing documents for CCIMedelegate commit 53d3242f2cafde2bebedebe8353c6be625e5ce84 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:43:33 2015 +0800 add missing documentation for CCTilemapatlas commit 1f6183086b6e21557e5b05bf4cede43d472611a1 Author: andyque <guanghui8827@126.com> Date: Wed Mar 18 09:38:59 2015 +0800 add missing comments for CCTextfieldttf commit a7fe234153cebc4113cc97064d20dfd3515f9611 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 22:03:31 2015 +0800 supplement comments for ProtectedNode commit 3b02d22850b6a9e99e779ca09e5ce0b5bf24d602 Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:55:03 2015 +0800 add comments to CCMenuitem.h commit 58e054c5cd28986e4420c2ae44af7e9a2beab4ce Author: andyque <guanghui8827@126.com> Date: Tue Mar 17 21:36:14 2015 +0800 add comments to Menu
2015-03-25 18:17:58 +08:00
// end of ui group
/// @}
2014-03-11 17:13:54 +08:00
NS_CC_END
#endif /* defined(__UIRichText__) */