-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0f83abe
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
 <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&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&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> <span class="preprocessor">#ifndef CLASS_NCINE_ANDROIDAPPLICATION</span></div> | ||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define CLASS_NCINE_ANDROIDAPPLICATION</span></div> | ||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div> | ||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "Application.h"</span></div> | ||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div> | ||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="keyword">struct </span>android_app;</div> | ||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">struct </span>AInputEvent;</div> | ||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div> | ||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span>ncine {</div> | ||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div> | ||
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classncine_1_1_android_application.html"> 12</a></span> <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> {</div> | ||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">public</span>:</div> | ||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <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>  </div> | ||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <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>  </div> | ||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <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>  <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>  </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>  <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>  </div> | ||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <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>  <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>  <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>  </div> | ||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">private</span>:</div> | ||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">bool</span> isInitialized_;</div> | ||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <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>  </div> | ||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">struct </span>android_app *state_;</div> | ||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <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>  <span class="keywordtype">void</span> preInit();</div> | ||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">void</span> init();</div> | ||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">void</span> shutdown();</div> | ||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div> | ||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <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>  </div> | ||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <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>  : <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>  ~AndroidApplication() {}</div> | ||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  AndroidApplication(<span class="keyword">const</span> AndroidApplication &) = <span class="keyword">delete</span>;</div> | ||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  AndroidApplication &operator=(<span class="keyword">const</span> AndroidApplication &) = <span class="keyword">delete</span>;</div> | ||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div> | ||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">static</span> AndroidApplication &theAndroidApplication() { <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>AndroidApplication &<span class="keyword">></span>(theApplication()); }</div> | ||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div> | ||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">friend</span> DLL_PUBLIC Application &theApplication();</div> | ||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> };</div> | ||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  </div> | ||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> DLL_PUBLIC Application &theApplication();</div> | ||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div> | ||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> }</div> | ||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div> | ||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <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  <a href="http://www.doxygen.org/index.html"> | ||
<img class="footer" src="doxygen.png" alt="doxygen"/> | ||
</a> 1.8.18 | ||
</small></address> | ||
</body> | ||
</html> |
Oops, something went wrong.