projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dali-Text: Keyboard Shortcuts
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
markup-processor.h
diff --git
a/dali-toolkit/internal/text/markup-processor.h
b/dali-toolkit/internal/text/markup-processor.h
old mode 100644
(file)
new mode 100755
(executable)
index
86ec1a6
..
de66e7f
--- a/
dali-toolkit/internal/text/markup-processor.h
+++ b/
dali-toolkit/internal/text/markup-processor.h
@@
-1,8
+1,8
@@
-#ifndef
__DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H__
-#define
__DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H__
+#ifndef
DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H
+#define
DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H
/*
/*
- * Copyright (c) 201
5
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
9
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-19,8
+19,14
@@
*/
// EXTERNAL INCLUDES
*/
// EXTERNAL INCLUDES
+#include <dali/public-api/common/dali-vector.h>
#include <string>
#include <string>
+// INTERNAL INCLUDES
+#include <dali-toolkit/internal/text/color-run.h>
+#include <dali-toolkit/internal/text/embedded-item.h>
+#include <dali-toolkit/internal/text/font-description-run.h>
+
namespace Dali
{
namespace Dali
{
@@
-35,11
+41,19
@@
namespace Text
*/
struct MarkupProcessData
{
*/
struct MarkupProcessData
{
- MarkupProcessData()
- : markupProcessedText()
+MarkupProcessData( Vector<ColorRun>& colorRuns,
+ Vector<FontDescriptionRun>& fontRuns,
+ Vector<EmbeddedItem>& items )
+ : colorRuns( colorRuns ),
+ fontRuns( fontRuns ),
+ items(items),
+ markupProcessedText()
{}
{}
- std::string markupProcessedText;
+ Vector<ColorRun>& colorRuns; ///< The color runs.
+ Vector<FontDescriptionRun>& fontRuns; ///< The font description runs.
+ Vector<EmbeddedItem>& items; ///< The embedded items.
+ std::string markupProcessedText; ///< The mark-up string.
};
/**
};
/**
@@
-56,4
+70,4
@@
void ProcessMarkupString( const std::string& markupString, MarkupProcessData& ma
} // namespace Dali
} // namespace Dali
-#endif //
__DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H__
+#endif //
DALI_TOOLKIT_TEXT_MARKUP_PROCESSOR_H