Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
encelo authored and actions-user committed Nov 22, 2024
0 parents commit 0f83abe
Show file tree
Hide file tree
Showing 4,307 changed files with 299,393 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
142 changes: 142 additions & 0 deletions 2020.05/_android_application_8h_source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<!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.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>nCine: include/ncine/AndroidApplication.h Source File</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="projectlogo"><img alt="Logo" src="icon48.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">nCine
&#160;<span id="projectnumber">2020.05</span>
</div>
<div id="projectbrief">A cross-platform 2D game engine</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<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="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6bfbb9df9fcba3af2b352e911b967e82.html">ncine</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">AndroidApplication.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef CLASS_NCINE_ANDROIDAPPLICATION</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define CLASS_NCINE_ANDROIDAPPLICATION</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &quot;Application.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="keyword">struct </span>android_app;</div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="keyword">struct </span>AInputEvent;</div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="keyword">namespace </span>ncine {</div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classncine_1_1_android_application.html"> 12</a></span>&#160;<span class="keyword">class </span>DLL_PUBLIC <a class="code" href="classncine_1_1_android_application.html">AndroidApplication</a> : <span class="keyword">public</span> <a class="code" href="classncine_1_1_application.html">Application</a></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;{</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> start(<span class="keyword">struct</span> android_app *state, <a class="code" href="classncine_1_1_i_app_event_handler.html">IAppEventHandler</a> *(*createAppEventHandler)());</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> processCommand(<span class="keyword">struct</span> android_app *state, int32_t cmd);</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> sdkVersion() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="keywordtype">void</span> enableAccelerometer(<span class="keywordtype">bool</span> enabled);</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classncine_1_1_android_application.html#af27f7759f658056c6c092236f2a59eee"> 27</a></span>&#160; <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classncine_1_1_android_application.html#af27f7759f658056c6c092236f2a59eee">isInitialized</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> isInitialized_; }</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *internalDataPath() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *externalDataPath() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *obbPath() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keyword">private</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordtype">bool</span> isInitialized_;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="classnctl_1_1_string.html">nctl::String</a> packageName_;</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keyword">struct </span>android_app *state_;</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <a class="code" href="classncine_1_1_i_app_event_handler.html">IAppEventHandler</a> *(*createAppEventHandler_)();</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">void</span> preInit();</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordtype">void</span> init();</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordtype">void</span> shutdown();</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordtype">void</span> setFocus(<span class="keywordtype">bool</span> hasFocus) <span class="keyword">override</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="classncine_1_1_android_application.html">AndroidApplication</a>()</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; : <a class="code" href="classncine_1_1_application.html">Application</a>(), isInitialized_(false), packageName_(128), state_(nullptr), createAppEventHandler_(nullptr) {}</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; ~AndroidApplication() {}</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; AndroidApplication(<span class="keyword">const</span> AndroidApplication &amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; AndroidApplication &amp;operator=(<span class="keyword">const</span> AndroidApplication &amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keyword">static</span> AndroidApplication &amp;theAndroidApplication() { <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>AndroidApplication &amp;<span class="keyword">&gt;</span>(theApplication()); }</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">friend</span> DLL_PUBLIC Application &amp;theApplication();</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;};</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;DLL_PUBLIC Application &amp;theApplication();</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;}</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassnctl_1_1_string_html"><div class="ttname"><a href="classnctl_1_1_string.html">nctl::String</a></div><div class="ttdoc">A basic string class made of chars.</div><div class="ttdef"><b>Definition:</b> String.h:13</div></div>
<div class="ttc" id="aclassncine_1_1_android_application_html"><div class="ttname"><a href="classncine_1_1_android_application.html">ncine::AndroidApplication</a></div><div class="ttdoc">Main entry point and handler for nCine Android applications.</div><div class="ttdef"><b>Definition:</b> AndroidApplication.h:13</div></div>
<div class="ttc" id="aclassncine_1_1_android_application_html_af27f7759f658056c6c092236f2a59eee"><div class="ttname"><a href="classncine_1_1_android_application.html#af27f7759f658056c6c092236f2a59eee">ncine::AndroidApplication::isInitialized</a></div><div class="ttdeci">bool isInitialized() const</div><div class="ttdoc">Returns true if the application has already called init()</div><div class="ttdef"><b>Definition:</b> AndroidApplication.h:27</div></div>
<div class="ttc" id="aclassncine_1_1_i_app_event_handler_html"><div class="ttname"><a href="classncine_1_1_i_app_event_handler.html">ncine::IAppEventHandler</a></div><div class="ttdoc">The interface class for handling nCine application events.</div><div class="ttdef"><b>Definition:</b> IAppEventHandler.h:12</div></div>
<div class="ttc" id="aclassncine_1_1_application_html"><div class="ttname"><a href="classncine_1_1_application.html">ncine::Application</a></div><div class="ttdoc">Main entry point and handler for nCine applications.</div><div class="ttdef"><b>Definition:</b> Application.h:22</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue May 19 2020 01:24:19 for nCine by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
Loading

0 comments on commit 0f83abe

Please sign in to comment.