shaka-packager/docs/d3/d54/structshaka_1_1media_1_1Tex...

136 lines
9.8 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Shaka Packager SDK: shaka::media::TextFragment Struct Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Shaka Packager SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="../../d8/daf/namespaceshaka.html">shaka</a></li><li class="navelem"><b>media</b></li><li class="navelem"><a class="el" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="../../d0/d7b/structshaka_1_1media_1_1TextFragment-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">shaka::media::TextFragment Struct Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="../../d0/d1a/text__sample_8h_source.html">text_sample.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aab3ddfb50c084996eaf9e0af6bb9ec41"><td class="memItemLeft" align="right" valign="top"><a id="aab3ddfb50c084996eaf9e0af6bb9ec41"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TextFragment</b> (const <a class="el" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a> &amp;style, const std::vector&lt; <a class="el" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a> &gt; &amp;sub_fragments)</td></tr>
<tr class="separator:aab3ddfb50c084996eaf9e0af6bb9ec41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af84f709b8d88ee0c08cdfcd0f1c6ebf1"><td class="memItemLeft" align="right" valign="top"><a id="af84f709b8d88ee0c08cdfcd0f1c6ebf1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TextFragment</b> (const <a class="el" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a> &amp;style, const char *body)</td></tr>
<tr class="separator:af84f709b8d88ee0c08cdfcd0f1c6ebf1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e654375c2e41d360a11580e8bdb594c"><td class="memItemLeft" align="right" valign="top"><a id="a4e654375c2e41d360a11580e8bdb594c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TextFragment</b> (const <a class="el" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a> &amp;style, const std::string &amp;body)</td></tr>
<tr class="separator:a4e654375c2e41d360a11580e8bdb594c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a265c33f3a66314e0356f9a0d916d4f4c"><td class="memItemLeft" align="right" valign="top"><a id="a265c33f3a66314e0356f9a0d916d4f4c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TextFragment</b> (const <a class="el" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a> &amp;style, const std::vector&lt; uint8_t &gt; &amp;<a class="el" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html#afee4e59f62972eec056a326a324e518d">image</a>)</td></tr>
<tr class="separator:a265c33f3a66314e0356f9a0d916d4f4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc9bf3f89c83eb69c31d166a7849c38e"><td class="memItemLeft" align="right" valign="top"><a id="acc9bf3f89c83eb69c31d166a7849c38e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TextFragment</b> (const <a class="el" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a> &amp;style, bool newline)</td></tr>
<tr class="separator:acc9bf3f89c83eb69c31d166a7849c38e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9a17297e59e26727950fd066ace3614"><td class="memItemLeft" align="right" valign="top"><a id="ad9a17297e59e26727950fd066ace3614"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>is_empty</b> () const</td></tr>
<tr class="separator:ad9a17297e59e26727950fd066ace3614"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:abff304e090a9b16e2c7641d184cb53c2"><td class="memItemLeft" align="right" valign="top"><a id="abff304e090a9b16e2c7641d184cb53c2"></a>
<a class="el" href="../../d4/d9f/structshaka_1_1media_1_1TextFragmentStyle.html">TextFragmentStyle</a>&#160;</td><td class="memItemRight" valign="bottom"><b>style</b></td></tr>
<tr class="separator:abff304e090a9b16e2c7641d184cb53c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcfd31a1dab80e2661c57748087ca521"><td class="memItemLeft" align="right" valign="top"><a id="abcfd31a1dab80e2661c57748087ca521"></a>
std::vector&lt; <a class="el" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html">TextFragment</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>sub_fragments</b></td></tr>
<tr class="separator:abcfd31a1dab80e2661c57748087ca521"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6081b5e14fd36ef3374763e55881647e"><td class="memItemLeft" align="right" valign="top"><a id="a6081b5e14fd36ef3374763e55881647e"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>body</b></td></tr>
<tr class="separator:a6081b5e14fd36ef3374763e55881647e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afee4e59f62972eec056a326a324e518d"><td class="memItemLeft" align="right" valign="top"><a id="afee4e59f62972eec056a326a324e518d"></a>
std::vector&lt; uint8_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d54/structshaka_1_1media_1_1TextFragment.html#afee4e59f62972eec056a326a324e518d">image</a></td></tr>
<tr class="memdesc:afee4e59f62972eec056a326a324e518d"><td class="mdescLeft">&#160;</td><td class="mdescRight">PNG image data. <br /></td></tr>
<tr class="separator:afee4e59f62972eec056a326a324e518d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade740048c9740ac5bb0f4f15de512458"><td class="memItemLeft" align="right" valign="top"><a id="ade740048c9740ac5bb0f4f15de512458"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>newline</b> = false</td></tr>
<tr class="separator:ade740048c9740ac5bb0f4f15de512458"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents a recursive structure of styled blocks of text. Only one of sub_fragments, body, image, or newline will be set. </p>
<p class="definition">Definition at line <a class="el" href="../../d0/d1a/text__sample_8h_source.html#l00089">89</a> of file <a class="el" href="../../d0/d1a/text__sample_8h_source.html">text_sample.h</a>.</p>
</div><hr/>The documentation for this struct was generated from the following files:<ul>
<li>packager/media/base/<a class="el" href="../../d0/d1a/text__sample_8h_source.html">text_sample.h</a></li>
<li>packager/media/base/<a class="el" href="../../d4/d87/text__sample_8cc_source.html">text_sample.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 22 2021 00:16:06 for Shaka Packager SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>